/* Video hero — ported from the "curious" hero design, gateway branding.
   External file so it satisfies the site's script/style CSP. */

.vhero {
  position: relative;
  min-height: 100vh;
  margin: 0 calc(50% - 50vw) 0;   /* full-bleed within the constrained main */
  width: 100vw;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;        /* left-aligned editorial layout */
  justify-content: flex-start;    /* cluster content at the top, leave the
                                     lower frame (the subject) unobstructed */
  padding-left: clamp(24px, 6vw, 96px);
  padding-right: clamp(24px, 6vw, 96px);
  isolation: isolate;
}

.vhero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(17%);   /* crop the top; interesting content sits low */
  opacity: 0;                    /* JS-driven rAF fade controls this */
  z-index: 0;
}

/* Legibility over the video without hiding it. */
/* Feather-light vignette only — the video must stay unobstructed.
   Legibility comes from text-shadow, not from covering the footage. */
.vhero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.vhero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 1.5rem 0 0;
  max-width: 44rem;
}

.vhero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin: 0 0 1rem;
}

.vhero-title {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5);
}

.vhero-lede {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  margin: 0 0 1.6rem;
  max-width: 34rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.vhero-kicker, .vhero-micro { text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

.vhero-cta {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.vhero-btn-primary,
.vhero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.vhero-btn-primary {
  background: #fff;
  color: #000;
}
.vhero-btn-primary:hover { transform: translateY(-1px); }

.vhero-btn-ghost {
  color: #fff;
}
.vhero-btn-ghost:hover { background: rgba(255,255,255,0.06); }

.vhero-micro {
  margin: 1.4rem 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.vhero-social {
  position: absolute;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  gap: 0.9rem;
  bottom: 3rem;
  left: clamp(24px, 6vw, 96px);
}

.vhero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: rgba(255,255,255,0.8);
  transition: color 0.18s ease, background 0.18s ease;
}
.vhero-icon:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* Liquid glass — border-only gradient via masked ::before. */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .vhero-video { transition: none; }
}

/* ============================================================
   SITE-WIDE DESIGN ADOPTION
   Harmonize the whole gateway with the cinematic / liquid-glass /
   Instrument-Serif hero. Pure overrides — no markup changes.
   Psychology: one focal color (amber, isolation effect), a single
   glass surface family (Gestalt similarity), serif display hierarchy,
   consistent hover affordance, generous cinematic negative space.
   ============================================================ */

:root {
  --glass-fill: rgba(255, 255, 255, 0.028);
  --glass-fill-hover: rgba(255, 255, 255, 0.05);
  --glass-line: linear-gradient(
    180deg,
    rgba(255,255,255,0.40) 0%,
    rgba(255,255,255,0.12) 22%,
    rgba(255,255,255,0) 42%,
    rgba(255,255,255,0) 58%,
    rgba(255,255,255,0.12) 78%,
    rgba(255,255,255,0.40) 100%
  );
}

/* Cinematic true-black field so sections emerge from the hero. */
body.console {
  background:
    radial-gradient(140% 90% at 50% -10%, #0c0e12 0%, #050608 55%, #000 100%) fixed;
}
.bg-grid { opacity: 0.35; }
.bg-glow { opacity: 0.5; }

/* Reusable glass surface (Gestalt: everything is the same material). */
.glass-surface {
  position: relative;
  background: var(--glass-fill);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: none !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
  overflow: hidden;
  transition: transform .22s ease, background .22s ease;
}
.glass-surface::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: var(--glass-line);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Liquid-glass nav pill over the hero (scrolls away — never
   overlaps the content sections below) --- */
.site-header {
  position: absolute !important;
  top: 14px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 1000px !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 12px clamp(16px, 3vw, 26px) !important;
  border: none !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.028) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.10), 0 18px 40px -24px rgba(0,0,0,0.9) !important;
  z-index: 40 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: var(--glass-line);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.nav-cta {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  padding: 6px 14px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--glass-fill-hover); }

/* Hero owns the full top; the nav floats over its empty upper band. */
.vhero { margin-top: 0; padding-top: 96px; }
/* Anchor jumps clear the top comfortably. */
html { scroll-padding-top: 24px; }

/* --- Display typography: unified with the admin console's ember system:
   sans for headings, mono/tabular-nums for numeric displays --- */
.section-head h2,
.final-cta h2, .final-cta-inner h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stat-number, .t-value, .price, .price-amount {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-head h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; }
.stat-number {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.005em;
}

/* --- Glass surface family for every card-like block --- */
.m-card, .stat-card, .testimonial,
.w-card, .steps li,
.trust-card, .faq-list details,
.comparison-table-wrap,
.pricing, .account-invite,
.final-cta, .final-cta-inner {
  position: relative;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
  overflow: hidden;
}
.m-card::before, .stat-card::before, .testimonial::before,
.w-card::before, .steps li::before,
.trust-card::before, .faq-list details::before,
.comparison-table-wrap::before,
.pricing::before, .account-invite::before,
.final-cta::before, .final-cta-inner::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: var(--glass-line);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
/* keep the inner content above the mask layer */
.m-card > *, .stat-card > *, .testimonial > *,
.w-card > *, .steps li > *,
.trust-card > *, .pricing > *,
.final-cta-inner > * { position: relative; z-index: 1; }

/* Consistent hover affordance (Fitts + feedback). */
.m-card:hover, .stat-card:hover, .w-card:hover,
.steps li:hover, .trust-card:hover,
.testimonial:hover,
.faq-list details:hover {
  transform: translateY(-4px);
  background: var(--glass-fill-hover);
  border: none;
}

/* --- Isolation effect: amber only where we want the eye --- */
/* The "hot" Claude card keeps its amber tint as the single warm focal point. */
.m-card-hot {
  background: linear-gradient(180deg, rgba(224,168,58,0.10), rgba(224,168,58,0.02)) , var(--glass-fill);
}
.m-card-hot::before { background: linear-gradient(180deg, rgba(245,197,99,0.6), rgba(224,168,58,0.05) 45%, rgba(224,168,58,0.05) 55%, rgba(245,197,99,0.6)); }

/* Primary buttons stay solid & warm — the highest-priority action. */
.btn-primary { box-shadow: 0 14px 34px -14px rgba(224,168,58,0.7); }

/* FAQ details as glass, roomier click targets. */
.faq-list details { border-radius: var(--radius); margin-bottom: 12px; }
.faq-list summary { position: relative; z-index: 1; }

/* Trust icons share the same pure-white tone as the glass family wording. */
.trust-icon { color: #fff; }

/* Comparison table winner cell highlight. */
.cost-low { background: rgba(127, 174, 143, 0.12); padding: 14px 18px; border-radius: 8px; border-left: 3px solid var(--sage); }

.final-cta-inner,
.account-invite {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius);
}

/* --- Balanced model grid: hot card spans full width, the remaining
   four form a clean 2×2 (no orphan card, no dead space) --- */
.model-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
  align-items: stretch;
}
.m-card-hot { grid-column: 1 / -1; }
.m-card { height: 100%; }

