/* =============================================
   SIMPLE GENIUS — Main Stylesheet
   Linear-inspired layout. Light mode.
   ============================================= */

/* ============ UTILITIES ============ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--outer-pad);
}
.container--narrow {
  max-width: var(--content-default);
}

/* ============ NAVBAR ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px var(--outer-pad);
  background: rgba(240,239,237,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
header.scrolled {
  background: rgba(240,239,237,0.96);
}
[data-theme='dark'] header.scrolled {
  background: rgba(20,20,19,0.85);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin-inline: auto;
}
.navbar__logo img { display: block; height: 22px; width: auto; image-rendering: -webkit-optimize-contrast; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.navbar__links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-2);
  text-decoration: none;
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--color-text); }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  color: var(--color-text-3);
  transition: color var(--transition);
}
.theme-toggle:hover { color: var(--color-text); }

.navbar__toggle { display: none; color: var(--color-text-2); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-surface);
  z-index: 200;
  padding: var(--space-6) var(--outer-pad);
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__close {
  align-self: flex-end;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}
.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-menu__links a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}
.mobile-menu__links a.btn--primary {
  color: var(--color-primary-text);
}
.mobile-menu__links a.btn--primary:hover {
  color: var(--color-primary-text);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn--outline:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-border-strong);
}
/* Nav CTA — black pill */
.btn--nav {
  background: #1A1A1A;
  color: #fff;
  border: 1px solid #1A1A1A;
  font-size: 13px;
  padding: 7px 16px;
  min-width: 96px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn--nav:hover {
  background: #333;
  border-color: #333;
}
.btn--lg {
  font-size: var(--text-base);
  padding: 12px 28px;
}
.btn--xl {
  font-size: 1.0625rem;
  padding: 14px 32px;
}
/* Float animation */
@keyframes sg-float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}
.btn--bounce {
  animation: sg-float 3.8s ease-in-out infinite;
  will-change: transform;
}
.btn--bounce:hover { animation: none; transform: translateY(-2px); }

/* ============ SECTION LABELS (Linear eyebrow style) ============ */
.section-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.section-sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-2);
  line-height: 1.6;
  max-width: 520px;
}

/* ============ HERO ============ */

