/* Homepage (editorial redesign). Loaded after styles.css on index.html only. */
.home {
  --h-bg: #f7f6f2; --h-tint: #efede6; --h-ink: #12161c; --h-ink-2: #4a5160; --h-line: #dedbd2;
  --h-navy: #0a1f33; --h-navy-2: #10304d; --h-amber: #f5a524; --h-amber-2: #e08f0b;
  background: var(--h-bg); color: var(--h-ink);
}
.home h1, .home h2, .home h3 { color: inherit; }
.h-section { padding: 112px 0; }
.h-tint { background: var(--h-tint); }
.h-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 1.1rem; }
.h-display { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.h-display span { color: #8a8475; }
.h-sub { color: var(--h-ink-2); font-size: 1.1rem; line-height: 1.65; max-width: 38rem; margin-top: 1.1rem; }
.h-head { max-width: 46rem; margin-bottom: 3.25rem; }
.h-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.h-split-top { align-items: end; margin-bottom: 3rem; }
.h-split-top .h-sub { margin-top: 0; }
.h-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.h-arrow-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.5rem; font-weight: 600; font-size: .95rem; color: var(--h-ink); }
.h-arrow-link::after { content: "→"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--h-amber); color: var(--h-navy); font-size: .8rem; transition: transform .25s var(--ease); }
.h-arrow-link:hover::after { transform: translateX(3px); }

