/* =============================================
   OMMLY — DESIGN SYSTEM V2
   Dark-first premium SaaS
   ============================================= */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

/* --- DARK THEME (default) --- */
:root {
  /* Core backgrounds */
  --bg:       #07090f;
  --bg-2:     #0c0f1a;
  --bg-3:     #101420;
  --bg-4:     #141828;

  /* Surfaces */
  --surface:    rgba(255,255,255,0.035);
  --surface-2:  rgba(255,255,255,0.06);
  --surface-3:  rgba(255,255,255,0.09);

  /* Borders */
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --border-3:   rgba(255,255,255,0.18);

  /* Text */
  --text:       #eef0f8;   /* ~20:1 vs --bg */
  --text-2:     #9aa3bf;   /* ~7.0:1 vs --bg  — was #7a84a0 (~4.2:1) */
  --text-muted: #b3b3b3;   /* ~9.0:1 vs --bg  — secondary/captions/descriptions */
  --text-3:     #666f8a;   /* ~3.2:1 vs --bg  — decorative labels only (11px mono) */
  --text-4:     #3d4560;   /* ~1.7:1 vs --bg  — decorative/non-readable only */

  /* Brand */
  --cyan:     #00C8FC;
  --blue:     #2F6BFF;
  --violet:   #6538FF;
  --grad:     linear-gradient(135deg,
                #00C8FC 0%, #2F6BFF 55%, #6538FF 100%);
  --grad-text: linear-gradient(135deg,
                #00C8FC 0%, #4d84ff 55%, #8f6fff 100%);

  /* Status */
  --success:  #22c55e;
  --danger:   #ef4444;
  --warn:     #f59e0b;

  /* Layout */
  --gutter:       clamp(16px, 5.5vw, 80px);
  --header-h:     68px;
  --max:          1320px;
  --narrow:       680px;
  --section-py:   clamp(96px, 12vh, 160px);
  --radius:       2px;
  --radius-md:    6px;
  --radius-lg:    12px;
  --radius-full:  9999px;

  /* Type scale */
  --text-display: clamp(44px, 6.5vw, 104px);
  --text-h1:      clamp(36px, 5vw, 80px);
  --text-h2:      clamp(30px, 3.5vw, 56px);
  --text-h3:      clamp(18px, 1.8vw, 26px);
  --text-body-lg: clamp(15px, 1.1vw, 18px);
  --text-body:    14px;
  --text-sm:      13px;
  --text-xs:      11px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.6);
  --glow-blue:    0 0 40px rgba(47,107,255,0.18);
  --glow-cyan:    0 0 30px rgba(0,200,252,0.12);
}

/* --- LIGHT THEME --- */
html[data-theme="light"] {
  color-scheme: light;
  --bg:       #ffffff;
  --bg-2:     #f7f8fc;
  --bg-3:     #f0f2f8;
  --bg-4:     #e8ebf5;

  --surface:    rgba(0,0,0,0.025);
  --surface-2:  rgba(0,0,0,0.045);
  --surface-3:  rgba(0,0,0,0.07);

  --border:     rgba(0,0,0,0.07);
  --border-2:   rgba(0,0,0,0.12);
  --border-3:   rgba(0,0,0,0.18);

  --text:       #0a0d16;   /* ~18:1 vs #fff */
  --text-2:     #4a5272;   /* ~5.7:1 vs #fff — passes AA */
  --text-muted: #5a6380;   /* ~5.0:1 vs #fff — secondary on light bg */
  --text-3:     #767d9a;   /* ~3.3:1 vs #fff — decorative labels only */
  --text-4:     #a0a8c0;   /* ~1.8:1 vs #fff — decorative only */

  --grad-text: linear-gradient(135deg,
                #0099c4 0%, #2F6BFF 55%, #6538FF 100%);

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.10);
  --glow-blue:    0 0 40px rgba(47,107,255,0.10);
  --glow-cyan:    0 0 30px rgba(0,200,252,0.08);
}

/* =============================================
   GRAIN
   ============================================= */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  will-change: transform;
}
html[data-theme="light"] .grain { opacity: 0.018; }