/* Animated gradient mesh keyframes */
@keyframes mesh-drift-a {
  0%   { transform: translateX(-50%) translateY(0px) scale(1); }
  33%  { transform: translateX(-50%) translateY(-18px) scale(1.05); }
  66%  { transform: translateX(-50%) translateY(12px) scale(0.97); }
  100% { transform: translateX(-50%) translateY(0px) scale(1); }
}
@keyframes mesh-drift-b {
  0%   { transform: translateX(-30%) translateY(0px) scale(1); }
  50%  { transform: translateX(-30%) translateY(22px) scale(1.08); }
  100% { transform: translateX(-30%) translateY(0px) scale(1); }
}
@keyframes mesh-drift-c {
  0%   { transform: translateX(-70%) translateY(0px) scale(1); }
  40%  { transform: translateX(-70%) translateY(-14px) scale(0.95); }
  80%  { transform: translateX(-70%) translateY(10px) scale(1.04); }
  100% { transform: translateX(-70%) translateY(0px) scale(1); }
}

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--outer-pad) var(--section-y);
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}
/* Mesh layer 1 — warm gold orb, top-center */
.hero::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(200,168,75,0.06) 0%,
    rgba(200,168,75,0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: mesh-drift-a 26s ease-in-out infinite;
  will-change: transform;
}
/* Mesh layer 2 — charcoal whisper, left */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(26,26,26,0.03) 0%,
    rgba(200,168,75,0.025) 35%,
    transparent 65%
  );
  pointer-events: none;
  animation: mesh-drift-b 32s ease-in-out infinite;
  will-change: transform;
}
/* Mesh layer 3 — extra warm gold, right */
.hero-mesh-c {
  position: absolute;
  bottom: 15%;
  left: 70%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(200,168,75,0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
  animation: mesh-drift-c 28s ease-in-out infinite;
  will-change: transform;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-2);
  letter-spacing: 0.04em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: var(--space-8);
}
.hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #27a644;
  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__heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  white-space: nowrap;
  max-width: none;
  text-wrap: balance;
}
@media (max-width: 900px) {
  .hero__heading { white-space: normal; }
}
.hero__heading em {
  font-style: italic;
  color: var(--color-text);
}
.hero__heading .hero__ai {
  font-style: italic;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.03em;
  color: var(--color-accent);
}
@media (max-width: 768px) {
  /* Editorial mobile hero: two-row stacked headline, AI rendered distinctly */
  .hero__heading {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-transform: none;
    white-space: nowrap;
  }
  .hero__heading em {
    display: block;
    margin-top: 0.1em;
    font-size: clamp(2.6rem, 11vw, 3.4rem);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.035em;
    line-height: 1.02;
    white-space: normal;
  }
  /* On mobile, AI rendered as uppercase non-italic, distinctly styled so it never reads as "1". */
  .hero__heading em .hero__ai {
    font-style: normal;
    font-variant-caps: normal;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.78em;
    vertical-align: 0.06em;
    margin-right: 0.04em;
  }
  /* Render SGUI at desktop dimensions and scale to fit viewport width,
     preserving desktop card proportions on mobile. Forced centering via
     position offset because flex align-items doesn't center overflowing items. */
  .hero > .sgui {
    width: 1100px;
    height: 548px;
    max-width: none;
    position: relative;
    left: 50%;
    margin-left: -550px;
    transform-origin: top center;
    transform: scale(0.325);
    margin-bottom: -370px;
  }
}
/* Stepped breakpoints to keep SGUI proportional across mobile widths */
@media (min-width: 380px) and (max-width: 768px) {
  .hero > .sgui { transform: scale(0.343) translateZ(0); margin-bottom: -360px; }
}
@media (min-width: 400px) and (max-width: 768px) {
  .hero > .sgui { transform: scale(0.361) translateZ(0); margin-bottom: -350px; }
}
@media (min-width: 430px) and (max-width: 768px) {
  .hero > .sgui { transform: scale(0.389) translateZ(0); margin-bottom: -335px; }
}
@media (min-width: 480px) and (max-width: 768px) {
  .hero > .sgui { transform: scale(0.434) translateZ(0); margin-bottom: -310px; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .hero > .sgui { transform: scale(0.543) translateZ(0); margin-bottom: -250px; }
}

.hero__sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-2);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: var(--space-10);
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-16);
}

/* ============================================================
   SGUI — Pure HTML app mockup, Simple Genius brand-accurate
   Brand colors from Visual Brand Guidelines:
     Primary:   Deep Charcoal  #1D1D1D
     Secondary: Gold Circuitry #D4AF37
     Accent:    Deep Blue Chip #1E324F
     Light:     Cloud White    #F7F7F7
     Neutral:   Steel Gray     #5A5A5A
   ============================================================ */
.sgui {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(29,29,29,0.18), 0 4px 24px rgba(29,29,29,0.08);
  border: 1px solid rgba(29,29,29,0.12);
  background: #F7F7F7;
  font-family: var(--font-body);
}

/* Blurred top nav zone */
.sgui__top-blur {
  position: relative;
  background: #F7F7F7;
  border-bottom: 1px solid rgba(29,29,29,0.07);
  filter: blur(3px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.sgui__fake-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 28px;
  gap: 16px;
}
.sgui__fake-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sgui__fake-logo-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #1D1D1D;
  letter-spacing: -0.01em;
}
.sgui__fake-logo-text span { font-weight: 300; }
.sgui__fake-logo-text strong { font-weight: 700; }
.sgui__fake-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.sgui__fake-nav-links span {
  height: 8px;
  border-radius: 4px;
  background: #5A5A5A;
  opacity: 0.3;
}
.sgui__fake-nav-links span:nth-child(1) { width: 52px; }
.sgui__fake-nav-links span:nth-child(2) { width: 68px; }
.sgui__fake-nav-links span:nth-child(3) { width: 44px; }
.sgui__fake-nav-links span:nth-child(4) { width: 56px; }
.sgui__fake-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sgui__fake-pill {
  display: block;
  height: 28px;
  width: 72px;
  border-radius: 20px;
  background: #1D1D1D;
  opacity: 0.75;
}
.sgui__fake-avatar {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37 0%, #b68f2e 100%);
  opacity: 0.8;
}
.sgui__fake-subnav {
  display: flex;
  gap: 4px;
  padding: 0 28px 0;
  border-top: 1px solid rgba(29,29,29,0.06);
}
.sgui__fake-tab {
  display: block;
  height: 8px;
  border-radius: 3px;
  background: #5A5A5A;
  opacity: 0.2;
  margin: 10px 8px 10px 0;
}
.sgui__fake-tab:nth-child(1) { width: 90px; }
.sgui__fake-tab:nth-child(2) { width: 76px; }
.sgui__fake-tab:nth-child(3) { width: 64px; }
.sgui__fake-tab--active {
  opacity: 0.55;
  background: #D4AF37;
}
/* Fade from top — logo area sharp at top, dissolves into body */
.sgui__top-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  pointer-events: none;
}