/* Buttons */
.h-btn-cta { background: var(--h-amber); border-color: var(--h-amber); color: var(--h-navy) !important; font-weight: 700; }
.h-btn-cta:hover { background: var(--h-amber-2); border-color: var(--h-amber-2); }
.h-btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff !important; }
.h-btn-ghost:hover { background: rgba(255,255,255,.08); }
.h-btn-dark { background: var(--h-navy); border-color: var(--h-navy); color: #fff !important; }
.h-btn-dark:hover { background: var(--h-navy-2); }

/* Hero */
.h-hero { position: relative; overflow: hidden; color: #fff; padding: 104px 0 0;
  background: radial-gradient(900px 500px at 85% 10%, rgba(245,165,36,.22), transparent 60%),
              radial-gradient(700px 500px at 5% 90%, rgba(21,94,117,.55), transparent 60%),
              linear-gradient(160deg, #0a1f33 0%, #0c2a44 55%, #0a1f33 100%); }
.h-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 30%, transparent 90%); }
.h-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; padding-bottom: 88px; }
.h-hero .h-eyebrow { color: var(--h-amber); }
.h-hero h1 { color: #fff; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
.h-lead { color: #c9d4df; font-size: 1.15rem; line-height: 1.65; margin-top: 1.4rem; max-width: 34rem; }
.h-hero .cta { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.h-hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; color: #9fb1c3; font-size: .88rem; }
.h-hero-facts li::before { content: "✓"; color: var(--h-amber); margin-right: .45rem; font-weight: 700; }
.h-hero-shot { margin: 0; }
.h-hero-shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 8px rgba(255,255,255,.04); }
.h-hero-shot figcaption { margin-top: .7rem; font-size: .78rem; color: #8ea2b6; text-align: right; }
.h-strip { position: relative; border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.18); }
.h-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.25rem; padding: 1.4rem 0; color: #d6dee6; }
.h-strip-inner span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8ea2b6; }
.h-strip-inner b { font-weight: 600; font-size: 1rem; letter-spacing: -.01em; opacity: .9; }

/* Stats */
.h-stats { margin: 0; }
.h-stats div { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--h-line); }
.h-stats div:first-child { border-top: 1px solid var(--h-line); }
.h-stats dt { font-size: 3.6rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.h-stats dd { margin: 0; color: var(--h-ink-2); font-size: .98rem; }

/* Cards */
.h-card { background: #fff; border: 1px solid var(--h-line); border-radius: 6px; padding: 2rem 1.75rem; }
.h-card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .75rem; }
.h-card p { color: var(--h-ink-2); font-size: .97rem; line-height: 1.6; }
.h-num { display: block; font-size: .85rem; font-weight: 600; color: var(--h-amber-2); margin-bottom: 1.6rem; }
.h-tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 1.2rem; }
.h-card-line { border-top: 3px solid var(--h-navy); display: flex; flex-direction: column; }
.h-card-line .h-arrow-link { margin-top: auto; padding-top: 1.5rem; }
.h-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.h-links a { padding: .45rem .8rem; border: 1px solid var(--h-line); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--h-ink); background: var(--h-bg); transition: border-color .2s, background .2s; }
.h-links a:hover { border-color: var(--h-navy); background: #fff; }

/* Platform stack */
.h-stack { position: relative; height: 440px; perspective: 1400px; }
.h-layer { position: absolute; left: 8%; width: 84%; height: 170px; border: 1.5px solid #3b4250; background: #fbfaf7;
  transform: rotateX(58deg) rotateZ(-34deg); transform-origin: center; display: flex; align-items: flex-end; justify-content: flex-end; padding: 1rem 1.5rem;
  transition: transform .4s var(--ease), background .3s; }
.h-layer span { font-size: .95rem; font-weight: 600; color: #3b4250; transform: rotate(0deg); }
.h-layer:nth-child(1) { top: 0; z-index: 4; } .h-layer:nth-child(2) { top: 82px; z-index: 3; background: #f2efe7; }
.h-layer:nth-child(3) { top: 164px; z-index: 2; } .h-layer:nth-child(4) { top: 246px; z-index: 1; }
.h-layer-on { background: var(--h-navy) !important; border-color: var(--h-navy); }
.h-layer-on span { color: var(--h-amber); }
.h-acc { margin-top: 2rem; border-top: 1px solid var(--h-line); }
.h-acc details { border-bottom: 1px solid var(--h-line); padding: 1.15rem 0; }
.h-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; color: #7a7466; }
.h-acc summary::-webkit-details-marker { display: none; }
.h-acc summary::after { content: "+"; font-size: 1.3rem; color: #9b9585; }
.h-acc details[open] summary { color: var(--h-ink); }
.h-acc details[open] summary::after { content: "×"; color: var(--h-amber-2); }
.h-acc p { color: var(--h-ink-2); margin-top: .8rem; max-width: 34rem; }
.h-acc .h-arrow-link { margin-top: 1rem; }
.h-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.h-chips span { font-size: .78rem; padding: .25rem .65rem; border: 1px solid var(--h-line); border-radius: 999px; }

/* Dark controls */
.h-dark { background: var(--h-navy); color: #dbe3ea; }
.h-dark .h-eyebrow { color: var(--h-amber); }
.h-dark .h-display { color: #fff; }
.h-dark .h-sub { color: #a9b8c7; }
.h-controls { gap: 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.h-controls article { padding: 2.25rem 2rem; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.h-controls h3 { color: #fff; font-size: 1.15rem; font-weight: 600; margin-bottom: .7rem; }
.h-controls h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--h-amber); margin-bottom: 1.25rem; }
.h-controls p { color: #a9b8c7; font-size: .95rem; }

/* Use-case rail */
.h-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 300px); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem max(1.25rem, calc((100vw - var(--wrap)) / 2)) 1.5rem; scroll-padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2)); scrollbar-width: thin; }
.h-uc { scroll-snap-align: start; background: #fff; border: 1px solid var(--h-line); border-radius: 6px; padding: 1.75rem 1.5rem; min-height: 230px;
  display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.h-uc:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,22,28,.08); }
.h-uc h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .7rem; }
.h-uc p { color: var(--h-ink-2); font-size: .92rem; }
.h-uc-more { background: var(--h-navy); border-color: var(--h-navy); justify-content: flex-end; }
.h-uc-more h3 { color: #fff; } .h-uc-more p { color: var(--h-amber); }

/* Comparison table */
.h-table { background: #fff; border: 1px solid var(--h-line); border-radius: 6px; overflow: hidden; }
.h-tr { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--h-line); font-size: .95rem; }
.h-tr:last-child { border-bottom: 0; }
.h-th { background: var(--h-tint); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--h-ink-2); }
.h-tr span:nth-child(2) { color: #8a8475; }
.h-tr .yes { font-weight: 600; color: var(--h-navy); }
.h-tr .yes::before { content: "✓ "; color: var(--h-amber-2); }

/* Steps */
.h-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--h-line); }
.h-steps li { counter-increment: s; padding: 2rem 1.5rem 0 0; display: grid; gap: .6rem; }
.h-steps li::before { content: "0" counter(s); font-size: .85rem; font-weight: 600; color: var(--h-amber-2); }
.h-steps b { font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; }
.h-steps span { color: var(--h-ink-2); font-size: .95rem; }

/* Partner + final */
.h-partner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem; border: 1px solid var(--h-line); border-radius: 8px; background: #fff; }
.h-partner-cta { display: grid; gap: 1rem; justify-items: start; }
.h-partner-cta .muted { font-size: .85rem; }
.h-final { color: #fff; text-align: center; padding: 120px 0;
  background: radial-gradient(700px 360px at 50% 0%, rgba(245,165,36,.2), transparent 70%), var(--h-navy); }
.h-final h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; }
.h-final p { color: #a9b8c7; max-width: 36rem; margin: 1.25rem auto 0; font-size: 1.1rem; }
.h-final .cta { justify-content: center; margin-top: 2.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1024px) {
  .h-hero-grid, .h-split, .h-partner { grid-template-columns: 1fr; gap: 2.5rem; }
  .h-grid3 { grid-template-columns: 1fr 1fr; }
  .h-steps { grid-template-columns: 1fr 1fr; }
  .h-stack { height: 360px; max-width: 520px; }
}
@media (max-width: 680px) {
  .h-section { padding: 72px 0; }
  .h-hero { padding-top: 64px; }
  .h-grid3, .h-steps { grid-template-columns: 1fr; }
  .h-stats div { grid-template-columns: 6rem 1fr; }
  .h-stats dt { font-size: 2.6rem; }
  .h-partner { padding: 2rem 1.5rem; }
  .h-tr { grid-template-columns: 1.3fr 1fr 1fr; padding: .85rem 1rem; font-size: .85rem; }
  .h-stack { display: none; }
}

/* === light hero (2026-11-04) === */
.h-hero { color: var(--h-ink);
  background: radial-gradient(760px 520px at 88% 8%, rgba(255,196,110,.45), transparent 62%),
              radial-gradient(720px 560px at 0% 100%, rgba(150,205,225,.45), transparent 62%),
              radial-gradient(520px 380px at 45% 40%, rgba(255,255,255,.9), transparent 70%),
              linear-gradient(180deg, #fffaf1 0%, #f7f6f2 100%); }
.h-hero::before { opacity: .5; background-image: linear-gradient(rgba(10,31,51,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10,31,51,.045) 1px, transparent 1px); }
.h-hero h1 { color: var(--h-navy); }
.h-hero h1 em { font-style: normal; background: linear-gradient(90deg, #e08f0b, #f5a524); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero .h-eyebrow { color: #a85f00; }
.h-lead { color: var(--h-ink-2); }
.h-hero-facts { color: var(--h-ink-2); }
.h-hero-facts li::before { color: var(--h-amber-2); }
.h-hero .h-btn-ghost { color: var(--h-navy) !important; border-color: rgba(10,31,51,.25); background: rgba(255,255,255,.6); }
.h-hero .h-btn-ghost:hover { background: #fff; border-color: var(--h-navy); }
.h-hero .h-btn-cta { box-shadow: 0 8px 22px rgba(224,143,11,.35); }
.h-hero-shot img { border: 1px solid rgba(10,31,51,.12); box-shadow: 0 30px 70px rgba(10,31,51,.18), 0 0 0 10px rgba(255,255,255,.7); }
.h-hero-shot figcaption { color: #8a8475; }
.h-strip { border-top: 1px solid var(--h-line); background: rgba(255,255,255,.65); backdrop-filter: blur(6px); }
.h-strip-inner { color: var(--h-navy); }
.h-strip-inner span { color: #8a8475; }
/* Final call to action: warm instead of dark */
.h-final { color: var(--h-ink); background: radial-gradient(700px 360px at 20% 0%, rgba(255,196,110,.55), transparent 65%), radial-gradient(700px 360px at 90% 100%, rgba(150,205,225,.5), transparent 65%), #fbf6ec; }
.h-final h2 { color: var(--h-navy); }
.h-final p { color: var(--h-ink-2); }
.h-final .h-btn-ghost { color: var(--h-navy) !important; border-color: rgba(10,31,51,.25); background: rgba(255,255,255,.6); }

/* === light controls (2026-11-04) === */
.h-dark { color: var(--h-ink); background: radial-gradient(700px 380px at 100% 0%, rgba(255,196,110,.35), transparent 62%), radial-gradient(700px 420px at 0% 100%, rgba(150,205,225,.35), transparent 62%), #fbf6ec; }
.h-dark .h-eyebrow { color: #a85f00; }
.h-dark .h-display { color: var(--h-navy); }
.h-dark .h-sub { color: var(--h-ink-2); }
.h-controls { gap: 1.25rem; border: 0; }
.h-controls article { background: rgba(255,255,255,.85); border: 1px solid var(--h-line); border-radius: 8px; box-shadow: 0 10px 30px rgba(10,31,51,.05); transition: transform .25s var(--ease), box-shadow .25s; }
.h-controls article:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10,31,51,.09); }
.h-controls h3 { color: var(--h-navy); }
.h-controls p { color: var(--h-ink-2); }
.h-uc-more { background: linear-gradient(135deg, #fff1d6, #f5a524); border-color: #f0c070; }
.h-uc-more h3 { color: var(--h-navy); } .h-uc-more p { color: var(--h-navy); font-weight: 600; }
