/* ==========================================================================
   Safexa — Teknowxa Solutions Pvt. Ltd.
   Marketing site design system
   ========================================================================== */

:root {
  /* ink */
  --ink-0:  #05090a;
  --ink-1:  #080e10;
  --ink-2:  #0b1416;
  --ink-3:  #101d20;
  --ink-4:  #16282c;
  --line:   #16272a;
  --line-2: #223a3f;
  --line-3: #2e4d53;

  /* type */
  --fg:   #e9f2f1;
  --fg-2: #9cb2b3;
  --fg-3: #667d80;
  --fg-4: #46595c;

  /* accent */
  --acc:      #19bdb7;   /* logo teal, lifted for the dark ground */
  --acc-dim:  #12a09b;
  --acc-deep: #0b5f5c;
  --acc-soft: rgba(25, 189, 183, 0.09);
  --acc-line: rgba(25, 189, 183, 0.22);

  --warn:      #f2b134;
  --warn-soft: rgba(242, 177, 52, 0.10);
  --warn-line: rgba(242, 177, 52, 0.24);
  --danger:      #ff6f60;
  --danger-soft: rgba(255, 111, 96, 0.10);
  --danger-line: rgba(255, 111, 96, 0.24);
  --info:      #5fb2e8;
  --info-soft: rgba(95, 178, 232, 0.10);
  --info-line: rgba(95, 178, 232, 0.24);

  /* fonts */
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tight: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* metrics */
  --nav-h: 64px;
  --wrap: 1200px;
  --wrap-narrow: 780px;
  --r: 10px;
  --r-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink-0);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` not `hidden`: overflow:hidden on body makes it a scroll container,
     which silently breaks position:sticky on the nav. */
  overflow-x: clip;
}

::selection { background: var(--acc); color: var(--ink-0); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ==========================================================================
   Type scale
   ========================================================================== */

h1, h2, h3, h4 { font-family: var(--tight); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }

.d1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: -0.038em; }
.d2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.032em; }
.d3 { font-size: clamp(1.55rem, 2.9vw, 2.15rem); line-height: 1.14; letter-spacing: -0.026em; }
.d4 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.25; letter-spacing: -0.018em; }

.lede { font-size: clamp(1.02rem, 1.55vw, 1.2rem); line-height: 1.62; color: var(--fg-2); }
.body-lg { font-size: 1.05rem; line-height: 1.68; color: var(--fg-2); }
.small { font-size: 0.875rem; line-height: 1.55; }
.xs { font-size: 0.8rem; line-height: 1.5; }

.eyebrow {
  font-family: var(--mono); font-size: 0.685rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow.muted { color: var(--fg-3); }
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: currentColor; opacity: .55; flex-shrink: 0;
}
.eyebrow.bare::before { display: none; }

.serif-note {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.42;
  letter-spacing: -0.012em; color: var(--fg);
}

.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: -0.01em; }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
.acc   { color: var(--acc); }
.tnum  { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap, .wrap-narrow { padding: 0 20px; } }

section { position: relative; }
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-sm { padding: clamp(48px, 6vw, 76px) 0; }
.sec-line { border-top: 1px solid var(--line); }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .d2 { margin: 16px 0 18px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.g-side-l { grid-template-columns: 380px minmax(0, 1fr); gap: 44px; align-items: start; }
@media (max-width: 1040px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .g-side-l { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .g-side-l > *:first-child { order: 2; }
}
@media (max-width: 760px) {
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
}

.flex { display: flex; }
.ic { align-items: center; }
.jb { justify-content: space-between; }
.wrap-f { flex-wrap: wrap; }
.gap-1 { gap: 8px; } .gap-2 { gap: 14px; } .gap-3 { gap: 22px; } .gap-4 { gap: 34px; }
.grow { flex: 1; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.mt-4 { margin-top: 40px; } .mt-5 { margin-top: 60px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 26px; }
.mb-4 { margin-bottom: 40px; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 9, 10, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(5, 9, 10, 0.9); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 34px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--acc) 0%, var(--acc-dim) 55%, var(--acc-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-0); font-family: var(--tight); font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(25,189,183,.25), 0 4px 14px rgba(25,189,183,.18);
}
.logo-text { display: block; font-family: var(--tight); font-size: 19px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.logo-sub { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .11em; color: var(--fg-4); text-transform: uppercase; line-height: 1.1; margin-top: 1px; }

/* real brand lockup — reversed variant, for the dark ground.
   Width is stated explicitly: the base img{max-width:100%} rule otherwise
   caps the width while height stays fixed, which squashes the artwork. */
.logo-img {
  height: 30px; width: 121px;          /* 1382x341 source */
  max-width: none; object-fit: contain; display: block;
}
.logo { align-items: baseline; }
.logo .logo-sub { position: relative; top: -3px; }
@media (max-width: 420px) {
  .logo-img { height: 26px; width: 105px; }
  .logo .logo-sub { display: none; }
}

.foot-logo {
  height: 42px; width: 168px;          /* 1366x341 source */
  max-width: none; object-fit: contain; display: block; margin-bottom: 18px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 12px; border-radius: 7px; font-size: 14.5px; color: var(--fg-2);
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.nav-link:hover { color: var(--fg); background: var(--ink-2); }
.nav-link.on { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 7px; }
.nav-toggle:hover { background: var(--ink-2); }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .btn.ghost { display: none; }
}

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--ink-0); padding: 24px 28px; overflow-y: auto;
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-family: var(--tight); font-size: 19px; font-weight: 500; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: space-between;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.008em;
  white-space: nowrap; cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--acc); color: #04120c; font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 22px -8px rgba(25,189,183,.6);
}
.btn.primary:hover { background: #4ff0a8; box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 8px 28px -8px rgba(25,189,183,.75); }

.btn.ghost { background: var(--ink-2); border-color: var(--line-2); color: var(--fg); }
.btn.ghost:hover { background: var(--ink-3); border-color: var(--line-3); }

.btn.bare { background: transparent; color: var(--fg-2); padding: 0 10px; }
.btn.bare:hover { color: var(--fg); }

.btn.lg { height: 48px; padding: 0 26px; font-size: 15.5px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--acc); font-size: 14.5px; font-weight: 500;
  transition: gap .18s;
}
.link-arrow:hover { gap: 11px; }
.link-arrow svg { transition: transform .18s; }

/* ==========================================================================
   Surfaces
   ========================================================================== */

.card {
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  position: relative;
  transition: border-color .2s, background .2s, transform .2s;
}
.card.hover:hover { border-color: var(--line-3); background: var(--ink-2); }
.card.lift:hover { transform: translateY(-2px); }
.card.pad-lg { padding: 34px; }
.card.flush { padding: 0; overflow: hidden; }

.panel {
  background: linear-gradient(180deg, var(--ink-1) 0%, var(--ink-0) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}

.glow-wrap { position: relative; }
.glow-wrap::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(25,189,183,.10), transparent 42%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.glow-wrap:hover::before { opacity: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px; border-radius: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
  border: 1px solid var(--line-2); background: var(--ink-2); color: var(--fg-2);
}
.chip.acc    { border-color: var(--acc-line);    background: var(--acc-soft);    color: var(--acc); }
.chip.warn   { border-color: var(--warn-line);   background: var(--warn-soft);   color: var(--warn); }
.chip.danger { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); }
.chip.info   { border-color: var(--info-line);   background: var(--info-soft);   color: var(--info); }
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip .dot.live { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 5px;
  font-size: 12px; background: var(--ink-3); border: 1px solid var(--line);
  color: var(--fg-2);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; padding: clamp(58px, 9vw, 104px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 720px; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(25,189,183,.13), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 54px; align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0,1fr); gap: 44px; } }

.hero h1 { margin: 20px 0 22px; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--acc); letter-spacing: -0.01em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 22px; color: var(--fg-3); font-size: 13.5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* ==========================================================================
   Ledger widget (hero)
   ========================================================================== */

.ledger {
  background: linear-gradient(175deg, var(--ink-2) 0%, var(--ink-1) 60%, var(--ink-0) 100%);
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(25,189,183,.05);
}
.ledger-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.ledger-dots { display: flex; gap: 6px; }
.ledger-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); display: block; }
.ledger-title { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em; }
.ledger-body { padding: 6px 0 14px; min-height: 318px; }

.lrow {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 16px; border-bottom: 1px solid rgba(255,255,255,.028);
  font-size: 12.5px; opacity: 0; transform: translateY(-6px);
  animation: lrowIn .45s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes lrowIn { to { opacity: 1; transform: none; } }
.lrow .lt { font-family: var(--mono); font-size: 10.5px; color: var(--fg-4); }
.lrow .ln { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .ln b { color: var(--fg); font-weight: 500; }
.lrow .lh { font-family: var(--mono); font-size: 10px; color: var(--fg-4); }

.ledger-seal {
  margin: 12px 16px 0; padding: 13px 15px;
  border: 1px solid var(--acc-line); border-radius: 9px; background: var(--acc-soft);
}
.seal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.seal-label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.seal-root { font-family: var(--mono); font-size: 10.5px; color: var(--fg-2); word-break: break-all; line-height: 1.55; }
.seal-meta { margin-top: 8px; font-size: 11px; color: var(--fg-3); display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Stat strip
   ========================================================================== */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:last-child { border-right: none; }
@media (max-width: 860px) { .stat:nth-child(2n) { border-right: none; } }
.stat-v { font-family: var(--tight); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat-v .u { font-size: 0.55em; color: var(--fg-3); font-weight: 500; margin-left: 3px; }
.stat-l { margin-top: 9px; font-size: 13px; color: var(--fg-3); line-height: 1.45; }

/* ==========================================================================
   Module / feature cards
   ========================================================================== */

.mod {
  display: block; background: var(--ink-1); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; height: 100%;
  transition: border-color .2s, background .2s, transform .2s;
}
.mod:hover { border-color: var(--line-3); background: var(--ink-2); transform: translateY(-2px); }
.mod-ic {
  width: 36px; height: 36px; border-radius: 9px; margin-bottom: 16px;
  background: var(--acc-soft); border: 1px solid var(--acc-line); color: var(--acc);
  display: flex; align-items: center; justify-content: center;
}
.mod-name { font-family: var(--tight); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.mod-desc { margin-top: 9px; font-size: 14px; line-height: 1.58; color: var(--fg-2); }
.mod-meta { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--fg-4); letter-spacing: .04em; }

.pillar-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-4); padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 10px;
}
.pillar-label b { color: var(--acc); font-weight: 500; }

/* ==========================================================================
   Feature rows
   ========================================================================== */

.frow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.frow + .frow { margin-top: clamp(56px, 8vw, 104px); }
.frow.rev > *:first-child { order: 2; }
@media (max-width: 900px) {
  .frow { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .frow.rev > *:first-child { order: 0; }
}
.fbullets { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.fbullets li { display: flex; gap: 12px; align-items: flex-start; }
.fbullets .bic { color: var(--acc); flex-shrink: 0; margin-top: 3px; }
.fbullets b { font-weight: 550; color: var(--fg); }
.fbullets span { color: var(--fg-2); font-size: 14.5px; line-height: 1.58; }

/* ==========================================================================
   Countdown
   ========================================================================== */

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.cd-cell { background: var(--ink-2); border: 1px solid var(--line); border-radius: 9px; padding: 16px 12px; text-align: center; }
.cd-v { font-family: var(--tight); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-l { margin-top: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-4); }

.timeline-rail { position: relative; padding-left: 30px; }
.timeline-rail::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.tl-node { position: relative; padding-bottom: 30px; }
.tl-node:last-child { padding-bottom: 0; }
.tl-node::before {
  content: ''; position: absolute; left: -30px; top: 5px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--ink-0); border: 2px solid var(--line-3);
}
.tl-node.done::before { border-color: var(--acc); background: var(--acc); }
.tl-node.next::before { border-color: var(--warn); background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.tl-date { font-family: var(--mono); font-size: 11.5px; color: var(--acc); letter-spacing: .04em; }
.tl-node.next .tl-date { color: var(--warn); }
.tl-title { font-family: var(--tight); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 5px 0 6px; }
.tl-body { font-size: 14px; color: var(--fg-2); line-height: 1.6; }

/* ==========================================================================
   Obligations table
   ========================================================================== */

.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink-1); }
.tbl-scroll { overflow-x: auto; }
table.ob { width: 100%; border-collapse: collapse; font-size: 14px; }
.ob thead th {
  text-align: left; padding: 12px 16px; background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-3); white-space: nowrap; font-weight: 500;
}
.ob tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ob tbody tr:last-child td { border-bottom: none; }
.ob tbody tr:hover { background: var(--ink-2); }
.ob .sec-ref { font-family: var(--mono); font-size: 12px; color: var(--acc); white-space: nowrap; }
.ob .ob-t { font-weight: 500; color: var(--fg); }
.ob .ob-d { color: var(--fg-2); font-size: 13.5px; margin-top: 4px; line-height: 1.55; }
.ob .ob-pen { font-family: var(--mono); font-size: 12px; white-space: nowrap; }

.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fbtn {
  height: 32px; padding: 0 13px; border-radius: 7px; font-size: 13.5px;
  background: var(--ink-1); border: 1px solid var(--line); color: var(--fg-2);
  transition: all .16s;
}
.fbtn:hover { border-color: var(--line-3); color: var(--fg); }
.fbtn.on { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc); }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: 18px; }
.flabel { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 7px; color: var(--fg-2); }
.inp, .sel, .txt {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 8px;
  background: var(--ink-1); border: 1px solid var(--line-2); color: var(--fg);
  font-size: 15px; transition: border-color .16s, box-shadow .16s;
}
.txt { height: auto; min-height: 108px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.inp:focus, .sel:focus, .txt:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.inp::placeholder, .txt::placeholder { color: var(--fg-4); }
.sel {
  appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667d80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center;
}

/* ==========================================================================
   Readiness assessment
   ========================================================================== */

.q-card { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px); }
.q-progress { height: 3px; background: var(--ink-3); border-radius: 2px; overflow: hidden; margin-bottom: 28px; }
.q-progress > span { display: block; height: 100%; background: var(--acc); border-radius: 2px; transition: width .35s cubic-bezier(.2,.8,.3,1); }
.q-num { font-family: var(--mono); font-size: 11.5px; color: var(--fg-4); letter-spacing: .1em; }
.q-text { font-family: var(--tight); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.024em; line-height: 1.24; margin: 12px 0 8px; }
.q-help { font-size: 14px; color: var(--fg-3); line-height: 1.6; margin-bottom: 24px; }
.q-opts { display: flex; flex-direction: column; gap: 10px; }
.q-opt {
  display: flex; align-items: flex-start; gap: 13px; text-align: left; width: 100%;
  padding: 15px 17px; border-radius: 9px; background: var(--ink-2);
  border: 1px solid var(--line); transition: all .16s;
}
.q-opt:hover { border-color: var(--line-3); background: var(--ink-3); }
.q-opt.sel { border-color: var(--acc); background: var(--acc-soft); }
.q-radio { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line-3); flex-shrink: 0; margin-top: 2px; position: relative; }
.q-opt.sel .q-radio { border-color: var(--acc); }
.q-opt.sel .q-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--acc); }
.q-opt-t { font-size: 15px; font-weight: 500; }
.q-opt-d { font-size: 13px; color: var(--fg-3); margin-top: 3px; line-height: 1.5; }

.score-ring { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .track { stroke: var(--ink-3); }
.score-ring .val { stroke: var(--acc); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.3,1); }
.score-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-num b { font-family: var(--tight); font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.score-num span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-4); margin-top: 5px; }

.gap-item { display: flex; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.gap-item:last-child { border-bottom: none; }
.gap-sev { width: 3px; border-radius: 2px; flex-shrink: 0; }
.gap-sev.high { background: var(--danger); }
.gap-sev.med  { background: var(--warn); }
.gap-sev.low  { background: var(--info); }
.gap-t { font-weight: 550; font-size: 15px; }
.gap-d { font-size: 13.5px; color: var(--fg-2); margin-top: 5px; line-height: 1.6; }
.gap-m { margin-top: 9px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================================
   Code / evidence blocks
   ========================================================================== */

.code {
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: var(--fg-2); overflow-x: auto; white-space: pre;
}
.code .k { color: var(--acc); }
.code .s { color: #8fd6ff; }
.code .c { color: var(--fg-4); }
.code .n { color: var(--warn); }

/* ==========================================================================
   Comparison table
   ========================================================================== */

.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500; border-bottom-color: var(--line-2);
}
.cmp thead th.us { color: var(--acc); }
.cmp td.us { background: var(--acc-soft); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp .rowlabel { color: var(--fg-2); font-weight: 450; }

/* ==========================================================================
   Language grid
   ========================================================================== */

.langs { display: flex; flex-wrap: wrap; gap: 7px; }
.lang {
  padding: 7px 13px; border-radius: 7px; background: var(--ink-1);
  border: 1px solid var(--line); font-size: 14px; color: var(--fg-2);
  transition: all .16s; cursor: default;
}
.lang:hover { border-color: var(--acc-line); background: var(--acc-soft); color: var(--acc); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 21px 0; text-align: left;
  font-family: var(--tight); font-size: 17px; font-weight: 550; letter-spacing: -0.018em;
}
.faq-q:hover { color: var(--acc); }
.faq-ic { color: var(--fg-3); flex-shrink: 0; transition: transform .22s; margin-top: 3px; }
.faq-item.open .faq-ic { transform: rotate(45deg); color: var(--acc); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s cubic-bezier(.2,.8,.3,1); }
.faq-item.open .faq-a { max-height: 620px; }
.faq-a-in { padding: 0 0 22px; color: var(--fg-2); font-size: 15px; line-height: 1.68; max-width: 76ch; }
.faq-a-in p + p { margin-top: 12px; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--ink-2) 0%, var(--ink-0) 70%);
  padding: clamp(36px, 6vw, 64px);
}
.cta-band::before {
  content: ''; position: absolute; top: -180px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(25,189,183,.13), transparent 66%); pointer-events: none;
}
.cta-band > * { position: relative; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--line); padding: 56px 0 34px; background: var(--ink-0); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-4); margin-bottom: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 11px; }
.foot-links a { font-size: 14px; color: var(--fg-2); transition: color .16s; }
.foot-links a:hover { color: var(--acc); }
.foot-bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-4);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.rev { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.8,.3,1), transform .6s cubic-bezier(.2,.8,.3,1); }
.rev.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rev { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .lrow { animation: none; opacity: 1; transform: none; }
  .chip .dot.live { animation: none; }
}

/* ==========================================================================
   Misc
   ========================================================================== */

.hr { height: 1px; background: var(--line); border: 0; }
.note {
  border-left: 2px solid var(--acc); padding: 4px 0 4px 18px;
  color: var(--fg-2); font-size: 15px; line-height: 1.68;
}
.note.warn { border-left-color: var(--warn); }

.kv { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 0; }
.kv dt { padding: 11px 0; font-size: 13.5px; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.kv dd { padding: 11px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: none; }
@media (max-width: 560px) { .kv { grid-template-columns: minmax(0,1fr); } .kv dt { border-bottom: none; padding-bottom: 0; } }

/* ==========================================================================
   Phone breakpoints
   Mobile browsers expand the layout viewport to the widest rigid element, so
   one 498px nav row made every page render at 498px on a 375px screen.
   Everything here exists to keep min-content width <= 375.
   ========================================================================== */

.lbl-short { display: none; }

@media (max-width: 600px) {
  .nav-in { gap: 12px; }
  .nav-right { gap: 6px; }
  .nav-right .btn.primary { height: 36px; padding: 0 12px; font-size: 13.5px; }
  .lbl-long  { display: none; }
  .lbl-short { display: inline; }
  .logo-img  { height: 26px; }
  .logo .logo-sub { display: none; }

  .hero { padding-top: 44px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .stat { padding: 20px 16px; }
  .stat-l { font-size: 12.5px; }

  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cd-cell { padding: 14px 8px; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .foot-bottom { flex-direction: column; gap: 8px; }

  .cmp th, .cmp td { padding: 11px 9px; font-size: 13px; }
  .ob thead th, .ob tbody td { padding: 10px 9px; }
  .ob .ob-d { font-size: 12.5px; }
  .ob .ob-pen { white-space: normal; }

  .pillar-label { flex-wrap: wrap; row-gap: 6px; }
  .pillar-label > span:last-child { margin-left: 0 !important; flex-basis: 100%; }

  .q-card { padding: 20px 16px; }
  .score-row { flex-wrap: wrap; justify-content: center; text-align: center; }
  .gap-m { justify-content: flex-start; }

  .sec { padding: 52px 0; }
  .sec-head { margin-bottom: 28px; }
  .d1 { font-size: 2.35rem; }
  .cta-band { padding: 28px 20px; }
  .code { font-size: 11.5px; padding: 14px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .nav-right .btn.primary { padding: 0 10px; font-size: 13px; }
  .logo-img { height: 24px; }
  .d1 { font-size: 2.15rem; }
}