/* Body */
.sgui__body {
  padding: 44px 48px 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Greeting */
.sgui__greeting {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1D1D1D;
  margin-bottom: 22px;
  text-align: center;
  letter-spacing: -0.02em;
  font-family: var(--font-body);
}
.sgui__greeting-name {
  color: #D4AF37;
  font-weight: 600;
}

/* Input box */
.sgui__input-wrap {
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #D4AF37;
  border-radius: 10px;
  padding: 14px 18px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(212,175,55,0.10);
}
.sgui__input-clip {
  flex-shrink: 0;
  color: #5A5A5A;
  opacity: 0.6;
}
.sgui__input-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.hero__typing-text {
  color: #1D1D1D;
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  display: inline-block;
  min-height: 1.4em;
}
@media (max-width: 600px) {
  .hero__typing-text { font-size: 0.8rem; }
}
@media (max-width: 400px) {
  .hero__typing-text { font-size: 0.72rem; }
}
.hero__typing-cursor {
  display: inline-block;
  background: #1D1D1D;
  width: 1.5px;
  height: 1.1em;
  border-radius: 1px;
  vertical-align: middle;
  margin-left: 1px;
  flex-shrink: 0;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.sgui__input-mic {
  flex-shrink: 0;
  color: #5A5A5A;
  opacity: 0.5;
}

/* Execute button footer */
.sgui__input-footer {
  width: 100%;
  max-width: 700px;
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  margin-bottom: 28px;
}
.sgui__execute-btn {
  background: #1E324F;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 26px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: default;
  letter-spacing: 0.02em;
}

/* Blurred zone — rich content, secretive, fades out at bottom */
.sgui__blur-zone {
  width: 100%;
  position: relative;
  filter: blur(3.5px);
  opacity: 0.5;
  pointer-events: none;
  padding: 0 0 8px;
}

/* Stat cards row */
.sgui__stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  padding: 0 48px;
}
.sgui__stat-card {
  background: #F7F7F7;
  border: 1px solid rgba(29,29,29,0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sgui__stat-label {
  height: 9px;
  width: 55%;
  background: #5A5A5A;
  border-radius: 4px;
  opacity: 0.35;
}
.sgui__stat-value {
  height: 22px;
  width: 45%;
  background: #1D1D1D;
  border-radius: 5px;
  opacity: 0.7;
}
.sgui__stat-value--wide { width: 65%; }
.sgui__stat-sub {
  height: 8px;
  width: 70%;
  background: #5A5A5A;
  border-radius: 4px;
  opacity: 0.25;
}
.sgui__stat-sub--short { width: 45%; }

/* Content lines */
.sgui__content-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 48px;
  margin-bottom: 20px;
}
.sgui__content-line {
  height: 9px;
  width: 100%;
  background: #5A5A5A;
  border-radius: 4px;
  opacity: 0.2;
}
.sgui__content-line--short { width: 42%; }
.sgui__content-line--med { width: 68%; }

/* Badge row */
.sgui__badge-row {
  display: flex;
  gap: 10px;
  padding: 0 48px;
  margin-bottom: 4px;
}
.sgui__badge {
  height: 24px;
  width: 100px;
  border-radius: 20px;
}
.sgui__badge--gold { background: #D4AF37; opacity: 0.6; }
.sgui__badge--blue { background: #1E324F; opacity: 0.5; }
.sgui__badge--gray { background: #5A5A5A; opacity: 0.3; }

/* Fade-out gradient — creates the "secretive" bottom reveal */
.sgui__fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 85%);
  pointer-events: none;
}
.hero__panel-label {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
}
.hero__panel-sub {
  font-size: var(--text-sm);
  color: var(--color-text-3);
}

/* ============ STATS TICKER BAR ============ */
.stats-ticker {
  background: #1A1A1A;
  padding: 13px var(--outer-pad);
  position: relative;
  z-index: 1;
}
.stats-ticker__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stats-ticker__chip {
  display: flex;
  align-items: center;
  gap: 0;
}
.stats-ticker__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-body);
  white-space: nowrap;
  padding: 0 28px;
}
.stats-ticker__divider {
  width: 1px;
  height: 18px;
  background: rgba(200,168,75,0.5);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .stats-ticker__inner { gap: 0; justify-content: center; }
  .stats-ticker__label { padding: 4px 14px; font-size: 10px; }
  .stats-ticker__divider { height: 14px; }
}

/* ============ SECTION WAVE DIVIDERS ============ */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
}
/* Dark mode: hide wave dividers (sections share same dark bg) */
[data-theme='dark'] .wave-divider {
  display: none;
}
/* Sections preceded by a wave divider: suppress redundant border-top */
.wave-divider + .feature-section,
.wave-divider + .ai-hub,
.wave-divider + .clarity {
  border-top: none;
}

