/* ===== Ittisal — Flagship Onyx + Green Product Page ===== */

:root{
  /* Brand green (matches Android app + web app) */
  --primary:#1F7A5F;
  --primary-hover:#155947;
  --primary-bright:#3DB89D;
  --primary-light:#2A9E78;
  --primary-glow:rgba(31,122,95,.35);
  --primary-soft:rgba(31,122,95,.12);
  --primary-line:rgba(42,158,120,.28);
  --accent-warm:#B89A4F;

  /* Green-black neutrals */
  --bg-deep:#07100B;
  --bg-surface:#0F1A14;
  --bg-card:#16241D;
  --bg-input:#1D2F26;

  /* Text */
  --text-primary:#ECF2EE;
  --text-secondary:#B3C0B8;
  --text-muted:#8FA39A;

  /* Glass + borders + shadow (the premium secret) */
  --glass-bg:rgba(15,26,20,.72);
  --glass-border:rgba(255,255,255,.08);
  --border:rgba(255,255,255,.06);
  --inner-glow:inset 0 1px 0 0 rgba(255,255,255,.06);
  --shadow-premium:0 24px 60px rgba(0,0,0,.55);
  --shadow-glow:0 0 90px rgba(31,122,95,.18);

  /* semantic */
  --danger:#f43f5e; --success:#10b981; --warning:#f59e0b;

  --radius-sm:12px; --radius-md:18px; --radius-lg:24px; --radius-xl:32px;
  --max-w:1180px;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;

  --ease:cubic-bezier(.22,1,.36,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.65;
  background:
    radial-gradient(circle at 50% -18%, rgba(31,122,95,.25), transparent 34rem),
    radial-gradient(circle at 8% 18%, rgba(42,158,120,.10), transparent 22rem),
    linear-gradient(180deg, #07100B 0%, #0A140E 44%, #07100B 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: .12;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}

body::after {
  z-index: -1;
  opacity: .12;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.08) 50%, transparent 62%),
    radial-gradient(circle at 80% 8%, rgba(31,122,95,.16), transparent 22rem);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

::selection {
  color: var(--text-primary);
  background: rgba(31,122,95,.35);
}

:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 48px), var(--max-w));
  margin-inline: auto;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,16,11,.72);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: var(--inner-glow);
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7,16,11,.9);
  border-color: rgba(255,255,255,.11);
  box-shadow: var(--inner-glow), 0 18px 50px rgba(0,0,0,.35);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: min-height .25s var(--ease);
}

.site-header.is-scrolled .nav-shell { min-height: 66px; }

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 0 28px rgba(31,122,95,.16);
  padding: 4px;
}

.brand-text { min-width: 0; display: grid; gap: 1px; }
.brand-title {
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
}
.brand-copy {
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.3;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.portfolio-trigger,
.language-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.15;
  padding: 10px 12px;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.nav-link:hover,
.portfolio-trigger:hover,
.language-btn:hover,
.nav-link:focus-visible,
.portfolio-trigger:focus-visible,
.language-btn:focus-visible {
  color: var(--text-primary);
  background: rgba(255,255,255,.06);
}

.portfolio-trigger,
.language-btn {
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.035);
}

