/* ============================================================
   Ada Security — adasecurity.com
   Design system & page styles
   ============================================================ */

:root {
  --navy-950: #071A30;
  --navy-900: #0A2540;
  --navy-800: #0E3158;
  --blue-700: #1E4D8C;
  --blue-600: #2563AF;
  --blue-500: #3B82F6;
  --blue-100: #DCEAFB;
  --blue-50:  #EFF5FC;

  --ink-900: #16232F;
  --ink-700: #33445A;
  --ink-500: #55667C;
  --ink-400: #78889C;

  --line:     #E3E9F1;
  --line-2:   #D3DCE8;
  --bg-soft:  #F5F8FC;
  --white:    #FFFFFF;

  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 6px 24px -8px rgba(10, 37, 64, 0.14);
  --shadow-lg: 0 20px 48px -16px rgba(10, 37, 64, 0.22);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy-900); }

.overline {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; margin-bottom: 0; }

.muted { color: var(--ink-500); }
.small { font-size: 0.88rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--navy-800); color: var(--white); }

.btn-accent { background: var(--blue-500); color: var(--white); }
.btn-accent:hover { background: var(--blue-600); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--line-2);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--blue-700); color: var(--blue-700); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.06); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img { width: 40px; height: 40px; }

.brand-name {
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: -0.01em;
}
.brand-name b { font-weight: 700; color: var(--navy-900); }

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

.site-nav > a {
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-700);
}
.site-nav > a:hover { color: var(--navy-900); background: var(--bg-soft); }
.site-nav > a.is-current { color: var(--blue-700); font-weight: 600; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  overflow: hidden;
}

.lang-switch button {
  padding: 6px 11px;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang-switch button + button { border-left: 1px solid var(--line-2); }
.lang-switch button:hover { color: var(--navy-900); }
.lang-switch button.is-active { background: var(--navy-900); color: var(--white); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero (dark) ---------- */

.hero {
  position: relative;
  background: var(--navy-900);
  color: #C7D5E8;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 82% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(560px 380px at -8% 110%, rgba(30, 77, 140, 0.35), transparent 60%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(760px 520px at 70% 30%, rgba(0,0,0,0.9), transparent 75%);
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
  padding: 96px 0 104px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero .lead {
  font-size: 1.13rem;
  line-height: 1.65;
  color: #AFC3DC;
  max-width: 34em;
  margin-bottom: 32px;
}

.hero .overline { color: var(--blue-500); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  color: #C7D5E8;
  background: rgba(255,255,255,0.04);
}
.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* Hero product mock */

.mock-panel {
  background: linear-gradient(180deg, #0F335C, #0B2A4A);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  max-width: 420px;
  margin-left: auto;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mock-title { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--white); }
.mock-title img { width: 22px; height: 22px; }

.mock-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6EE7B7;
  border: 1px solid rgba(110, 231, 183, 0.35);
  border-radius: 5px;
  padding: 3px 8px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
}
.mock-row + .mock-row { margin-top: 9px; }

.mock-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mock-file span { font-size: 0.83rem; color: #D7E2F0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-file i {
  flex-shrink: 0;
  width: 26px;
  height: 30px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  position: relative;
}
.mock-file i::after {
  content: "";
  position: absolute;
  left: 5px; right: 5px; top: 8px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  box-shadow: 0 5px 0 rgba(255,255,255,0.28), 0 10px 0 rgba(255,255,255,0.18);
}

.chip {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.chip.public       { background: rgba(148, 163, 184, 0.18); color: #B9C6D8; }
.chip.internal     { background: rgba(59, 130, 246, 0.2);   color: #93BDF8; }
.chip.confidential { background: rgba(245, 158, 11, 0.16);  color: #FBBF24; }
.chip.restricted   { background: rgba(239, 68, 68, 0.16);   color: #F87171; }

.mock-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.76rem;
  color: #8FA7C4;
}
.mock-foot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34D399;
}

/* ---------- Cards & grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: 0.95rem; margin-bottom: 0; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

/* Product cards */

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 34px;
}
.product-card .tagline { font-size: 0.99rem; }
.product-card .actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.badge.live { background: #E8F7EF; color: #157A4C; }
.badge.soon { background: var(--blue-100); color: var(--blue-700); }
.badge.neutral { background: var(--bg-soft); color: var(--ink-500); }

/* Feature list (checkmarks) */

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink-700);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue-50);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  transform: rotate(-45deg);
}

/* Steps (approach) */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 64px;
  padding-bottom: 28px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h4 { margin-bottom: 4px; }
.steps p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #B9CCE4; margin: 0; max-width: 34em; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
}
table.spec th, table.spec td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.spec tr:last-child td { border-bottom: 0; }
table.spec th { background: var(--bg-soft); color: var(--navy-900); font-weight: 600; white-space: nowrap; }
table.spec td { color: var(--ink-700); }
table.spec td:first-child { font-weight: 600; color: var(--navy-900); }

/* ---------- Forms ---------- */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-500);
}
.checkbox input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--blue-700); flex-shrink: 0; }