/* =============================================
   SKIP LINK
   ============================================= */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10000;
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* =============================================
   CONTAINER
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: var(--narrow); }

/* =============================================
   TYPOGRAPHY
   ============================================= */
.text-display {
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.text-h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.text-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.text-h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.text-body-lg {
  font-size: var(--text-body-lg);
  line-height: 1.75;
  color: var(--text-muted);
}
.text-mono {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.text-label {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.word:has(.text-gradient) {
  overflow: visible;
}
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 200;
  transition: background 0.4s ease,
              border-color 0.4s ease,
              backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,9,15,0.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
}
html[data-theme="light"] .site-header.scrolled {
  background: rgba(255,255,255,0.88);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 0;
  overflow: visible;
}

/* Logo */
.logo-link {
  flex-shrink: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
  min-width: 0;
}
.logo-link img {
  height: 45px;
  width: auto;
}
html:not([data-theme="light"]) .logo-link img,
html:not([data-theme="light"]) .footer-brand img {
  
}

/* Desktop nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 32px;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s;
  white-space: nowrap;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: rgba(255,255,255,0.95);
}

/* Bracket hover effect */
.nav-link::before,
.nav-link::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px;
  height: 12px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-link::before {
  left: 2px;
  border-width: 1px 0 1px 1px;
  transform: translateY(-50%) translateX(6px);
}
.nav-link::after {
  right: 2px;
  border-width: 1px 1px 1px 0;
  transform: translateY(-50%) translateX(-6px);
}
.nav-link:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.nav-link:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.nav-link svg {
  width: 10px;
  height: 10px;
  opacity: 0.4;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  padding: 6px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border-radius: var(--radius);
  transition: color 0.12s, background 0.12s;
}
.nav-dropdown a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-dropdown a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  border-radius: 4px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: color 0.15s, border-color 0.15s;
  display: none !important;
}
.theme-toggle:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}
.theme-toggle svg { width: 15px; height: 15px; }

/* Login */
.btn-nav-login {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  transition: color 0.15s, border-color 0.15s;
}
.btn-nav-login:hover {
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.3);
}

html[data-theme="light"] .nav-link {
  color: var(--text-muted);
}
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
  color: var(--text);
}
html[data-theme="light"] .btn-nav-login {
  color: var(--text-muted);
  border-color: rgba(0,0,0,0.15);
}
html[data-theme="light"] .btn-nav-login:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.3);
}
html[data-theme="light"] .theme-toggle {
  color: rgba(0,0,0,0.5);
  border-color: rgba(0,0,0,0.12);
}
html[data-theme="light"] .theme-toggle:hover {
  color: rgba(0,0,0,0.9);
}

/* Header CTA */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}
.btn-nav-cta:hover { opacity: 0.85; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--bg);
  z-index: 199;
  padding: 32px var(--gutter) 48px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav-section {
  font-family: monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 24px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a {
  display: block;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-nav-links a:hover { color: var(--text); }
.mobile-nav-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1100px) {
  .btn-nav-login { display: none; }
}
@media (max-width: 960px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
}
@media (min-width: 961px) {
  .mobile-nav { display: none !important; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s,
              border-color 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  padding: 13px 26px;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover { opacity: 0.82; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--border-3);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
}

.btn-sm { padding: 9px 18px; font-size: 10px; }
.btn-lg { padding: 16px 36px; font-size: var(--text-sm); }

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: var(--section-py) 0;
}
.section-sm,
.section--sm  { padding: clamp(48px, 7vh, 96px) 0; }
.section-alt,
.section--alt { background: var(--bg-2); }
.section-dark{ background: var(--bg-3); }

.platform-band {
  background: #2f6bff26;
}

.solutions-band {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-image: url('/images/Solutions.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.solutions-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 9, 15, 0.72) 0%, rgba(7, 9, 15, 0.98) 85%, rgba(7, 9, 15, 100) 100%);
}
html[data-theme="light"] .solutions-band::before {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.84) 45%,
    rgba(255, 255, 255, 0.92) 100%
  );
}
.solutions-band > .container {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .solutions-band { background-attachment: scroll; }
}

