/* ==========================================================================
   Algovrik — Official Company Platform & Admin Styles
   Aesthetic: "Rooted Logic, Human Software"
   ========================================================================== */

:root {
  --bg-canvas: #FBF9F5;
  --bg-surface: #FFFFFF;
  --bg-soft: #F2EFE8;
  --bg-elevated: #FAF7F0;
  --bg-deep: #0B2E22;
  --bg-deep-card: rgba(255, 255, 255, 0.07);

  --ink-1: #131A16;
  --ink-2: #4A5750;
  --ink-3: #74827A;
  --ink-on-deep: #F4F9F6;
  --ink-muted-deep: rgba(244, 249, 246, 0.72);

  --line: #E5E0D5;
  --line-strong: #CEC7B8;

  --brand: #0E5A40;
  --brand-hover: #0A4531;
  --brand-bright: #28B87D;
  --brand-soft: #E2F3EC;
  --brand-soft-ink: #0B4631;
  --on-brand: #FFFFFF;

  --amber: #D9822B;
  --amber-soft: #FDF1E1;
  --amber-ink: #7C450B;

  --danger: #B42318;
  --danger-soft: #FDECEB;

  --cobalt: #1D63B8;
  --cobalt-soft: #E6F0FC;
  --plum: #723EB0;
  --plum-soft: #F2EAFB;

  --chrome-bg: rgba(251, 249, 245, 0.82);
  --chrome-border: rgba(229, 224, 213, 0.88);

  --shadow-sm: 0 2px 8px rgba(18, 28, 22, 0.045), 0 1px 2px rgba(18, 28, 22, 0.03);
  --shadow-md: 0 14px 36px rgba(15, 28, 21, 0.08), 0 3px 8px rgba(15, 28, 21, 0.04);
  --shadow-lg: 0 24px 60px rgba(12, 26, 19, 0.14);

  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

html[data-theme="dark"] {
  --bg-canvas: #090E0C;
  --bg-surface: #111916;
  --bg-soft: #17221E;
  --bg-elevated: #141E1A;
  --bg-deep: #061D15;
  --bg-deep-card: rgba(255, 255, 255, 0.06);

  --ink-1: #EFF4F1;
  --ink-2: #9BA9A2;
  --ink-3: #697870;

  --line: #21302A;
  --line-strong: #31463D;

  --brand: #3CD094;
  --brand-hover: #58DCA6;
  --brand-bright: #3CD094;
  --brand-soft: #123326;
  --brand-soft-ink: #9EF0CC;
  --on-brand: #052619;

  --amber: #F0A64E;
  --amber-soft: #312210;
  --amber-ink: #FAD29E;

  --danger: #F98078;
  --danger-soft: #3A1718;

  --cobalt: #67A9F7;
  --cobalt-soft: #132942;
  --plum: #BD8DF2;
  --plum-soft: #281B38;

  --chrome-bg: rgba(9, 14, 12, 0.80);
  --chrome-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 14px rgba(0, 0, 0, 0.32);
  --shadow-md: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 68px rgba(0, 0, 0, 0.60);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--ink-1);
  font-family: "Plus Jakarta Sans", "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 260ms var(--ease-glide), color 260ms var(--ease-glide);
  overflow-x: hidden;
}

html[lang="bn"] body { line-height: 1.68; }
html[lang="bn"] .eyebrow,
html[lang="bn"] .kicker { letter-spacing: 0 !important; text-transform: none !important; }

.sr-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Top Announcement Bar */
.top-announce {
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.top-announce a {
  color: #5CE0A8;
  font-weight: 800;
  text-decoration: none;
}
.top-announce[hidden] { display: none; }

.canvas-grid { position: relative; }
.canvas-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(40, 184, 125, 0.09), transparent 42%),
    radial-gradient(circle at 84% 18%, rgba(217, 130, 43, 0.07), transparent 36%),
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 65%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 16px;
  margin-top: 12px;
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  height: 64px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--chrome-bg);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid var(--chrome-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink-1);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.brand-word span { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
}
.nav-links a:hover { color: var(--ink-1); background: var(--bg-soft); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn,
.lang-btn {
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--ink-1);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 200ms var(--ease-spring), border-color 180ms ease, background-color 180ms ease;
}
.icon-btn { width: 38px; padding: 0; font-size: 15px; }
.icon-btn:hover, .lang-btn:hover { background: var(--bg-soft); border-color: var(--line-strong); }
.icon-btn:active, .lang-btn:active, .btn:active { transform: scale(0.965); transition-duration: 90ms; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 220ms var(--ease-spring), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 160ms;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(14, 90, 64, 0.20); }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); transform: translateY(-1px); }
.btn-outline { background: var(--bg-surface); color: var(--ink-1); border-color: var(--line-strong); }
.btn-outline:hover:not(:disabled) { background: var(--bg-soft); transform: translateY(-1px); }
.btn-soft { background: var(--brand-soft); color: var(--brand-soft-ink); }

/* Hero */
.hero { padding: 68px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.live-dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--brand-bright); }
.live-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--brand-bright);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.10;
  font-weight: 800;
  letter-spacing: -0.03em;
}
html[lang="bn"] .hero h1 { line-height: 1.24; letter-spacing: 0; }
.hero h1 .accent { color: var(--brand); }