/* ============ SCROLL ANIMATIONS (disabled — elements stay in place) ============ */
.fade-up,
.fade-up.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}
/* Mobile: keep ultra-slow ambient mesh drift (26s+, imperceptible motion = "alive")
   but kill the faster decorative loops that caused harshness. */
@media (max-width: 768px) {
  /* These are the fast/visible loops — kill them */
  .btn--bounce {
    animation: none !important;
  }
  /* iOS momentum scrolling for buttery feel */
  html, body {
    -webkit-overflow-scrolling: touch;
  }
}
/* Stagger children of feature items */
.feature-section__items .fade-up:nth-child(1) { transition-delay: 0.05s; }
.feature-section__items .fade-up:nth-child(2) { transition-delay: 0.12s; }
.feature-section__items .fade-up:nth-child(3) { transition-delay: 0.19s; }
.feature-section__items .fade-up:nth-child(4) { transition-delay: 0.26s; }
.intro__col.fade-up:nth-child(2) { transition-delay: 0.08s; }
.intro__col.fade-up:nth-child(3) { transition-delay: 0.16s; }
.intro__col.fade-up:nth-child(4) { transition-delay: 0.24s; }

/* ============ FEATURE ITEM HOVER CARDS ============ */
.feature-item {
  transition: background 200ms ease, border-color 200ms ease,
              transform 200ms ease, box-shadow 200ms ease;
}
.feature-item:hover {
  border-left: 2px solid #C8A84B;
  background: rgba(200,168,75,0.06);
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(200,168,75,0.08);
}

/* ============ HERO PANEL TYPING ANIMATION ============ */
@keyframes typing-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Typing phrase display */
.hero__typing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: 0;
}
.hero__typing-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-family: var(--font-body);
  margin-bottom: var(--space-2);
}
.hero__typing-box {
  display: flex;
  align-items: center;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: 12px 18px;
  max-width: 560px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  gap: var(--space-3);
  box-sizing: border-box;
  overflow: hidden;
  contain: layout size;
}
.hero__typing-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  opacity: 0.8;
}

.hero__typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--color-accent);
  vertical-align: text-bottom;
  animation: typing-cursor 0.8s ease-in-out infinite;
  margin-left: 1px;
  border-radius: 1px;
}

