/* ============================================================
   x4digital — styles.css
   System: Friendly Tech (primary) + Bold Creative (typographic energy)
   Palette: Derived from brand personality — emerald × deep violet,
            fast / modern / accessible SaaS energy
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* --- Backgrounds --- */
  --color-bg: #F7F8FC;             /* cool off-white page bg — never pure white */
  --color-bg-light: #FFFFFF;       /* card and surface */
  --color-bg-alt: #EDF1FF;         /* tinted alternate-section bg */
  --color-bg-dark: #080C18;        /* deep dark sections */

  /* --- Text --- */
  --color-text-primary: #101828;   /* near-black — never pure black */
  --color-text-muted: #667085;     /* secondary / muted */
  --color-text-light: #F2F4F7;     /* on dark sections */
  --color-text-xmuted: #98A2B3;    /* captions, meta, monospace labels */

  /* --- Accent (two max — deliberate tension pair) --- */
  --color-accent: #00B87A;         /* vibrant emerald: speed, AI, success, go */
  --color-accent-hover: #009966;   /* darker emerald for hover states */
  --color-accent-secondary: #7B3FE4; /* deep violet: gradients, dark-section CTAs */
  --color-accent-secondary-hover: #6930C3;

  /* --- Borders --- */
  --color-border-light: #EAECF0;   /* on light sections */
  --color-border-dark: #1D2A42;    /* on dark sections */

  /* --- Shadows / Overlay --- */
  --color-overlay: rgba(16, 24, 40, 0.08);
  --color-overlay-md: rgba(16, 24, 40, 0.14);
  --color-overlay-dark: rgba(16, 24, 40, 0.60);
  --color-overlay-accent: rgba(0, 184, 122, 0.18);

  /* --- Typography --- */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* --- Type Scale --- */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  2rem;       /* 32px */
  --text-4xl:  2.5rem;     /* 40px */
  --text-5xl:  3.5rem;     /* 56px */
  --text-6xl:  4.5rem;     /* 72px */

  /* --- Spacing (4px base) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;

  /* --- Radii --- */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* --- Transitions --- */
  --ease-snappy: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-cinematic: cubic-bezier(0.25, 0, 0, 1);
  --duration-hover: 0.22s;
  --duration-reveal: 0.55s;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.loaded {
  opacity: 1;
}

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

ul, ol { list-style: none; }

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

/* ── Layout Containers ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.container-wide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* ── Navigation ── */
[data-nav] {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 80px);
  background: transparent;
  transition: background var(--duration-hover) ease,
              border-color var(--duration-hover) ease,
              backdrop-filter var(--duration-hover) ease;
  border-bottom: 1px solid transparent;
}

[data-nav].scrolled {
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-border-light);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo .logo-x4 {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-hover) ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s var(--ease-snappy);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-login {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 16px;
  transition: color var(--duration-hover) ease;
}

.nav-login:hover {
  color: var(--color-text-primary);
}

/* Mobile nav toggle */
[data-mobile-toggle] {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-hover) ease;
}

[data-mobile-toggle]:hover {
  background: var(--color-border-light);
}

[data-mobile-toggle] span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-snappy), opacity 0.3s ease;
}

[data-mobile-toggle][aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
[data-mobile-toggle][aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
[data-mobile-toggle][aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  padding: var(--space-24) clamp(20px, 6vw, 48px) var(--space-12);
  gap: var(--space-6);
  overflow-y: auto;
}

.nav-mobile-drawer.open {
  display: flex;
}

.nav-mobile-drawer a {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--duration-hover) ease;
}

.nav-mobile-drawer a:hover {
  color: var(--color-accent);
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: clamp(20px, 5vw, 48px);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 8px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--duration-hover) ease,
              transform var(--duration-hover) ease,
              box-shadow var(--duration-hover) ease;
  box-shadow: 0 4px 18px var(--color-overlay-accent);
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--color-overlay-accent);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--color-text-primary);
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--color-border-light);
  transition: border-color var(--duration-hover) ease,
              color var(--duration-hover) ease,
              background var(--duration-hover) ease;
  min-height: 48px;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-overlay-accent);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-light);
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(242, 244, 247, 0.25);
  transition: border-color var(--duration-hover) ease,
              background var(--duration-hover) ease;
  min-height: 48px;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: rgba(242, 244, 247, 0.5);
  background: rgba(242, 244, 247, 0.08);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

/* ── Section Layout ── */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-sm {
  padding: clamp(48px, 7vw, 80px) 0;
}

.section-light {
  background: var(--color-bg);
}

.section-white {
  background: var(--color-bg-light);
}

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

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
  color: var(--color-text-light);
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-overlay-accent);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(0, 184, 122, 0.2);
}