/* Featured diwakar showcase inside m-card-hot */
.m-hot-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
}
.m-hot-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m-hot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.m-dot-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright, #e0a83a);
  box-shadow: 0 0 8px var(--accent-bright, #e0a83a);
  margin-right: 5px;
  vertical-align: middle;
}
.m-privacy-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(127, 174, 143, 0.12);
  color: var(--sage, #7fae8f);
  border: 1px solid rgba(127, 174, 143, 0.28);
}
.m-hot-title {
  font-size: 26px !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-version-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-dim);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.m-hot-desc {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.m-slug-hint {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-left: 6px;
  align-self: center;
}
.m-hot-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(224, 168, 58, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.spec-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.spec-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* --- Consistent vertical rhythm & readable measure across sections --- */
.section { padding: clamp(70px, 11vw, 130px) 0; }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.section-lede { max-width: 52ch; }
.eyebrow { color: var(--accent); }

/* Equal-height rows for the other grids so cards line up cleanly. */
.stats-grid, .why-grid, .trust-grid, .steps { align-items: stretch; }
.stat-card, .why-card, .trust-card, .step { height: 100%; }

@media (max-width: 720px) {
  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    padding: 10px 16px;
    gap: 12px;
  }
  .vhero { padding-top: 84px; }
  .model-grid { grid-template-columns: 1fr !important; }
  .m-hot-inner { grid-template-columns: 1fr; gap: 20px; }
  .why-grid,
  .steps,
  .testimonials { grid-template-columns: 1fr; }
  .stats-grid,
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .vhero-social {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 1.4rem 0 0 clamp(24px, 6vw, 96px);
  }
  .section { padding: clamp(48px, 8vw, 80px) 0; }
}
@media (max-width: 480px) {
  .stats-grid,
  .trust-grid { grid-template-columns: 1fr; }
  .vhero-content { padding: 0.5rem 0 0; }
  .vhero-title { font-size: 1.9rem; }
  .vhero-lede { font-size: 0.92rem; }
  .vhero { padding-left: clamp(14px, 4vw, 24px); padding-right: clamp(14px, 4vw, 24px); }
}