/* ============ AI HUB PULSE LINES ============ */
.ai-hub__svg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
@keyframes pulse-line {
  0%   { stroke-dashoffset: 60; opacity: 0; }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.7; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.hub-line {
  stroke: #C8A84B;
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 6 3;
  stroke-dashoffset: 60;
  opacity: 0;
  animation: pulse-line 2.8s ease-in-out infinite;
}
.hub-line:nth-child(1) { animation-delay: 0s; }
.hub-line:nth-child(2) { animation-delay: 0.56s; }
.hub-line:nth-child(3) { animation-delay: 1.12s; }
.hub-line:nth-child(4) { animation-delay: 1.68s; }
.hub-line:nth-child(5) { animation-delay: 2.24s; }

/* Ensure AI hub diagram has correct z-ordering */
.ai-hub__center { z-index: 3; }
.ai-hub__pills  { z-index: 4; }

/* ============ INTRO / 3-COL TEXT ============ */
.intro {
  padding: var(--section-y) var(--outer-pad);
  border-top: 1px solid var(--color-divider);
}
.intro__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.intro__lead {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.intro__col {
  padding-top: var(--space-2);
}
.intro__col-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}
.intro__col p {
  font-size: var(--text-base);
  color: var(--color-text-2);
  line-height: 1.6;
  font-weight: 300;
}

/* ============ FEATURE SECTIONS (Linear-style 2-col) ============ */
.feature-section {
  padding: var(--section-y) var(--outer-pad);
  border-top: 1px solid var(--color-divider);
}
.feature-section__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  align-items: center;
}
.feature-section__inner--reverse {
  direction: rtl;
}
.feature-section__inner--reverse > * {
  direction: ltr;
}
.feature-section__step {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.feature-section__step::after {
  content: '';
}
.feature-section__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.feature-section__body {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-2);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 440px;
}

/* Sub-items (Linear "2x2 node" style) */
.feature-section__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.feature-item__num {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-3);
  font-family: var(--font-body);
}
.feature-item__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-body);
}
.feature-item__desc {
  font-size: var(--text-xs);
  color: #2A2A2A;
  line-height: 1.65;
  font-weight: 400;
}

/* Video placeholder panel */
.video-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.video-panel__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 14px;
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-border);
}
.video-panel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-border-strong);
}
.video-panel__dot:nth-child(1) { background: #ff5f57; }
.video-panel__dot:nth-child(2) { background: #febc2e; }
.video-panel__dot:nth-child(3) { background: #28c840; }
.video-panel__title {
  font-size: 11px;
  color: var(--color-text-3);
  margin-left: var(--space-2);
  font-family: var(--font-body);
}
.video-panel__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 280px;
  padding: var(--space-10);
}
/* Image panel variants */
.video-panel__body--images {
  padding: var(--space-6);
  gap: var(--space-4);
  background: #F8F8F8;
  min-height: unset;
}
.video-panel__body--screenshot {
  padding: 0;
  min-height: unset;
  overflow: hidden;
}
.panel-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.panel-img--primary {
  border-radius: var(--radius-md);
}
.panel-img--secondary {
  border-radius: var(--radius-md);
  opacity: 0.9;
}
.panel-img--full {
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  filter: saturate(0.92) contrast(1.02);
}

.video-panel__play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-panel__play:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.video-panel__label {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-body);
}
.video-panel__sublabel {
  font-size: var(--text-sm);
  color: var(--color-text-3);
  font-family: var(--font-body);
}

/* ============ AI HUB — Intelligence Layer ============ */
.ai-hub {
  padding: var(--section-y) var(--outer-pad);
  border-top: 1px solid var(--color-divider);
}
.ai-hub__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  align-items: center;
}
.ai-hub__diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.ai-hub__center {
  width: 88px; height: 88px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 16px rgba(31,31,31,0.04), 0 0 0 32px rgba(31,31,31,0.02), var(--shadow-lg);
}
.ai-hub__center svg { color: #fff; }
[data-theme='dark'] .ai-hub__center { box-shadow: 0 0 0 16px rgba(232,230,226,0.04), var(--shadow-lg); }
.ai-hub__pills {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,0.05);
}
/* Clock positions */
.ai-pill--marketing  { background: var(--color-pill-green);   color: var(--color-pill-green-text);   top: 4%; left: 50%; transform: translateX(-50%); }
.ai-pill--sales      { background: var(--color-pill-pink);    color: var(--color-pill-pink-text);    top: 50%; right: 0%; transform: translateY(-50%); }
.ai-pill--finance    { background: var(--color-pill-yellow);  color: var(--color-pill-yellow-text);  bottom: 12%; right: 4%; }
.ai-pill--hr         { background: var(--color-pill-neutral); color: var(--color-pill-neutral-text); bottom: 12%; left: 4%; }
.ai-pill--operations { background: var(--color-pill-blue);    color: var(--color-pill-blue-text);    top: 50%; left: 0%; transform: translateY(-50%); }

/* ─── Mobile: orbit-style AI hub ─────────────────────────────────────
   Pills float around a smaller center bubble, fully clear of overlap.
   Each pill rides a positioned wrapper; gentle drift adds life. */