.section-dark .section-badge {
  background: rgba(0, 184, 122, 0.15);
  border-color: rgba(0, 184, 122, 0.3);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.section-dark .section-header h2,
.section-gradient .section-header h2 {
  color: var(--color-text-light);
}

.section-header p {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.section-dark .section-header p,
.section-gradient .section-header p {
  color: var(--color-text-light);
  opacity: 0.8;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(100px, 14vh, 140px) 0 clamp(72px, 10vh, 100px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-accent) 6%, transparent) 0%,
    color-mix(in srgb, var(--color-accent-secondary) 5%, transparent) 60%,
    transparent 100%
  );
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--color-border-light) 1px,
    transparent 0
  );
  background-size: 28px 28px;
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-overlay-accent);
  color: var(--color-accent);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 400;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(0, 184, 122, 0.2);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 460px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-avatars {
  display: flex;
}

.hero-avatars .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  background: var(--color-bg-alt);
  overflow: hidden;
  margin-right: -10px;
  position: relative;
}

.hero-avatars .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-social-proof-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-left: var(--space-6);
}

.hero-social-proof-text strong {
  color: var(--color-text-primary);
}

.hero-visual {
  position: relative;
}

.hero-visual-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px var(--color-overlay-md), 0 0 0 1px var(--color-border-light);
}

.hero-visual-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-float {
  position: absolute;
  bottom: -18px;
  left: -24px;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 8px 32px var(--color-overlay-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid var(--color-border-light);
}

.hero-visual-float .float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-overlay-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-visual-float .float-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.hero-visual-float .float-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

/* ── Trust Bar ── */
.trust-bar {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-light);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trust-bar-inner::-webkit-scrollbar { display: none; }

.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-xmuted);
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border-light);
  flex-shrink: 0;
}

.trust-stat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.trust-stat .stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
}

.trust-stat .stat-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* ── Bento Grid (Features) ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}

.bento-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 2px 16px var(--color-overlay);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--duration-hover) var(--ease-snappy),
              box-shadow var(--duration-hover) var(--ease-snappy);
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-overlay-md);
}

.bento-card.wide {
  grid-column: span 2;
}

.bento-card.tall {
  grid-row: span 2;
}

.bento-card.featured {
  background: linear-gradient(
    140deg,
    var(--color-bg-dark) 0%,
    color-mix(in srgb, var(--color-bg-dark) 70%, var(--color-accent-secondary)) 100%
  );
  border-color: var(--color-border-dark);
}

.bento-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-overlay-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  color: var(--color-accent);
}

.bento-card.featured .card-icon {
  background: rgba(0, 184, 122, 0.15);
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.bento-card.featured h3 {
  color: var(--color-text-light);
}

.bento-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.bento-card.featured p {
  color: var(--color-text-light);
  opacity: 0.7;
}

.bento-card .card-body {
  flex: 1;
}

.bento-card .card-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-overlay-accent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-top: var(--space-4);
  border: 1px solid rgba(0, 184, 122, 0.15);
}

.bento-card.featured .card-tag {
  background: rgba(0, 184, 122, 0.15);
  border-color: rgba(0, 184, 122, 0.3);
}

.bento-stat {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

/* Glow orb on featured bento card */
.bento-card.featured::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(123, 63, 228, 0.4) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* ── How It Works ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 48px);
  counter-reset: step;
}

.how-step {
  counter-increment: step;
  position: relative;
}

.how-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.how-step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-overlay-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-accent);
  border: 1px solid rgba(0, 184, 122, 0.2);
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.how-connector {
  display: none;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 36px);
  box-shadow: 0 2px 16px var(--color-overlay);
  border: 1.5px solid var(--color-border-light);
  position: relative;
  transition: transform var(--duration-hover) var(--ease-snappy),
              box-shadow var(--duration-hover) var(--ease-snappy);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-overlay-md);
}

.pricing-card.popular {
  border-color: var(--color-accent);
  transform: scale(1.03);
  box-shadow: 0 8px 36px var(--color-overlay-accent);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #ffffff;
  padding: 4px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.pricing-card .plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-2);
}

.pricing-card .plan-price .amount {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-card .plan-price .period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-card .plan-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.pricing-card .plan-features {
  margin: 0 0 var(--space-6);
}

.pricing-card .plan-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  line-height: 1.5;
}

.pricing-card .plan-features li:last-child {
  border-bottom: none;
}

.pricing-card .plan-features li .check {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-plan {
  display: block;
  text-align: center;
  width: 100%;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--duration-hover) ease;
  min-height: 48px;
}

.btn-plan-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-light);
}

.btn-plan-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-overlay-accent);
}

.btn-plan-accent {
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px var(--color-overlay-accent);
}

.btn-plan-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-overlay-accent);
}

.pricing-more-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 20px auto 0;
}

.pricing-card-wide {
  background: linear-gradient(
    135deg,
    var(--color-bg-dark) 0%,
    color-mix(in srgb, var(--color-bg-dark) 75%, var(--color-accent-secondary)) 100%
  );
  border-color: var(--color-border-dark);
}

.pricing-card-wide .plan-name {
  color: var(--color-text-light);
}

.pricing-card-wide .plan-price .amount {
  color: var(--color-text-light);
}

.pricing-card-wide .plan-price .period {
  color: rgba(242, 244, 247, 0.6);
}

.pricing-card-wide .plan-desc {
  color: rgba(242, 244, 247, 0.65);
}

.pricing-card-wide .plan-features li {
  color: var(--color-text-light);
  border-bottom-color: var(--color-border-dark);
}