.portfolio-wrap,
.language-switcher {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 246px;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(15,26,20,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-premium), var(--inner-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  z-index: 50;
}

.dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.portfolio-list { display: grid; gap: 2px; }

.portfolio-item,
.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.25;
  padding: 9px 12px;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.portfolio-item:hover,
.language-option:hover,
.portfolio-item:focus-visible,
.language-option:focus-visible {
  color: var(--text-primary);
  background: rgba(255,255,255,.06);
}

.language-dropdown {
  width: min(440px, 90vw);
  padding: 16px;
}

.language-dropdown-header {
  color: var(--primary-bright);
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.language-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.language-option {
  border: 1px solid transparent;
  justify-content: flex-start;
}

.language-option.current {
  color: var(--text-primary);
  border-color: var(--primary-line);
  background: var(--primary-soft);
}

.language-grid::-webkit-scrollbar { width: 8px; }
.language-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.035); border-radius: 999px; }
.language-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 999px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.menu-lines { position: relative; }
.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-lines::before { transform: translateY(-7px); }
.menu-lines::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); }

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

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 13px 24px;
  font-size: .93rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  box-shadow: var(--inner-glow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background:
    linear-gradient(135deg, var(--primary-bright), var(--primary) 48%, var(--primary-hover)),
    var(--primary);
  border-color: rgba(61,184,157,.45);
  box-shadow:
    0 16px 42px rgba(31,122,95,.26),
    var(--inner-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow:
    0 20px 56px rgba(31,122,95,.34),
    var(--inner-glow);
}

.btn-secondary {
  color: var(--text-primary);
  background: rgba(255,255,255,.045);
  border-color: var(--glass-border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--primary-line);
  background: rgba(255,255,255,.075);
  box-shadow: 0 16px 36px rgba(0,0,0,.2), 0 0 34px rgba(31,122,95,.12);
}

.btn-nav,
.btn-nav-primary {
  min-height: 42px;
  padding: 10px 14px;
  font-size: .84rem;
  border-radius: var(--radius-sm);
}

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

.hero {
  position: relative;
  padding: 96px 0 42px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: min(66vw, 780px);
  aspect-ratio: 1;
  left: 50%;
  top: -26%;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(31,122,95,.24), transparent 58%),
    radial-gradient(circle at 35% 42%, rgba(42,158,120,.18), transparent 44%);
  filter: blur(8px);
  animation: glowPulse 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  align-items: center;
  gap: 58px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31,122,95,.16), rgba(255,255,255,.035));
  color: var(--primary-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  padding: 8px 15px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  color: var(--text-primary);
  font-size: clamp(2.85rem, 6vw, 5.75rem);
  line-height: .96;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.gradient-text {
  display: inline;
  background: linear-gradient(100deg, #ffffff 0%, var(--primary-bright) 48%, #BDEDDD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subline {
  max-width: 55ch;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.78;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--text-secondary);
  box-shadow: var(--inner-glow);
  padding: 8px 13px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
}

.proof-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(16,185,129,.55);
  flex: 0 0 auto;
}

.micro-note {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 680px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.phone-aura {
  position: absolute;
  width: min(100%, 600px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(31,122,95,.34), transparent 56%),
    radial-gradient(circle at 70% 30%, rgba(16,185,129,.08), transparent 38%);
  filter: blur(10px);
  opacity: .9;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

.phone-stage {
  position: relative;
  width: clamp(286px, 27vw, 368px);
  transform-style: preserve-3d;
  transition: transform .22s var(--ease);
  animation: phoneFloat 6s ease-in-out infinite;
  filter:
    drop-shadow(0 34px 62px rgba(0,0,0,.52))
    drop-shadow(0 0 58px rgba(31,122,95,.2));
}

.phone-screen {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 180px;
  max-width: 240px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(15,26,20,.74);
  box-shadow: var(--shadow-premium), var(--inner-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 16px;
}

.chip-kicker,
.section-kicker,
.principle-tag,
.split-label,
.story-step {
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.chip-kicker,
.section-kicker,
.principle-tag,
.story-step {
  color: var(--primary-bright);
}

.floating-chip strong {
  color: var(--text-primary);
  font-size: .94rem;
  line-height: 1.25;
}

.chip-admin { top: 88px; left: 2px; }
.chip-sos { right: -8px; top: 318px; }
.chip-access { left: 28px; bottom: 74px; }

/* ===== Metrics ===== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.metric-card {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)), var(--glass-bg);
  box-shadow: var(--shadow-premium), var(--inner-glow);
  padding: 26px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-bright), transparent);
  opacity: .7;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-line);
  box-shadow: var(--shadow-premium), 0 0 44px rgba(31,122,95,.16), var(--inner-glow);
}

.metric-value {
  color: var(--primary-bright);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: 0;
  background: linear-gradient(120deg, #fff, var(--primary-bright) 58%, var(--accent-warm));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  color: var(--text-secondary);
  font-size: .91rem;
  line-height: 1.58;
}

/* ===== Sections ===== */

.section {
  position: relative;
  padding: 86px 0;
}

.section-tight { padding-top: 58px; }

.section-glow::before,
.showcase-section::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 50%;
  width: min(70vw, 880px);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(31,122,95,.10), transparent 66%);
  pointer-events: none;
}

.section-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: end;
  gap: 36px;
  margin-bottom: 48px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 15px;
}

.section-header h2 {
  max-width: 13ch;
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-wrap: balance;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

/* ===== Glass Cards ===== */

.feature-grid,
.principles-grid,
.story-grid,
.checklist-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.principle-card,
.story-card,
.checklist-category,
.trust-panel,
.cta-band {
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)), var(--glass-bg);
  box-shadow: var(--shadow-premium), var(--inner-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.feature-card,
.principle-card,
.story-card,
.checklist-category,
.trust-item {
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}

.feature-card:hover,
.principle-card:hover,
.story-card:hover,
.checklist-category:hover,
.trust-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-line);
  box-shadow: var(--shadow-premium), 0 0 46px rgba(31,122,95,.14), var(--inner-glow);
}

