/* ==========================================================================
   KosanKu - Modern Landing Page Stylesheet
   Color Palette: Modern Indigo, Deep Navy, Amber Gold & Clean Canvas
   ========================================================================== */

:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --primary-border: #C7D2FE;
  
  --brand-navy: #0F172A;
  --brand-indigo: #1E1B4B;
  --brand-card: #1E293B;

  --accent-gold: #F59E0B;
  --accent-gold-dark: #D97706;
  --accent-gold-light: #FEF3C7;

  --success: #10B981;
  --success-light: #ECFDF5;
  --success-border: #A7F3D0;

  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-card: #CBD5E1;

  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-white: #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 10px 25px -3px rgba(79, 70, 229, 0.15), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 35px rgba(79, 70, 229, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background Glows */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, rgba(79, 70, 229, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.ambient-glow-2 {
  position: absolute;
  top: 35%;
  left: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  overflow: hidden;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  line-height: 1.1;
}

.brand-text p {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-card);
}

.btn-secondary:hover {
  background: var(--bg-body);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--brand-navy);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 60px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 620px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.hero-banner-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-navy);
  animation: float 4s ease-in-out infinite alternate;
}

.pill-1 {
  bottom: 25px;
  left: -20px;
}

.pill-2 {
  top: 30px;
  right: -20px;
  animation-delay: -2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* Feature Grid Section */
.section-pad {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head .badge-pill {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.f-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.f-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}

.f-icon {
  width: 54px;
  height: 54px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.f-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.f-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mockup Showcase Section */
.showcase-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.showcase-grid.reverse {
  direction: rtl;
}

.showcase-grid.reverse .showcase-text {
  direction: ltr;
}

.showcase-grid.reverse .showcase-img {
  direction: ltr;
}

.showcase-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 18px;
  line-height: 1.25;
}

.showcase-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.check-icon {
  color: var(--success);
  font-size: 1.2rem;
}

.showcase-img {
  display: flex;
  justify-content: center;
}

.showcase-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  max-height: 540px;
}

/* Pricing Section */
.pricing-section {
  background: var(--bg-surface);
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  max-width: 900px;
  margin: 0 auto;
  gap: 28px;
  align-items: center;
}

.p-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}

.p-card.featured {
  background: linear-gradient(180deg, #1E1B4B 0%, #0F172A 100%);
  color: white;
  border-color: #4338CA;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25), 0 0 25px rgba(245, 158, 11, 0.2);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.p-head h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.p-head p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.p-price {
  margin-bottom: 24px;
}

.old-price {
  font-size: 0.95rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.cur-price {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.1;
}

.p-card.featured .cur-price {
  color: var(--accent-gold);
}

.p-features {
  border-top: 1px solid rgba(226, 232, 240, 0.4);
  padding-top: 24px;
  margin-bottom: 28px;
}

.p-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.p-features .disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* FAQ Section */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-navy);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* Footer */
.site-footer {
  background: var(--brand-navy);
  color: white;
  padding: 60px 0 30px;
  border-top: 1px solid var(--brand-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: white;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .showcase-grid,
  .showcase-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
  }

  .checklist-item {
    justify-content: center;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .p-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-subtle);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions .nav-btn-demo {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}