/* Hairline divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* =============================================
   SECTION HEADER — left aligned
   ============================================= */
.section-head,
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 5vh, 64px);
  padding-bottom: clamp(24px, 3vh, 40px);
  border-bottom: 1px solid var(--border);
}
.section-head-left .text-label,
.section-header-left .text-label {
  margin-bottom: 14px;
  display: block;
}
.section-head-left h2,
.section-header-left h2 {
  max-width: 22ch;
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-head-right {
  flex-shrink: 0;
  padding-bottom: 6px;
}
.section-head-link {
  font-family: monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-head-link:hover { color: var(--cyan); }
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: clamp(40px, 5vh, 64px);
}
.section-head--center .section-head-left h2 {
  max-width: 22ch;
  margin: 0 auto;
}
.section-head--center .section-lead {
  max-width: 46ch;
  margin: 14px auto 0;
}
@media (max-width: 640px) {
  .section-head,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head--center { align-items: center; }
}

/* =============================================
   HERO — full viewport, content vertically centered
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Header overlays hero — offset top so content centers in usable area */
  padding-top: var(--header-h);
  padding-bottom: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  overflow: hidden;
  background: var(--bg);
}
html[data-theme="light"] .hero {
  background: var(--bg);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Subtle radial glow only — no particle effects */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(47,107,255,0.10) 0%,
    rgba(0,200,252,0.05) 30%,
    transparent 65%);
  pointer-events: none;
  filter: blur(10px);
}
html[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse at 50% 0%,
    rgba(47,107,255,0.08) 0%,
    rgba(0,200,252,0.04) 30%,
    transparent 65%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}

/* Subtle grid lines only — no particle effects */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(255,255,255,0.025) 1px,
      transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%,
    rgba(0,0,0,0.6) 0%,
    transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%,
    rgba(0,0,0,0.6) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
}

