/* ==========================================================================
   Speak 'N Split — Design System & Styles
   Tactile Leather & Olive Green Design System
   Developer: LogyByte
   ========================================================================== */

:root {
  /* Olive Green Brand Palette */
  --primary-900: #252b1b;
  --primary-800: #35402a;
  --primary-700: #465133;
  --primary-600: #5b6742;
  --primary-500: #6f7f50;
  --primary-400: #93a66c;
  --primary-300: #aab88a;
  --primary-100: #dce2cf;
  --primary-50:  #f4f6f0;

  /* Leather Black & Charcoal */
  --leather-900: #100f0c;
  --leather-800: #171612;
  --leather-700: #201f1a;
  --leather-600: #292820;
  --leather-500: #302f27;
  --leather-400: #37352b;

  /* Cream & Sandstone */
  --cream-100: #fbf8f1;
  --cream-200: #f2ebdd;
  --cream-300: #e9e0cf;
  --cream-400: #d8d0c0;

  /* Text & Inks */
  --text-main: #f2ebdc;
  --text-muted: #c6c0b1;
  --text-subtle: #969182;
  --text-disabled: #635f53;

  /* Balances */
  --balance-positive: #87a96b;
  --balance-negative: #c26756;
  --balance-neutral: #c59b27;

  /* Surface & Borders */
  --bg: #171612;
  --surface: #201f1a;
  --surface-raised: #292820;
  --surface-subtle: #302f27;
  --border: #3d3b32;
  --border-subtle: #2d2c25;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px -1px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.6), 0 6px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(147, 166, 108, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f0e6;
    --surface: #fcfaf5;
    --surface-raised: #ffffff;
    --surface-subtle: #ebe3d3;
    --border: #dfd7c5;
    --border-subtle: #eee6d6;

    --text-main: #1f221a;
    --text-muted: #565a4e;
    --text-subtle: #797d70;
    --text-disabled: #9ea294;

    --shadow-md: 0 4px 14px -1px rgba(32, 35, 28, 0.08);
    --shadow-lg: 0 16px 32px -4px rgba(32, 35, 28, 0.12);
    --shadow-glow: 0 0 35px rgba(91, 103, 66, 0.2);
  }
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-300);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 820px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(23, 22, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-normal);
}

@media (prefers-color-scheme: light) {
  .site-header {
    background-color: rgba(245, 240, 230, 0.88);
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(147, 166, 108, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-400);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(91, 103, 66, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(147, 166, 108, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--surface-subtle);
  color: var(--primary-400);
  border-color: var(--primary-400);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

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

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

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 166, 108, 0.18) 0%, rgba(147, 166, 108, 0) 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -150px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.12) 0%, rgba(197, 155, 39, 0) 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(147, 166, 108, 0.15);
  border: 1px solid rgba(147, 166, 108, 0.3);
  color: var(--primary-400);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-icon {
  color: var(--primary-400);
}

/* Hero Voice Interactive Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-main {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 24px;
}

.voice-orb-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-400) 0%, var(--primary-600) 70%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 0 25px rgba(147, 166, 108, 0.4);
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(147, 166, 108, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 40px rgba(147, 166, 108, 0.6);
  }
}

.voice-sample-bubble {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.voice-sample-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-400);
  font-weight: 700;
  margin-bottom: 6px;
}

.voice-sample-text {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
  font-style: italic;
}

.parsed-result-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parsed-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.parsed-detail {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.parsed-amount {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--balance-positive);
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-strip {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 8px 16px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-400);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Sections & Features
   ========================================================================== */
.section {
  padding: 84px 0;
  position: relative;
}

.section-alt {
  background-color: var(--surface-subtle);
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-400);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(147, 166, 108, 0.4);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(147, 166, 108, 0.15);
  color: var(--primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-400);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-normal);
  color: var(--primary-400);
}

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

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--leather-800), var(--leather-600));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(147, 166, 108, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  color: var(--text-main);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Legal & Static Pages
   ========================================================================== */
.legal-page {
  padding: 48px 0 84px;
}

.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal-title {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.legal-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.legal-content h2 {
  font-size: 1.65rem;
  color: var(--primary-400);
  margin: 36px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
}

.legal-content p {
  margin-bottom: 18px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-500);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: auto;
}

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

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions, .hero-trust {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 40px 24px;
  }
  .cta-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