.form-note { font-size: 0.85rem; color: var(--ink-400); margin-top: 14px; margin-bottom: 0; }

/* Inline (email capture) form */

.inline-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
}
.inline-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
.inline-form input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ---------- Portal (auth) pages ---------- */

.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.auth-side {
  background: var(--navy-900);
  color: #B9CCE4;
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 380px at 85% 0%, rgba(59,130,246,0.2), transparent 60%);
}
.auth-side > * { position: relative; }
.auth-side h2 { color: var(--white); }
.auth-side .check-list li { color: #C7D5E8; }
.auth-side .check-list li::before { background: rgba(59,130,246,0.18); }
.auth-side .check-list li::after { border-color: var(--blue-500); }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: var(--bg-soft);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tabs button {
  padding: 9px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.auth-tabs button.is-active {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.auth-panel[hidden] { display: none; }

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.88rem;
}

.auth-switch {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-bottom: 0;
}
.auth-switch a { font-weight: 600; }

/* ---------- Documents ---------- */

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.doc-row + .doc-row { margin-top: 12px; }
.doc-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }

.doc-info { display: flex; align-items: center; gap: 16px; min-width: 0; }

.doc-type {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-info h4 { margin: 0 0 2px; font-size: 0.98rem; }
.doc-info p { margin: 0; font-size: 0.84rem; color: var(--ink-400); }

/* ---------- Coming soon ---------- */

.soon-hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
  text-align: center;
  padding: 110px 0 120px;
}
.soon-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 420px at 50% -10%, rgba(59,130,246,0.25), transparent 65%);
}
.soon-hero .container { position: relative; max-width: 720px; }
.soon-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.soon-hero .lead { color: #AFC3DC; font-size: 1.1rem; max-width: 36em; margin: 0 auto 40px; }
.soon-hero .inline-form { margin: 0 auto; }
.soon-hero .inline-form input { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: var(--white); }
.soon-hero .inline-form input::placeholder { color: #7E96B5; }
.soon-hero .form-note { color: #7E96B5; margin-top: 16px; }
.soon-hero .badge.soon { background: rgba(59,130,246,0.18); color: #93BDF8; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: #93A8C2;
  padding: 64px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p { max-width: 30em; margin-bottom: 0; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.footer-logo img { width: 36px; height: 36px; }
.footer-logo .brand-name { font-size: 1.22rem; color: #A9BDD9; }
.footer-logo .brand-name b { color: var(--white); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #93A8C2;
  transition: color .15s ease, border-color .15s ease;
}
.footer-social a:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }

.footer-brand .footer-motto {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7E9CC4;
  margin: 0 0 16px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #93A8C2; }
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 0.84rem;
  color: #6A7F9B;
}
.footer-bottom ul { display: flex; gap: 22px; }
.footer-bottom a { color: #6A7F9B; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 9px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transform: none; }
}

/* ---------- Page hero (light, inner pages) ---------- */

.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { color: var(--ink-500); font-size: 1.08rem; max-width: 40em; margin-bottom: 0; }
.page-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 72px 0 80px; }
  .mock-panel { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

@media (max-width: 800px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 16px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav > a { padding: 12px 10px; font-size: 1rem; }

  .header-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px; }
  .brand-name { font-size: 1.02rem; }
}