/* Top meta row */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(16px, 2.5vh, 32px);
  flex-wrap: nowrap;
  overflow: hidden;
}
.hero-eyebrow .text-label {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.hero-eyebrow-line {
  width: 24px;
  min-width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.hero-eyebrow-sub {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main headline */
.hero-headline {
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: clamp(28px, 3.5vh, 48px);
  max-width: 100%;
}
@media (min-width: 1200px) {
  .hero-headline { max-width: 14ch; }
}
@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(36px, 8vw, 56px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
  }
}

/* Bottom row: subtitle left, CTA right */
.hero-bottom {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(40px, 5vw, 100px);
  width: 100%;
  max-width: 900px;
}

.hero-subtitle {
  flex: 1;
  font-size: clamp(14px, 1.1vw, 17px);
  color: #fff;
  line-height: 1.75;
  max-width: 34ch;
  padding-top: 4px;
}

.hero-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.hero-btn-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

/* Buttons — fixed width, not stretching */
.hero-btn-row .btn {
  width: auto;
  min-width: 160px;
  justify-content: center;
}

.hero-cta-note {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding-left: 2px;
}

@media (max-width: 760px) {
  .hero-bottom {
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
  }
  .hero-subtitle {
    max-width: 100%;
    padding-top: 0;
  }
  .hero-btn-row {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-row .btn {
    width: 100%;
    min-width: unset;
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: clamp(16px, 2.5vh, 32px);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  z-index: 2;
}
@media (max-width: 768px) {
  .hero-scroll { display: none; }
}
.hero-scroll-text {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--border-2), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6) translateY(30%); }
}

.hero-home {
  justify-content: center;
  padding-top: calc(var(--header-h) + clamp(40px, 6vh, 88px));
  padding-bottom: clamp(72px, 10vh, 120px);
}
.hero-home .hero-inner { max-width: var(--max); }
.hero-home .hero-eyebrow { margin-bottom: clamp(18px, 2.5vh, 28px); }
.hero-home .hero-headline {
  font-size: var(--text-h1);
  line-height: 1.06;
  max-width: 18ch;
  margin-bottom: clamp(24px, 3vh, 40px);
}
.hero-home .hero-bottom {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(40px, 5vw, 100px);
  width: 100%;
  max-width: 1000px;
}
.hero-home .hero-actions {
  flex-direction: column;
  gap: 14px;
}
html[data-theme="light"] .hero-home::after { opacity: 0.18; }
html[data-theme="light"] .hero-home::before {
  background: radial-gradient(ellipse at 50% 18%,
    rgba(0,200,252,0.10) 0%,
    rgba(47,107,255,0.12) 28%,
    rgba(101,56,255,0.06) 52%,
    transparent 70%);
}

/* =============================================
   SHARP TILE CARDS
   ============================================= */
/* Card grid — hairline gap between tiles */
.tile-grid {
  display: grid;
  border: 1px solid var(--border);
}
.tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tile-grid--2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  padding: clamp(24px, 2.5vw, 40px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}
.tile:hover { background: var(--surface); }

/* Remove double borders on edges */
.tile-grid--3 .tile:nth-child(3n),
.tile-grid--4 .tile:nth-child(4n),
.tile-grid--2 .tile:nth-child(2n) {
  border-right: none;
}

/* Hover accent: top-left corner lines */
.tile::before,
.tile::after {
  content: '';
  position: absolute;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.2s, width 0.25s, height 0.25s;
}
.tile::before {
  top: 0; left: 0;
  height: 1px; width: 0;
}
.tile::after {
  top: 0; left: 0;
  width: 1px; height: 0;
}
.tile:hover::before { opacity: 1; width: 48px; }
.tile:hover::after  { opacity: 1; height: 48px; }

.tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0,200,252,0.06);
  border: 1px solid rgba(0,200,252,0.15);
  margin-bottom: 22px;
  flex-shrink: 0;
}
.tile-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.tile:hover .tile-icon { transform: scale(1.12); }
.tile-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.3;
}
.tile-title--accent { color: var(--cyan); }
.tile-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Responsive tile grids */
@media (max-width: 900px) {
  .tile-grid--3,
  .tile-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tile-grid--3 .tile:nth-child(3n) {
    border-right: 1px solid var(--border);
  }
  .tile-grid--3 .tile:nth-child(2n),
  .tile-grid--4 .tile:nth-child(2n) {
    border-right: none;
  }
}
@media (max-width: 540px) {
  .tile-grid--3,
  .tile-grid--4,
  .tile-grid--2 { grid-template-columns: 1fr; }
  .tile { border-right: none !important; }
}

/* =============================================
   FEATURE RAIL (split layout)
   ============================================= */
.feature-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 5vw, 96px);
  align-items: center;
}
.feature-rail .feature-visual { order: 1; }
.feature-rail .feature-content { order: 2; }
.feature-rail.reverse .feature-visual { order: 2; }
.feature-rail.reverse .feature-visual { background: none !important; border: none !important; }
.feature-rail.reverse .feature-content { order: 1; }
@media (max-width: 768px) {
  .feature-rail { grid-template-columns: 1fr; }
  .feature-rail .feature-visual,
  .feature-rail.reverse .feature-visual { order: 1; }
  .feature-rail .feature-content,
  .feature-rail.reverse .feature-content { order: 2; }
}

.feature-visual {
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  width: 100%;
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(0,200,252,0.07) 1px,
      transparent 1px),
    linear-gradient(
      90deg,
      rgba(0,200,252,0.07) 1px,
      transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(
    ellipse at center,
    black 20%,
    transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 20%,
    transparent 75%);
}
.feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(47,107,255,0.06) 0%,
    transparent 65%);
  pointer-events: none;
}
.feature-visual-emoji {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual-emoji svg {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 20px rgba(0,200,252,0.2));
}
.feature-visual > img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.feature-content .text-label { margin-bottom: 14px; display: block; }
.feature-content h2 { margin-bottom: 18px; }
.feature-content p {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.feature-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  font-size: var(--text-body);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s, color 0.12s;
}
.feature-list-item:last-child { border-bottom: none; }
.feature-list-item:hover {
  background: var(--surface);
  color: var(--text);
}
.feature-list-item::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
}