.feature-card {
  min-height: 248px;
  display: grid;
  align-content: start;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--primary-line);
  border-radius: var(--radius-md);
  color: var(--primary-bright);
  background: radial-gradient(circle at 35% 25%, rgba(31,122,95,.24), rgba(255,255,255,.035));
  box-shadow: 0 0 32px rgba(31,122,95,.18), var(--inner-glow);
}

.feature-icon svg { width: 25px; height: 25px; }

.feature-card h3,
.principle-card h3,
.story-card h3,
.trust-item h3 {
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.28;
}

.feature-card p,
.principle-card p,
.story-card p,
.trust-item p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: .94rem;
  line-height: 1.68;
}

/* ===== Principles ===== */

.principles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border-radius: var(--radius-xl);
  padding: 30px 28px;
}

.principle-card > p { margin-top: 0; }

.principle-split {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.principle-side {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 17px 18px;
}

.principle-side-muted {
  background: rgba(255,255,255,.025);
}

.principle-side-accent {
  border-color: var(--primary-line);
  background:
    radial-gradient(circle at 92% 8%, rgba(31,122,95,.26), transparent 34%),
    linear-gradient(135deg, rgba(31,122,95,.14), rgba(255,255,255,.03));
}

.principle-side-accent::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 22px rgba(16,185,129,.5);
}

.split-label {
  display: inline-flex;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.principle-side-accent .split-label {
  color: var(--primary-bright);
}

.principle-side p {
  margin-top: 0;
  max-width: 28ch;
  font-size: .9rem;
}

/* ===== Safety Flow ===== */

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  top: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-line), transparent);
}

.story-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 236px;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.story-step {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--primary-line);
  border-radius: 50%;
  background: var(--bg-input);
  box-shadow: 0 0 32px rgba(31,122,95,.18), var(--inner-glow);
}

/* ===== Screenshot Showcase ===== */

.showcase-section {
  overflow: hidden;
}

.showcase-rail-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.showcase-rail {
  display: flex;
  align-items: start;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 8px max(24px, 5vw) 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}

.showcase-rail::-webkit-scrollbar { height: 10px; }
.showcase-rail::-webkit-scrollbar-track { background: transparent; }
.showcase-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.screenshot-card {
  flex: 0 0 clamp(300px, 17.5vw, 360px);
  scroll-snap-align: center;
  display: grid;
  gap: 13px;
  transform: none;
}

.screenshot-card-wide {
  flex-basis: clamp(600px, 36vw, 760px);
}

.screenshot-card img {
  width: 100%;
  height: clamp(620px, 37vw, 760px);
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter:
    drop-shadow(0 24px 44px rgba(0,0,0,.46))
    drop-shadow(0 0 32px rgba(31,122,95,.12));
}

.screenshot-card-wide img {
  object-fit: contain;
}

.screenshot-card figcaption {
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.45;
  padding-inline: 6px;
}

/* ===== Feature Checklist ===== */

.checklist-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checklist-category {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.checklist-category::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: .75;
}

.checklist-title {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.checklist-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-line);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-bright);
  font-size: .78rem;
  font-weight: 900;
}

.checklist-category h3 {
  color: var(--text-primary);
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.2;
}

.checklist-title span:last-child {
  display: inline-flex;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.checklist-category ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.checklist-category li {
  position: relative;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.52;
  padding-left: 25px;
}

.checklist-category li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--primary-bright), var(--primary));
  box-shadow: 0 0 15px rgba(31,122,95,.32);
}

/* ===== Trust + CTA ===== */

.trust-panel {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 30px;
  align-items: start;
  border-radius: var(--radius-xl);
  padding: 48px;
}

.trust-copy h2,
.cta-band h2 {
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.trust-copy p,
.cta-band p {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--text-secondary);
  line-height: 1.72;
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  box-shadow: var(--inner-glow);
  padding: 22px 24px;
}

.trust-item p { margin-top: 8px; }

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border-radius: var(--radius-xl);
  padding: 48px 52px;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -80% -12% auto auto;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,122,95,.28), transparent 62%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

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