@media (max-width: 768px) {
  .ai-hub__diagram {
    min-height: 440px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 20px 0;
  }
  .ai-hub__svg-lines { display: none; }
  .ai-hub__center {
    width: 76px; height: 76px;
    box-shadow:
      0 0 0 14px rgba(31,31,31,0.04),
      0 0 0 28px rgba(31,31,31,0.025),
      0 0 0 44px rgba(31,31,31,0.015),
      var(--shadow-md);
  }
  .ai-hub__center::before {
    /* faint orbital ring */
    content: '';
    position: absolute;
    inset: -90px;
    border-radius: 50%;
    border: 1px dashed rgba(212,175,55,0.28);
    pointer-events: none;
  }
  .ai-hub__center::after {
    content: '';
    position: absolute;
    inset: -150px;
    border-radius: 50%;
    border: 1px dashed rgba(31,31,31,0.06);
    pointer-events: none;
  }
  .ai-pill {
    font-size: 11px;
    padding: 6px 12px;
    box-shadow: 0 4px 14px rgba(29,29,29,0.10), var(--shadow-sm);
    animation: ai-orbit-float 6s ease-in-out infinite;
  }
  /* Reset desktop transforms and reposition pills around the center bubble
     so none overlap the inner ring. */
  .ai-pill--marketing  { top: 0;    left: 50%; right: auto; bottom: auto; transform: translateX(-50%); animation-delay: 0s; }
  .ai-pill--sales      { top: 38%;  right: 0;  left: auto;  bottom: auto; transform: none;                animation-delay: 1.2s; }
  .ai-pill--finance    { bottom: 4%; right: 12%; top: auto; left: auto;   transform: none;                animation-delay: 2.4s; }
  .ai-pill--hr         { bottom: 4%; left: 12%;  top: auto; right: auto;  transform: none;                animation-delay: 3.6s; }
  .ai-pill--operations { top: 38%;  left: 0;   right: auto; bottom: auto; transform: none;                animation-delay: 4.8s; }
}
@keyframes ai-orbit-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-pill { animation: none; }
}

/* ============ CLARITY / REAL CHALLENGE ============ */
.clarity {
  padding: var(--section-y) var(--outer-pad);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.clarity__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  align-items: start;
}
.clarity__values {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.clarity__value {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-accent);
}
.clarity__value-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-3);
  flex-shrink: 0;
  font-family: var(--font-body);
  margin-top: 2px;
}
.clarity__value-body h5 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
}
.clarity__value-body p {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.6;
}
.clarity__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.clarity__card {
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.clarity__card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}
.clarity__card p {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.6;
}

/* Built-for tag */
.built-for-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding: 6px 14px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 12px rgba(31,31,31,0.15);
}
.built-for-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
}
.built-for-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #ffffff;
  font-family: var(--font-body);
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  padding: var(--section-y) var(--outer-pad);
  border-top: 1px solid var(--color-divider);
}
.how-it-works__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.how-it-works__intro {
  max-width: 520px;
  margin-bottom: var(--space-16);
}
.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.step-card {
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
  position: relative;
}
.step-card::before {
  content: attr(data-step);
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-3);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}
.step-card h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}
.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.6;
}
.how-it-works__loop {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-3);
  text-align: center;
  font-family: var(--font-body);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  display: inline-block;
  padding: 6px 20px;
}
.how-it-works__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

/* ============ FEATURES / WHAT YOU GET ============ */
.features {
  padding: var(--section-y) var(--outer-pad);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.features__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.features__intro {
  max-width: 520px;
  margin-bottom: var(--space-12);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.feature-card {
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
}
.feature-card__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-2);
  margin-bottom: var(--space-5);
}
.feature-card h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.6;
}

