/* ===========================
   STRATWISE.APP — Main Styles
   =========================== */

:root {
  --teal:        #00B19D;
  --teal-dark:   #008F7E;
  --teal-light:  #E6F7F5;
  --navy:        #0F172A;
  --navy-mid:    #1E293B;
  --gray:        #64748B;
  --gray-light:  #F1F5F9;
  --white:       #FFFFFF;
  --border:      #E2E8F0;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --radius:      12px;
  --radius-sm:   8px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--navy); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Typography */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--gray); line-height: 1.75; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,177,157,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.btn-white {
  background: var(--white);
  color: var(--teal);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--teal-light);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   TOP BAR
   =========================== */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  padding: 10px 0;
  text-align: center;
}
.topbar a { color: var(--teal); font-weight: 600; margin-left: 4px; }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.logo span { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-mid);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-login {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s;
}
.nav-login:hover { color: var(--teal); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* ===========================
   HERO
   =========================== */
.hero {
  background: linear-gradient(135deg, #F0FDFA 0%, #E6F7F5 40%, #F8FAFC 100%);
  padding: 100px 24px 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--teal); }
.hero p { font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { font-size: 0.8rem; color: var(--gray); margin-top: 16px; }
.hero-note svg { display: inline; vertical-align: middle; margin-right: 4px; }
.hero-image {
  position: relative;
}
.hero-mockup {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mockup-bar {
  background: var(--navy);
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.hero-mockup-bar span {
  width: 10px; height: 10px; border-radius: 50%;
}
.hero-mockup-bar span:nth-child(1) { background: #FF5F57; }
.hero-mockup-bar span:nth-child(2) { background: #FEBC2E; }
.hero-mockup-bar span:nth-child(3) { background: #28C840; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.hero-stat span { font-size: 0.85rem; color: var(--gray); }

/* ===========================
   SECTION SHARED
   =========================== */
section { padding: 80px 0; }
.section-label {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header p { margin-top: 16px; font-size: 1.05rem; }

/* ===========================
   FEATURES
   =========================== */
.features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.feature-card h3 { margin-bottom: 10px; }

/* ===========================
   HOW IT WORKS
   =========================== */
.how { background: var(--gray-light); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: steps;
}
.step {
  text-align: center;
  padding: 32px 24px;
  counter-increment: steps;
}
.step-number {
  width: 56px; height: 56px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }

/* ===========================
   MODULES / TABS
   =========================== */
.modules { background: var(--white); }
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--gray);
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}
.tab-content { display: none; }
.tab-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tab-text h2 { margin-bottom: 16px; }
.tab-text p { margin-bottom: 24px; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--navy-mid);
}
.check-list li::before {
  content: '';
  width: 20px; height: 20px;
  min-width: 20px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 50%;
}
.tab-visual {
  background: linear-gradient(135deg, var(--teal-light), #F0FDFA);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* ===========================
   PRICING PREVIEW
   =========================== */
.pricing-section { background: var(--gray-light); }
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  font-size: 0.9rem;
  font-weight: 600;
}
.toggle-switch {
  position: relative;
  width: 52px; height: 28px;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 50px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--teal); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }
.discount-badge {
  background: var(--teal);
  color: white;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 50px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
}
.pricing-card.featured {
  border-color: var(--teal);
  position: relative;
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0,177,157,0.15);
}
.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-card h3 { margin-bottom: 8px; }
.pricing-card .desc { font-size: 0.85rem; margin-bottom: 24px; min-height: 40px; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-amount .currency { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.price-amount .amount { font-size: 2.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price-amount .per { font-size: 0.85rem; color: var(--gray); }
.price-note { font-size: 0.8rem; color: var(--gray); margin-bottom: 28px; }
.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--navy-mid);
}
.pricing-features li .check {
  width: 18px; height: 18px; min-width: 18px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pricing-features li .check::after {
  content: '✓';
  font-size: 0.65rem;
  color: var(--teal);
  font-weight: 800;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===========================
   SOCIAL PROOF
   =========================== */
.social-proof { background: var(--white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
  margin-bottom: 64px;
}
.stat-item strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--teal); }
.stat-item span { font-size: 0.9rem; color: var(--gray); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--teal);
}
.testimonial-card p { color: var(--navy-mid); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--gray); }

/* ===========================
   CTA BANNER
   =========================== */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #008F7E 100%);
  padding: 80px 24px;
  text-align: center;
  color: white;
}
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-banner .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===========================
   FAQ
   =========================== */
.faq { background: var(--gray-light); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-icon {
  width: 24px; height: 24px; min-width: 24px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--teal);
  transition: all 0.3s;
}
.faq-item.open .faq-icon { background: var(--teal); color: white; border-color: var(--teal); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.9rem; color: var(--gray); line-height: 1.75; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 24px 32px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.88rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
}
.footer-bottom a { color: var(--teal); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { order: -1; max-width: 480px; margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .tab-content.active { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 24px 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}

/* ===========================
   LANGUAGE SWITCHER
   =========================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  transition: color 0.2s;
  font-family: var(--font);
}
.lang-btn:hover { color: var(--teal); }
.lang-btn.active { color: var(--teal); }
.lang-sep { color: var(--border); font-size: 0.85rem; }

/* Mobile nav open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: var(--white);
  padding: 24px;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
  gap: 20px;
  z-index: 999;
}
