/* ============================================
   DigiVend — Design System & Global Styles
   Premium B2B Fintech Aesthetic
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --navy:        #0B1D35;
  --navy-light:  #122844;
  --navy-mid:    #1A3558;
  --slate:       #2C3E5A;
  --emerald:     #00B37D;
  --emerald-dark:#009968;
  --emerald-light:#00D492;
  --gold:        #E8B931;
  --gold-muted:  #C5A255;
  --cream:       #F7F5F2;
  --cream-dark:  #EDE9E3;
  --white:       #FFFFFF;
  --text-dark:   #1A1A2E;
  --text-body:   #3D4555;
  --text-muted:  #6B7280;
  --text-light:  #8B95A5;
  --red-soft:    #E74C3C;
  --border:      #E2DFD9;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', -apple-system, sans-serif;

  /* Spacing Scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11,29,53,0.06), 0 1px 2px rgba(11,29,53,0.04);
  --shadow-md: 0 4px 16px rgba(11,29,53,0.08), 0 2px 4px rgba(11,29,53,0.04);
  --shadow-lg: 0 12px 40px rgba(11,29,53,0.12), 0 4px 12px rgba(11,29,53,0.06);
  --shadow-xl: 0 24px 60px rgba(11,29,53,0.16), 0 8px 20px rgba(11,29,53,0.08);
  --shadow-glow: 0 0 40px rgba(0,179,125,0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--emerald);
  color: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 500;
}

p {
  max-width: 65ch;
}

.text-muted {
  color: var(--text-muted);
}

.text-emerald {
  color: var(--emerald);
}

.text-white {
  color: var(--white);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--lg {
  padding: var(--space-4xl) 0;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              backdrop-filter var(--duration-normal) ease;
}

.header--scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header--dark .header__logo {
  color: var(--white);
}

.header--scrolled .header__logo {
  color: var(--navy) !important;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--emerald);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.header--dark .header__nav a {
  color: rgba(255,255,255,0.8);
}

.header--scrolled .header__nav a {
  color: var(--text-body) !important;
}

.header__nav a:hover {
  color: var(--emerald);
}

.header--dark .header__nav a:hover {
  color: var(--emerald-light);
}

.header--scrolled .header__nav a:hover {
  color: var(--emerald) !important;
}

.header__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__phone {
  display: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.header--dark .header__phone {
  color: var(--white);
}

.header--scrolled .header__phone {
  color: var(--navy) !important;
}

.header__phone svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Mobile Menu */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--duration-fast) ease;
}

.header--dark .mobile-toggle span {
  background: var(--white);
}

.header--scrolled .mobile-toggle span {
  background: var(--navy) !important;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: 100px var(--space-lg) var(--space-xl);
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

@media (min-width: 768px) {
  .header__phone { display: flex; align-items: center; }
}

@media (min-width: 900px) {
  .header__nav { display: flex; }
  .mobile-toggle { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,179,125,0.3);
}

.btn--primary:hover {
  background: var(--emerald-dark);
  box-shadow: 0 4px 20px rgba(0,179,125,0.4);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero--dark {
  background: var(--navy);
  color: var(--white);
}

.hero--dark h1,
.hero--dark h2,
.hero--dark h3 {
  color: var(--white);
}

.hero--dark p {
  color: rgba(255,255,255,0.75);
}

.hero--gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--slate) 100%);
  color: var(--white);
}

.hero--gradient h1,
.hero--gradient h2 {
  color: var(--white);
}

.hero--gradient p {
  color: rgba(255,255,255,0.75);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--emerald) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--emerald) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald));
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__content--centered {
  margin: 0 auto;
  text-align: center;
}

.hero__content--centered p {
  margin-left: auto;
  margin-right: auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: var(--space-lg);
}

.hero__eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--emerald);
  border-radius: 2px;
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__content--centered .hero__cta-row {
  justify-content: center;
}

.hero__trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.hero__trust-row svg {
  width: 16px;
  height: 16px;
  color: var(--emerald);
  flex-shrink: 0;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero Float Card */
.hero__visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  display: none;
}

@media (min-width: 1100px) {
  .hero__visual { display: block; }
  .hero { min-height: 600px; display: flex; align-items: center; }
}

.float-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--white);
}

.float-card__header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}

.float-card__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--emerald-light);
  margin-bottom: var(--space-xs);
}

.float-card__label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-xl);
}

.float-card__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}

.float-card__row:last-child {
  border-bottom: none;
}

.float-card__row span:last-child {
  font-weight: 600;
  color: var(--emerald-light);
}

/* --- Stat Bar --- */
.stat-bar {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.stat-bar--dark {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.06);
}

.stat-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .stat-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-bar__item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: var(--space-xs);
}

.stat-bar--dark .stat-bar__item h3 {
  color: var(--emerald-light);
}

.stat-bar__item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 auto;
}

.stat-bar--dark .stat-bar__item p {
  color: rgba(255,255,255,0.5);
}

/* --- Section Headers --- */
.section-header {
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: var(--space-md);
}

.section-header__eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--emerald);
  border-radius: 2px;
}

.section-header--center .section-header__eyebrow::before {
  display: none;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Feature Cards --- */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(0,179,125,0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,179,125,0.1), rgba(0,179,125,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--emerald);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  position: relative;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald));
    opacity: 0.3;
  }
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--emerald-light);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(11,29,53,0.2);
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 280px;
  margin: 0 auto;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--emerald);
  opacity: 0.2;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: var(--gold);
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-card__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0,179,125,0.15), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(232,185,49,0.1), transparent 60%);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(255,255,255,0.65);
  margin: 0 auto var(--space-xl);
  max-width: 500px;
  font-size: 1.05rem;
}