.hero-lead {
  margin: 20px 0 30px;
  font-size: clamp(16.5px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 540px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.metric-val { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metric-lbl { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

/* Ecosystem Stage */
.eco-stage {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.eco-stage::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright), var(--amber));
}
.eco-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.kicker { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.status-chip { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-soft-ink); }
.eco-root-card {
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.eco-branches {
  position: relative;
  margin: 16px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eco-branches::before {
  content: "";
  position: absolute;
  left: 7px; top: 0; bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--line-strong));
}
.eco-node {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms var(--ease-glide), border-color 200ms ease;
}
.eco-node:hover { transform: translateX(4px); border-color: var(--brand); }
.eco-node::before { content: ""; position: absolute; left: -13px; top: 50%; width: 12px; height: 2px; background: var(--brand); }
.node-badge { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.eco-footer-strip { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mini-pill { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { margin: 8px 0 12px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.18; font-weight: 800; letter-spacing: -0.025em; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* Product Showcase */
.product-frame { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-md); }
.product-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.instanton-badge { display: flex; align-items: center; gap: 14px; }
.instanton-icon { width: 48px; height: 48px; border-radius: 15px; background: #146C43; color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(20, 108, 67, 0.25); }

.seg-wrap { position: relative; display: inline-flex; flex-wrap: wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg-thumb { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px; background: var(--brand); transition: transform 320ms var(--ease-glide), width 320ms var(--ease-glide); pointer-events: none; }
.seg-btn { position: relative; z-index: 1; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: color 180ms ease; }
.seg-btn[aria-selected="true"] { color: var(--on-brand); }

.product-split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 36px; align-items: center; }
.feature-check-list { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.feature-check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink-1); }
.check-dot { width: 22px; height: 22px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-soft-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; flex-shrink: 0; margin-top: 2px; }

.mock-window { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; }
.spine-card { position: relative; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 15px; padding: 14px 16px 14px 20px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; display: block; }
.spine-card::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 4px; border-radius: 999px; background: var(--spine, var(--brand)); }

.att-demo-btn { width: 100%; border: 1px solid var(--line); background: var(--bg-surface); color: var(--ink-1); border-radius: 13px; padding: 10px 14px; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; font-family: inherit; cursor: pointer; transition: transform 160ms var(--ease-spring), border-color 160ms ease; }
.att-demo-btn:hover { border-color: var(--brand); }
.att-demo-btn:active { transform: scale(0.985); }

.pill-ok { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--brand-soft); color: var(--brand-soft-ink); }
.pill-warn { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--amber-soft); color: var(--amber-ink); }
.pill-bad { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--danger-soft); color: var(--danger); }

/* Pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pillar-card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease-glide), box-shadow 220ms var(--ease-glide); }
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-icon { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; }
.pillar-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.pillar-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Story */
.story-band { background: var(--bg-deep); color: var(--ink-on-deep); border-radius: var(--radius-xl); padding: 52px 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; box-shadow: var(--shadow-lg); }
.story-band h2 { margin: 10px 0 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }
.story-band p { margin: 0; color: var(--ink-muted-deep); font-size: 16.5px; }
.etymology-cards { display: flex; flex-direction: column; gap: 14px; }
.ety-box { background: var(--bg-deep-card); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 18px 22px; }
.ety-word { font-size: 19px; font-weight: 800; color: #5CE0A8; margin-bottom: 4px; }

/* Roadmap + Waitlist */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.road-card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.stage-tag { display: inline-flex; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }

.waitlist-bar {
  margin-top: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 280px;
  justify-content: flex-end;
}
.waitlist-form input,
.waitlist-form select {
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-canvas);
  color: var(--ink-1);
  font-family: inherit;
  font-size: 14px;
  padding: 0 16px;
  outline: none;
}
.waitlist-form input { min-width: 220px; flex: 1; max-width: 280px; }
.waitlist-form input:focus,
.waitlist-form select:focus { border-color: var(--brand); }

/* Careers Grid */
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.job-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.contact-form { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { border: 1px solid var(--line-strong); background: var(--bg-elevated); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 160ms ease; }
.topic-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-canvas);
  color: var(--ink-1);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.status-banner {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}
.status-banner.ok { background: var(--brand-soft); color: var(--brand-soft-ink); }
.status-banner.err { background: var(--danger-soft); color: var(--danger); }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 12, 0.55);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--ink-2); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink-1); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-1);
  color: var(--bg-canvas);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-glide), transform 220ms var(--ease-glide);
  z-index: 120;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 360ms var(--ease-glide), transform 360ms var(--ease-glide); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero-grid, .product-split, .story-band, .contact-grid, .roadmap-grid, .jobs-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .story-band { padding: 36px 26px; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 10px; }
  .nav-shell { height: 56px; padding: 0 12px; gap: 8px; }
  .nav-actions .btn-sm { display: none; }
  .seg-wrap { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg-wrap::-webkit-scrollbar { display: none; }
  .seg-btn { flex-shrink: 0; }
  .pillars-grid, .field-row, .hero-metrics { grid-template-columns: 1fr; }
  .product-frame { padding: 20px; }
  .hero { padding: 44px 0 56px; }
  .section { padding: 60px 0; }
  .waitlist-form input { max-width: 100%; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