/* =============================================
   STEPS
   ============================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  align-items: stretch;
}
.step-item {
  padding: clamp(32px, 3vw, 52px);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.15s;
}
.step-item:last-child { border-right: none; }
.step-item:hover { background: var(--surface); }
.step-num {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: block;
  opacity: 0.8;
}
.step-item h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text);
}
.step-item p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.65;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .step-item { border-right: none; border-bottom: 1px solid var(--border); }
  .step-item:last-child { border-bottom: none; }
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  border: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: var(--text-body-lg);
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  gap: 24px;
  transition: background 0.12s;
}
.faq-question:hover { background: var(--surface); }
.faq-question svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.3s, color 0.2s;
}
.faq-item.open .faq-question {
  background: var(--surface);
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: var(--cyan);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0,0,.2,1);
}
.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 300px;
  background: radial-gradient(ellipse,
    rgba(47,107,255,0.08),
    transparent 70%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.cta-band .text-label { margin-bottom: 16px; display: block; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .text-h2 {
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================
   FLOATING WHATSAPP
   ============================================= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  z-index: 100;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
}
.wa-float svg { width: 26px; height: 26px; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb-nav { padding: 20px 0; }
.page-hero .breadcrumb-nav {
  padding: 0 0 24px 0;
  margin-bottom: 0;
}
.page-hero .breadcrumb-nav .container {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  width: 100%;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumb-item { display: flex; align-items: center; gap: 6px; }
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--text-4);
  font-size: var(--text-xs);
}
.breadcrumb-item a {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s;
}
.breadcrumb-item a:hover { color: var(--cyan); }
.breadcrumb-item [aria-current="page"] {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(64px, 8vh, 100px) 0 clamp(48px, 6vh, 72px);
  border-bottom: 1px solid var(--border);
}
.footer-brand img { height: 28px; width: auto; }
.footer-brand p {
  font-size: var(--text-body);
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.65;
  max-width: 280px;
}
.footer-col-label {
  font-family: monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  display: block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: var(--text-body);
  color: var(--text-muted);
  transition: color 0.12s;
}
.footer-col li a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  color: var(--text-3);
}
.footer-bottom-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 46ch;
}
.footer-ownership {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--text-3);
}
.footer-copyright {
  margin: 0;
  font-family: monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a {
  font-family: monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.12s;
}
.footer-legal a:hover { color: var(--text); }

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   BLOG
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.blog-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  overflow: hidden;
}
.blog-card:nth-child(3n) { border-right: none; }
.blog-card:hover { background: var(--surface); }
.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--bg-3);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0,0,.2,1);
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px; }
.category-badge {
  font-family: monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  display: block;
}
.blog-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card-body h3 a { color: var(--text); transition: color 0.12s; }
.blog-card-body h3 a:hover { color: var(--cyan); }
.blog-card-body p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  gap: 16px;
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 14px;
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card:nth-child(3n) {
    border-right: 1px solid var(--border);
  }
  .blog-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { border-right: none !important; }
}

/* Pagination */
.pagination { padding: 48px 0; }
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.pagination-info {
  font-family: monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Category tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}
.category-tab {
  padding: 10px 18px;
  font-family: monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-right: 1px solid var(--border);
  transition: background 0.12s, color 0.12s;
}
.category-tab:last-child { border-right: none; }
.category-tab:hover { color: var(--text); background: var(--surface); }
.category-tab.active {
  background: var(--surface-2);
  color: var(--cyan);
}

/* =============================================
   LEGAL
   ============================================= */