.cta-banner .btn--primary {
  font-size: 1.05rem;
  padding: 16px 40px;
}

/* --- Calculator --- */
.calculator {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.calculator__header {
  background: var(--navy);
  padding: var(--space-xl);
  color: var(--white);
  text-align: center;
}

.calculator__header h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.calculator__header p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin: 0 auto;
}

.calculator__body {
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0,179,125,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Calculator Results */
.calc-results {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-top: var(--space-lg);
  display: none;
}

.calc-results.active {
  display: block;
  animation: slideUp 0.5s var(--ease-out);
}

.calc-results__amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--emerald-light);
  margin-bottom: var(--space-xs);
}

.calc-results__label {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.calc-results__breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.calc-results__stat {
  padding: var(--space-md);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
}

.calc-results__stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.calc-results__stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* --- Comparison Table --- */
.comparison {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison__header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}

.comparison__header > div {
  padding: var(--space-md) var(--space-lg);
}

.comparison__header > div:nth-child(3) {
  background: rgba(0,179,125,0.15);
  color: var(--emerald-light);
}

.comparison__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.comparison__row:last-child {
  border-bottom: none;
}

.comparison__row > div {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
}

.comparison__row > div:nth-child(3) {
  background: rgba(0,179,125,0.03);
  font-weight: 600;
  color: var(--emerald);
}

.comparison__check {
  color: var(--emerald);
  width: 20px;
  height: 20px;
}

.comparison__x {
  color: var(--red-soft);
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

/* --- FAQ / Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

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

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer p {
  padding-bottom: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer__col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: var(--space-sm);
}

.footer__col a {
  font-size: 0.9rem;
  transition: color var(--duration-fast) ease;
}

.footer__col a:hover {
  color: var(--emerald-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* --- Animations --- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* --- Page-Specific: Light Hero Variant --- */
.hero--light {
  background: var(--cream);
}

.hero--light h1,
.hero--light h2 {
  color: var(--text-dark);
}

.hero--light p {
  color: var(--text-muted);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge--emerald {
  background: rgba(0,179,125,0.1);
  color: var(--emerald);
}

.badge--gold {
  background: rgba(232,185,49,0.1);
  color: var(--gold-muted);
}

.badge--navy {
  background: rgba(11,29,53,0.08);
  color: var(--navy);
}

/* --- Contact Form Specific --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(0,179,125,0.12), transparent 60%);
  pointer-events: none;
}

.contact-info-card > * {
  position: relative;
  z-index: 2;
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.contact-info-card p {
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-xl);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0,179,125,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-light);
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}

.contact-detail__value {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.contact-detail__value a {
  color: var(--white);
  transition: color var(--duration-fast) ease;
}

.contact-detail__value a:hover {
  color: var(--emerald-light);
}

/* --- Responsive Fine-tuning --- */
@media (max-width: 639px) {
  .hero {
    padding: 120px 0 60px;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section--lg {
    padding: var(--space-3xl) 0;
  }
  
  .cta-banner {
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
  }
  
  .comparison__header,
  .comparison__row {
    grid-template-columns: 1.2fr 1fr 1fr;
    font-size: 0.8rem;
  }
  
  .comparison__header > div,
  .comparison__row > div {
    padding: var(--space-sm) var(--space-md);
  }
  
  .btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
  }
}

/* --- Industry Page Hero Split --- */
.hero--split {
  display: flex;
  align-items: center;
}

.hero--split .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero--split .container {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Savings Highlight --- */
.savings-highlight {
  background: linear-gradient(135deg, rgba(0,179,125,0.06), rgba(0,179,125,0.02));
  border: 1px solid rgba(0,179,125,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.savings-highlight__amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--emerald);
}

.savings-highlight__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Before/After Strip --- */
.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .before-after {
    grid-template-columns: 1fr 1fr;
  }
}

.before-after__side {
  padding: var(--space-xl);
}

.before-after__side--before {
  background: #FEF2F2;
}

.before-after__side--after {
  background: #F0FDF9;
}

.before-after__title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.before-after__side--before .before-after__title {
  color: var(--red-soft);
}

.before-after__side--after .before-after__title {
  color: var(--emerald);
}

.before-after__list {
  list-style: none;
}

.before-after__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-body);
}

.before-after__list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.before-after__side--before .before-after__list svg {
  color: var(--red-soft);
}

.before-after__side--after .before-after__list svg {
  color: var(--emerald);
}

/* -- Inline form on hero -- */
.hero-form {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.hero-form label {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-xs);
}

.hero-form input,
.hero-form select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.hero-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.hero-form input:focus,
.hero-form select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0,179,125,0.15);
}

/* --- Guarantee Strip --- */
.guarantee {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(0,179,125,0.04);
  border: 1px solid rgba(0,179,125,0.12);
  border-radius: var(--radius-md);
}

.guarantee__icon {
  width: 48px;
  height: 48px;
  background: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.guarantee__icon svg {
  width: 24px;
  height: 24px;
}

.guarantee__text h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.guarantee__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Success message --- */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}

.form-success.active {
  display: block;
  animation: slideUp 0.5s var(--ease-out);
}

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,179,125,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--emerald);
}

.form-success__icon svg {
  width: 32px;
  height: 32px;
}

.form-success h3 {
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--text-muted);
  margin: 0 auto;
}