.site-footer {
  padding: 0 0 54px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  color: var(--text-muted);
  font-size: .9rem;
}

.footer-shell a {
  color: var(--text-secondary);
  transition: color .2s var(--ease);
}

.footer-shell a:hover,
.footer-shell a:focus-visible {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ===== Motion ===== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible {
  animation: fadeUp .72s var(--ease) forwards;
}

.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes glowPulse {
  from { opacity: .62; filter: blur(8px); }
  to { opacity: 1; filter: blur(14px); }
}

@keyframes auroraDrift {
  from { transform: translate3d(-1%, 0, 0); }
  to { transform: translate3d(1%, -1%, 0); }
}

/* ===== Responsive ===== */

@media (max-width: 1120px) {
  .nav-shell {
    position: relative;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle { display: inline-flex; }

  .nav-links {
    order: 5;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
    transition: max-height .28s var(--ease), opacity .2s var(--ease), padding .28s var(--ease);
  }

  .nav-links.open {
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    padding: 12px 0 6px;
  }

  .nav-link,
  .portfolio-trigger,
  .language-btn,
  .nav-links > .btn {
    width: 100%;
    justify-content: center;
  }

  .portfolio-wrap,
  .language-switcher {
    width: 100%;
  }

  .dropdown {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown.active {
    display: block;
    transform: none;
  }

  .language-dropdown { width: 100%; }
  .language-grid { max-height: min(420px, calc(100vh - 260px)); }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 620px;
  }

  .metrics-grid,
  .feature-grid,
  .principles-grid,
  .story-grid,
  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-header,
  .trust-panel {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
    gap: 16px;
  }

  .section-header h2 {
    max-width: 18ch;
  }

  .story-grid::before { display: none; }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 32px), var(--max-w));
  }

  .brand-copy { display: none; }

  .language-grid { grid-template-columns: 1fr; }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .hero {
    padding-top: 48px;
  }

  .hero-visual {
    min-height: auto;
    padding: 22px 0 10px;
  }

  .phone-stage {
    width: min(78vw, 330px);
  }

  .floating-chip {
    position: static;
    min-width: 0;
    width: min(100%, 330px);
    margin-top: 10px;
  }

  .chip-admin,
  .chip-sos,
  .chip-access {
    inset: auto;
  }

  .metrics-grid,
  .feature-grid,
  .principles-grid,
  .story-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 132px;
  }

  .section {
    padding: 58px 0;
  }

  .section-tight { padding-top: 38px; }

  .section-header {
    margin-bottom: 30px;
    padding-bottom: 22px;
  }

  .section-header h2 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .showcase-rail {
    padding-inline: 16px;
  }

  .screenshot-card,
  .screenshot-card:nth-child(even),
  .screenshot-card-tall {
    flex-basis: min(74vw, 312px);
    transform: none;
  }

  .screenshot-card-wide {
    flex-basis: min(92vw, 520px);
  }

  .screenshot-card img {
    height: 520px;
  }

  .trust-panel,
  .cta-band {
    padding: 32px 24px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .nav-shell { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-title { font-size: 1rem; }
  .menu-toggle { width: 42px; height: 42px; }

  .eyebrow {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: .65rem;
    letter-spacing: .08em;
  }

  .cta-row,
  .hero .cta-row,
  .cta-band .cta-row {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .proof-badge {
    width: 100%;
  }

  .feature-card,
  .principle-card,
  .story-card,
  .checklist-category {
    padding: 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .phone-stage,
  .screenshot-card,
  body::after,
  .hero-glow,
  .phone-aura {
    animation: none !important;
    transform: none !important;
  }
}

/* ===== RTL ===== */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .menu-toggle {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .proof-badge::before {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .dropdown {
  right: auto;
  left: 0;
  transform-origin: top left;
}

[dir="rtl"] .chip-admin { left: auto; right: 2px; }
[dir="rtl"] .chip-sos { right: auto; left: -8px; }
[dir="rtl"] .chip-access { left: auto; right: 28px; }

[dir="rtl"] .language-option {
  justify-content: flex-start;
}
[dir="rtl"] .language-dropdown {
  text-align: right;
}

[dir="rtl"] ul {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .checklist-icon {
  margin-right: 0;
  margin-left: 16px;
}

[dir="rtl"] .metric-card::before {
  left: auto;
  right: 0;
}