.legal-placeholder {
  display: inline-block;
  background: rgba(245,158,11,0.08);
  border: 1px dashed rgba(245,158,11,0.35);
  color: #f59e0b;
  padding: 2px 8px;
  font-style: italic;
  font-size: 0.875em;
}
.notice {
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: var(--text-body);
  line-height: 1.65;
  border-left: 2px solid var(--blue);
  background: rgba(47,107,255,0.05);
  color: var(--text-muted);
}
.notice--info,
.notice-success {
  background: rgba(47,107,255,0.05);
  border-color: var(--blue);
  color: var(--text-muted);
}
.notice--warn,
.notice-error {
  background: rgba(245,158,11,0.05);
  border-color: #f59e0b;
  color: var(--text-muted);
}
.notice-success {
  background: rgba(34,197,94,0.08);
  border-color: var(--success);
}
.notice-error {
  background: rgba(239,68,68,0.08);
  border-color: var(--danger);
}
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-body); }
th {
  text-align: left;
  padding: 12px 16px;
  font-family: monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: var(--text-body);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

/* =============================================
   ANIMATIONS
   ============================================= */
/* Split word reveal */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}
.word-inner {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.65s cubic-bezier(0,0,.2,1);
}
.word-inner.in { transform: translateY(0); }

/* Line reveal for section h2 */
.line-wrap {
  overflow: hidden;
  display: block;
}
.line-inner {
  display: block;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0,0,.2,1);
}
.line-inner.in { transform: translateY(0); }

/* Fade up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* =============================================
   UTILITIES
   ============================================= */