/* ============ WHO IT'S FOR ============ */
.who {
  padding: var(--section-y) var(--outer-pad);
  border-top: 1px solid var(--color-divider);
}
.who__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.who__intro {
  max-width: 600px;
  margin-bottom: var(--space-12);
}
.who__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.who-card {
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
}
.who-card h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}
.who-card p {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.6;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  padding: var(--section-y) var(--outer-pad);
  border-top: 1px solid var(--color-divider);
  text-align: center;
  background: var(--color-bg);
}
.cta-banner__inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.cta-banner__heading {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.cta-banner__sub {
  font-size: var(--text-lg);
  color: var(--color-text-2);
  margin-bottom: var(--space-10);
  font-weight: 300;
}
.cta-banner__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ FORM SECTION ============ */
.form-section {
  padding: var(--section-y) var(--outer-pad);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.form-wrap {
  max-width: 680px;
  margin-inline: auto;
}
.form-header {
  margin-bottom: var(--space-10);
}
.form-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.form-header p {
  font-size: var(--text-base);
  color: var(--color-text-2);
  line-height: 1.6;
}
.required-note {
  font-size: var(--text-xs);
  color: var(--color-text-3);
  margin-top: var(--space-2);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-group--full { grid-column: 1 / -1; }
label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-body);
}
.req { color: var(--color-accent); }
.form-control {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}
.form-control::placeholder { color: var(--color-text-3); }
textarea.form-control { resize: vertical; line-height: 1.6; }
.form-submit { margin-top: var(--space-8); }

/* ============ FOOTER ============ */
.footer {
  padding: var(--section-y) var(--outer-pad) var(--space-8);
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}
.footer__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
}
.footer__brand {}
.footer__logo { display: inline-block; margin-bottom: var(--space-4); }
.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-3);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}
.footer__socials {
  display: flex;
  gap: var(--space-4);
}
.footer__social {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  color: var(--color-text-3);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__social:hover { color: var(--color-text); }
.footer__col h5 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  font-family: var(--font-body);
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a {
  font-size: var(--text-sm);
  color: var(--color-text-3);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--color-text); }
.footer__bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.footer__links {
  display: flex;
  gap: var(--space-6);
}
.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-3);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-text); }

/* ============ STICKY NOTES PANEL ============ */
#sg-editor-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
#sg-editor-toggle:hover { transform: scale(1.08); box-shadow: var(--shadow-lg); }
#sg-editor-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 998;
  width: 320px;
  background: #1A1918;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: var(--space-4);
}
#sg-editor-panel.is-open { display: flex; }
#sg-editor-panel textarea {
  background: #111110;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  color: #E8E6E2;
  font-size: 13px;
  font-family: var(--font-body);
  padding: var(--space-4);
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
#sg-editor-panel textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.2);
}
#sg-editor-panel textarea::placeholder { color: #565350; }
#sg-copy-notes {
  font-size: 13px;
  font-weight: 500;
  color: #E8E6E2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  cursor: pointer;
  align-self: flex-end;
  transition: background var(--transition);
  font-family: var(--font-body);
}
#sg-copy-notes:hover { background: rgba(255,255,255,0.14); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .intro__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
  .feature-section__inner,
  .ai-hub__inner,
  .clarity__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .feature-section__inner--reverse { direction: ltr; }
  .features__grid,
  .who__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-it-works__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-y: 4.5rem; }
  .navbar__links { display: none; }
  .navbar__actions .btn--nav { display: none; }
  .navbar__toggle { display: flex; }
  .intro__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .features__grid,
  .who__grid { grid-template-columns: 1fr; }
  .how-it-works__steps { grid-template-columns: 1fr; }
  .feature-section__items { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner__heading { font-size: var(--text-3xl); }
}
@media (max-width: 480px) {
  /* hero handled in 768px block above — keep eyebrow small here too */
  .section-heading { font-size: var(--text-2xl); }
  .hero-mesh-c { max-width: 100%; overflow: hidden; }
}
html, body { overflow-x: hidden; }

/* --------------------------------------------------------------
   Unified page header sizing
   Used by interior pages (about, pricing, product, resources,
   articles, contact, data-protection, book) so every page H1
   and H2 reads at the same scale.
   index.html hero uses the larger .hero__heading by design.
--------------------------------------------------------------- */
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--color-text);
  margin: 0 0 var(--space-5);
  text-wrap: balance;
}
.page-hero__sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted, #4A5568);
  margin: 0 0 var(--space-6);
}
.page-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-text);
  margin: var(--space-12) 0 var(--space-5);
}
@media (max-width: 600px) {
  .page-hero__title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .page-section__title { font-size: clamp(1.35rem, 5.5vw, 1.75rem); margin-top: var(--space-10); }
}