.pricing-card-wide .plan-features li .check {
  color: var(--color-accent);
}

.btn-plan-dark {
  background: rgba(0, 184, 122, 0.15);
  color: var(--color-accent);
  border: 1.5px solid rgba(0, 184, 122, 0.3);
}

.btn-plan-dark:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 2px 16px var(--color-overlay);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--duration-hover) var(--ease-snappy),
              box-shadow var(--duration-hover) var(--ease-snappy);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px var(--color-overlay-md);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.testimonial-stars svg {
  color: var(--color-accent);
}

.testimonial-card blockquote {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-primary);
  flex: 1;
}

.testimonial-reviewer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt);
  flex-shrink: 0;
  position: relative;
}

.testimonial-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.reviewer-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── FAQ Accordion ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: color var(--duration-hover) ease;
}

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

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration-hover) ease, transform 0.3s var(--ease-snappy);
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.faq-item.open .faq-question {
  color: var(--color-accent);
}

.faq-item.open .faq-icon {
  background: var(--color-overlay-accent);
  color: var(--color-accent);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-snappy);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
  padding-bottom: var(--space-6);
  max-width: 620px;
}

/* ── CTA Section ── */
.cta-section {
  padding: clamp(72px, 10vw, 120px) 0;
  background: linear-gradient(
    140deg,
    var(--color-bg-dark) 0%,
    color-mix(in srgb, var(--color-bg-dark) 55%, var(--color-accent-secondary)) 100%
  );
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(242, 244, 247, 0.04) 1px,
    transparent 0
  );
  background-size: 28px 28px;
  pointer-events: none;
}

.cta-glow-1 {
  position: absolute;
  top: -80px;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 184, 122, 0.18) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.cta-glow-2 {
  position: absolute;
  bottom: -80px;
  right: 8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(123, 63, 228, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text-light);
  margin-bottom: var(--space-5);
}

.cta-inner h2 .accent {
  color: var(--color-accent);
}

.cta-inner p {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-text-light);
  opacity: 0.7;
  margin-bottom: var(--space-8);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cta-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(242, 244, 247, 0.45);
  margin-top: var(--space-6);
}

/* ── Footer ── */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-dark);
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 48px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.footer-brand .brand-name .logo-x4 {
  color: var(--color-accent);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(242, 244, 247, 0.5);
  max-width: 280px;
  margin-bottom: var(--space-5);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 244, 247, 0.5);
  transition: border-color var(--duration-hover) ease,
              color var(--duration-hover) ease,
              background var(--duration-hover) ease;
}

.footer-social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 184, 122, 0.08);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 244, 247, 0.45);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(242, 244, 247, 0.6);
  transition: color var(--duration-hover) ease;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-dark);
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(242, 244, 247, 0.35);
  letter-spacing: 0.03em;
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(242, 244, 247, 0.35);
  transition: color var(--duration-hover) ease;
}

.footer-legal a:hover {
  color: rgba(242, 244, 247, 0.7);
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duration-reveal) var(--ease-snappy),
              transform var(--duration-reveal) var(--ease-snappy);
}

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

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ── Utility ── */
.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* SVG icons inline */
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Responsive — 1024px ── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-visual {
    max-width: 580px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .bento-card.wide { grid-column: span 1; }
  .bento-card.tall { grid-row: span 1; }

  .how-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 40px);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ── Responsive — 768px ── */
@media (max-width: 768px) {
  .nav-links,
  .nav-login {
    display: none;
  }

  [data-mobile-toggle] {
    display: flex;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-card { min-height: 180px; }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .pricing-more-row {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .hero-visual-float {
    left: -8px;
    bottom: -12px;
  }
}

/* ── Responsive — 640px ── */
@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn-primary,
  .cta-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .trust-bar-inner {
    gap: 20px;
  }
}


/* ── CSS safety-net (injected by proxy-orchestrator) ──
   Ensures image containers always have resolvable dimensions so imgs with
   height:100% don't collapse. Scoped to common container class patterns. */
[class*="image-col"],
[class*="image-wrap"],
[class*="img-wrap"],
[class*="img-container"],
[class*="image-container"],
[class*="photo-wrap"],
[class*="photo-container"],
.bento-card,
.listing-img-wrap,
.card-image,
.feature-image,
.hero-image,
.hero-media {
  min-height: 320px;
  aspect-ratio: 3 / 2;
  position: relative;
}
[class*="image-col"] > img,
[class*="image-wrap"] > img,
[class*="img-wrap"] > img,
[class*="img-container"] > img,
[class*="image-container"] > img,
[class*="photo-wrap"] > img,
[class*="photo-container"] > img,
.bento-card > img,
.bento-card-image > img,
.listing-img-wrap > img,
.card-image > img,
.feature-image > img,
.hero-image > img,
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .hero-image-col,
  .hero-media,
  .hero-image {
    aspect-ratio: auto;
    min-height: 100vh;
  }
}
/* Fallback for any bare img with percentage height */
img[style*="height: 100%"],
img[style*="height:100%"] {
  min-height: 320px;
}
/* ── end safety-net ── */