.flex { display: flex; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mt-48  { margin-top: 48px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mb-48  { margin-bottom: 48px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Light mode card corrections */
html[data-theme="light"] .tile {
  background: #fff;
}
html[data-theme="light"] .tile:hover {
  background: var(--bg-2);
}
html[data-theme="light"] .feature-visual {
  background: var(--bg-2);
}
html[data-theme="light"] .step-item {
  background: #fff;
}
html[data-theme="light"] .step-item:hover {
  background: var(--bg-2);
}
html[data-theme="light"] .faq-question:hover,
html[data-theme="light"] .faq-item.open .faq-question {
  background: var(--bg-2);
}
html[data-theme="light"] .blog-card {
  background: #fff;
}
html[data-theme="light"] .blog-card:hover {
  background: var(--bg-2);
}
html[data-theme="light"] .cta-band {
  background: #eef4ff;
}

/* =============================================
   INNER PAGE COMPATIBILITY
   ============================================= */
#main-content { padding-top: var(--header-h); }
#main-content:has(> .hero) { padding-top: 0; }

h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.page-hero {
  padding-top: calc(var(--header-h) +
               clamp(48px, 7vh, 96px));
  padding-bottom: clamp(56px, 8vh, 96px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  z-index: 3;
}
.page-hero > .container {
  position: relative;
  z-index: 2;
}
.page-hero > .container.narrow {
  max-width: var(--max);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  
}
.page-hero-inner .text-label {
  display: block;
  margin-bottom: 16px;
}
.page-headline {
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}
.page-subtitle {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--cyan);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 52ch;
}
.page-intro {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 60ch;
}
.page-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Problem block */

.problem-block .text-label {
  display: block;
  margin-bottom: 14px;
}
.problem-block h2 {
  margin-bottom: 16px;
}
.problem-block p {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-muted);
  line-height: 1.75;
}

/* FAQ narrow */
.faq-list.narrow {
  max-width: 760px;
}

.eyebrow {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.hero-lead {
  font-size: var(--text-body-lg);
  color: var(--cyan);
  line-height: 1.75;
  max-width: 52ch;
}
.contact-support {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: 1.65;
}
.contact-support p { margin: 0 0 0.5rem; }
.contact-support a { color: var(--cyan); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.error-page p {
  color: var(--text-muted);
  font-size: var(--text-body-lg);
  margin-top: 12px;
  max-width: 46ch;
}

.section-lead {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
}

.check-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  font-size: var(--text-body);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.65;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  background: var(--cyan);
  border-radius: 50%;
}

.feature-rail:has(> article) {
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--border);
}
.feature-rail:has(> article) > article {
  padding: clamp(24px, 2.2vw, 40px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.feature-rail:has(> article) > article:nth-child(2n) {
  border-right: none;
}
.feature-rail:has(> article) > article:hover {
  background: var(--surface);
}
.feature-rail:has(> article) h3 {
  margin-bottom: 10px;
  color: var(--text);
}
.feature-rail:has(> article) p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.feature-rail:has(> article) a { color: var(--cyan); }
.feature-rail:has(> article:nth-child(5)) {
  grid-template-columns: repeat(3, 1fr);
}
.feature-rail:has(> article:nth-child(5)) > article:nth-child(2n) {
  border-right: 1px solid var(--border);
}
.feature-rail:has(> article:nth-child(5)) > article:nth-child(3n) {
  border-right: none;
}
@media (max-width: 900px) {
  .feature-rail:has(> article:nth-child(5)) {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-rail:has(> article:nth-child(5)) > article:nth-child(3n) {
    border-right: 1px solid var(--border);
  }
  .feature-rail:has(> article:nth-child(5)) > article:nth-child(2n) {
    border-right: none;
  }
}
@media (max-width: 768px) {
  .feature-rail:has(> article) > article,
  .feature-rail:has(> article:nth-child(5)) > article {
    border-right: none !important;
  }
}

.section > .container.cta-band {
  padding-top: clamp(40px, 5vh, 72px);
  padding-bottom: clamp(40px, 5vh, 72px);
}
.section > .container.cta-band h2,
.section > .container.cta-band p {
  max-width: 640px;
}

.card-grid,
.card-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.card-grid { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.glass-card,
.feature-card {
  padding: clamp(24px, 2.2vw, 40px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.glass-card:hover,
.feature-card:hover { background: var(--surface); }
.glass-card h3,
.feature-card h3 { margin-bottom: 10px; }
.glass-card p,
.feature-card p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.65;
}
@media (max-width: 768px) {
  .card-grid,
  .card-grid--3 { grid-template-columns: 1fr; }
  .glass-card,
  .feature-card { border-right: none; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.split .text-h2 { max-width: 14ch; }
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}
.link-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.link-list li { border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: none; }
.link-list a {
  display: block;
  padding: 14px 18px;
  font-size: var(--text-body);
  color: var(--text-muted);
  transition: color 0.12s, background 0.12s;
}
.link-list a:hover {
  color: var(--text);
  background: var(--surface);
}

.prose {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  line-height: 1.8;
}
.prose h1 { margin-bottom: 16px; color: var(--text); }
.prose h2 {
  margin: 2.4rem 0 1rem;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 32px);
}
.prose h3 {
  margin: 1.6rem 0 0.7rem;
  color: var(--text);
}
.prose p { margin-bottom: 1rem; }
.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 1.35rem;
  margin: 0 0 1.2rem;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45rem; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 0 0 1.2rem; }
.muted { color: var(--text-muted); font-size: var(--text-sm); }

.post-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.post-item {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: var(--surface); }
.post-item h2 {
  font-size: var(--text-h3);
  margin-bottom: 8px;
}
.post-item h2 a:hover { color: var(--cyan); }
.post-item p { color: var(--text-muted); margin-bottom: 8px; }
.meta {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.empty-state {
  color: var(--text-muted);
  padding: 48px 0;
  border: 1px dashed var(--border);
  text-align: center;
}
.cover {
  width: 100%;
  margin: 24px 0;
  border: 1px solid var(--border);
}
.post-body { margin-top: 28px; }
.post-body h2,
.post-body h3 { color: var(--text); }
.post-body p { margin-bottom: 1rem; color: var(--text-muted); }
.post-body a { color: var(--cyan); }

.pagination-controls a.btn-secondary,
.pagination-controls .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: inherit;
  font-size: var(--text-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--cyan);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { align-self: flex-start; }

html[data-theme="light"] .glass-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .post-item,
html[data-theme="light"] .feature-rail:has(> article) > article {
  background: #fff;
}
html[data-theme="light"] .glass-card:hover,
html[data-theme="light"] .feature-card:hover,
html[data-theme="light"] .post-item:hover,
html[data-theme="light"] .feature-rail:has(> article) > article:hover {
  background: var(--bg-2);
}
