/* ─── Prism landing page ─────────────────────────────────────────────────
   Design tokens mirrored from the Prism app (stand-ui/app/globals.css).   */

:root {
  --page-bg:          #F4F6F8;
  --surface:          #FFFFFF;
  --surface-hover:    #F9FAFB;

  --accent:           #378ADD;
  --accent-strong:    #185FA5;
  --accent-tint:      #EAF1FE;
  --accent-border:    #C5D8FC;

  --text-primary:     #1A1A2E;
  --text-secondary:   #374151;
  --text-muted:       #6B7280;
  --text-hint:        #9CA3AF;

  --border:           #E5E7EB;
  --border-subtle:    #F3F4F6;

  --green:            #0F6E56;
  --green-bright:     #16A34A;
  --red:              #991B1B;
  --red-border:       #FECACA;
  --red-tint:         #FEF2F2;

  --radius-card:      10px;
  --radius-button:    3px;
  --radius-pill:      3px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background-color: var(--page-bg);
}

body {
  background-color: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-button);
  padding: 10px 20px;
  border: 0.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background-color: var(--accent-strong); }

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent-border);
  background-color: var(--accent-tint);
  color: var(--accent-strong);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--accent-strong); }

.btn-lg { font-size: 15px; padding: 13px 26px; }

.btn-on-dark {
  background-color: #fff;
  color: var(--text-primary);
}
.btn-on-dark:hover { background-color: var(--accent-tint); }

.btn-outline-on-dark {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-on-dark:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* ─── Nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(244, 246, 248, 0.82);
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background-color: rgba(255, 255, 255, 0.86);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text-primary); }

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

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 148px 0 72px;
  overflow: hidden;
}

/* faint technical grid + soft blue glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26, 26, 46, 0.035) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, rgba(26, 26, 46, 0.035) 0.5px, transparent 0.5px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(55, 138, 221, 0.14), transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background-color: var(--accent-tint);
  border: 0.5px solid var(--accent-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text-primary);
  max-width: 780px;
  margin: 0 auto 22px;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 34px;
  text-wrap: balance;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: -14px auto 30px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-strong);
}

.hero-stats-sep {
  color: var(--text-hint);
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 12.5px;
  color: var(--text-hint);
  margin-bottom: 58px;
}

/* ─── Hero diagram — live standardization demo ─────────────────────────── */

.hero-diagram {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow:
    0 1px 2px rgba(26, 26, 46, 0.04),
    0 12px 40px -12px rgba(26, 26, 46, 0.12);
  padding: 26px 28px 20px;
}

.sync-demo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}

.sync-card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 232px;
  align-self: flex-start;
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.06);
  overflow: hidden;
}

.sync-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: #fafbfd;
  border-bottom: 0.5px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.sync-card-head svg { display: block; flex: none; opacity: 0.55; }

.sync-tag {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-hint);
}
.sync-tag.live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
}
.sync-tag.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green-bright);
  animation: live-blink 2s ease infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.sync-card table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.sync-card thead th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--accent-strong);
  background-color: var(--accent-tint);
  padding: 6px 14px;
  border-bottom: 0.5px solid var(--accent-border);
}
.sync-card th.qty,
.sync-card td.qty { width: 76px; text-align: right; }
.sync-card tbody td {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-bottom: 0.5px solid var(--border-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: padding 0.4s ease, font-size 0.4s ease, line-height 0.4s ease,
    opacity 0.3s ease;
}
.sync-card td.qty { color: var(--text-muted); font-size: 11px; }
.sync-src tbody td.val { color: var(--red); }
.sync-std tbody td.val { color: var(--accent-strong); font-weight: 600; }
.sync-std tbody td.val::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--green-bright);
  margin-right: 8px;
  vertical-align: 1.5px;
}

tr.sync-new-raw td { animation: flash-amber 1.4s ease both; }
@keyframes flash-amber {
  0% { background-color: rgba(217, 119, 6, 0.28); }
  100% { background-color: rgba(217, 119, 6, 0.07); }
}
tr.sync-new-std td { animation: flash-green 1.4s ease both; }
@keyframes flash-green {
  0% { background-color: rgba(22, 163, 74, 0.28); }
  100% { background-color: rgba(22, 163, 74, 0.07); }
}

/* oldest row shrinks away as a new one lands, so the tables never grow */
tr.sync-collapse td {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0;
  line-height: 0;
  opacity: 0;
}
tr.sync-collapse td.val::before { display: none; }

.sync-mid {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sync-mid-row { display: flex; align-items: center; gap: 8px; }
.sync-arrow { display: block; color: var(--accent-border); }
.sync-mark svg { display: block; width: 52px; height: 42px; overflow: visible; }
.sync-mark.pulse svg { animation: mark-pulse 0.7s ease; }
@keyframes mark-pulse {
  0%, 100% { transform: scale(1); filter: none; }
  45% { transform: scale(1.16); filter: drop-shadow(0 0 12px rgba(55, 138, 221, 0.6)); }
}
.sync-mid-text { text-align: center; }
.sync-mid-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.sync-mid-sub { font-size: 10.5px; color: var(--text-hint); }

/* the value flying from the source table, through Prism, into the clean table */
.sync-pill {
  position: absolute;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid #d97706;
  background-color: #fffbeb;
  color: #92400e;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(26, 26, 46, 0.14);
  pointer-events: none;
  transition: left 0.9s cubic-bezier(0.45, 0, 0.25, 1),
    top 0.9s cubic-bezier(0.45, 0, 0.25, 1),
    opacity 0.3s ease, transform 0.3s ease;
}
.sync-pill.clean {
  border-color: var(--accent);
  background-color: var(--accent-tint);
  color: var(--accent-strong);
}
.sync-pill.vanish { opacity: 0; transform: scale(0.4); }

.sync-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.sync-note svg { flex: none; }

@media (max-width: 760px) {
  .sync-demo { flex-direction: column; align-items: stretch; gap: 12px; }
  .sync-card { min-height: 0; align-self: stretch; }
  .sync-mid { flex-direction: row; justify-content: center; gap: 12px; }
  .sync-arrow { display: none; }
  .sync-mid-text { text-align: left; }
  .sync-mark svg { width: 40px; height: 32px; }
}

/* ─── Sections ─────────────────────────────────────────────────────────── */

.section { padding: 108px 0; }

.section-header { max-width: 640px; margin-bottom: 56px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ─── Why Prism cards ──────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 14px 34px -14px rgba(26, 26, 46, 0.16);
}

.value-icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-tint);
  border: 0.5px solid var(--accent-border);
  border-radius: 8px;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.value-card .mono-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  background-color: var(--page-bg);
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── How it works ─────────────────────────────────────────────────────── */

.how { background-color: var(--surface); border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  background-color: var(--page-bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.step-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.step-visual {
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 14px;
}
.step-visual svg { display: block; width: 100%; height: auto; }

/* ─── Naming conventions & standardization rules ───────────────────────── */

.rules-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
}
.rules-grid .section-header { margin-bottom: 0; }

.rule-cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rule-card {
  background-color: var(--surface);
  border: 0.5px solid var(--accent-border);
  border-left: 3px solid var(--accent-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px -6px rgba(26, 26, 46, 0.10);
  padding: 20px 24px 22px;
}

.rule-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.rule-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.rule-example {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rule-example svg { flex: none; }

.rule-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 0.5px solid var(--border);
  background-color: #fafbfd;
  color: var(--text-hint);
  white-space: nowrap;
}
.rule-pill.old { text-decoration: line-through; }
.rule-pill.new {
  border-color: var(--accent-border);
  background-color: var(--accent-tint);
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

/* ─── Connectors ───────────────────────────────────────────────────────── */

.connectors { padding-top: 0; }
.connectors .section-header { margin-bottom: 36px; }

.connector-featured {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.connector-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

.connector-chip.soon {
  color: var(--text-muted);
  background-color: var(--page-bg);
  border-style: dashed;
  border-width: 1px;
}

.soon-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
  background-color: var(--accent-tint);
  border-radius: 999px;
  padding: 2px 7px;
}
.connector-chip.main {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-color: var(--accent-border);
  padding: 11px 20px;
  box-shadow: 0 4px 14px -4px rgba(26, 26, 46, 0.10);
}
.connector-chip.main svg { display: block; flex: none; }

.connector-more { text-align: center; }
.connector-more summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-strong);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}
.connector-more summary::-webkit-details-marker { display: none; }
.connector-more summary:hover { background-color: var(--accent-tint); }
.connector-more summary svg { transition: transform 0.2s ease; }
.connector-more[open] summary svg { transform: rotate(180deg); }

.connector-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 18px auto 0;
}

.connector-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 28px;
}
.connector-note a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Demo ─────────────────────────────────────────────────────────────── */

.demo-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(55, 138, 221, 0.10), transparent 70%),
    var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px -12px rgba(26, 26, 46, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}

.demo-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #0b1220;
}

/* ─── Pricing ──────────────────────────────────────────────────────────── */

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 40px 32px;
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px -12px rgba(26, 26, 46, 0.12);
  text-align: center;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-number {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}

.pricing-per {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-included {
  margin: 20px auto 24px;
  max-width: 300px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-note a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}
.pricing-note a:hover { text-decoration: underline; }

/* ─── CTA band ─────────────────────────────────────────────────────────── */

.cta-band {
  background-color: var(--text-primary);
  border-radius: var(--radius-card);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -160px; right: -80px;
  width: 480px; height: 420px;
  background: radial-gradient(ellipse at center, rgba(55, 138, 221, 0.35), transparent 68%);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  position: relative;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin: 0 auto 30px;
}

.cta-band .hero-ctas { position: relative; margin-bottom: 0; }

/* ─── Footer ───────────────────────────────────────────────────────────── */

.footer {
  border-top: 0.5px solid var(--border);
  padding: 36px 0 44px;
  margin-top: 96px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copy { font-size: 13px; color: var(--text-hint); }

/* ─── Contact modal ────────────────────────────────────────────────────── */

.modal-overlay[hidden] { display: none; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(26, 26, 46, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; }

.modal {
  position: relative;
  width: min(420px, 100%);
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px -16px rgba(26, 26, 46, 0.35);
  padding: 30px 28px 28px;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-button);
  color: var(--text-hint);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.modal-close:hover { color: var(--text-primary); background-color: var(--border-subtle); }

.modal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.modal-back:hover { color: var(--accent-strong); }

.contact-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.contact-option:hover {
  border-color: var(--accent-border);
  background-color: var(--accent-tint);
  transform: translateY(-1px);
}
.contact-option:last-child { margin-bottom: 0; }

.contact-option-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: var(--accent-tint);
  border: 0.5px solid var(--accent-border);
  border-radius: 8px;
}

.contact-option-text { display: flex; flex-direction: column; gap: 2px; }
.contact-option-text strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.contact-option-text span:not(:first-child) {
  font-size: 13px;
  color: var(--text-muted);
}

.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background-color: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-button);
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.15);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-hint); }

.form-submit { width: 100%; margin-top: 4px; }
.form-submit:disabled { opacity: 0.6; cursor: default; }

.form-error {
  font-size: 12.5px;
  color: var(--confidence-low, #A32D2D);
  margin-bottom: 10px;
}

.contact-success { text-align: center; padding: 12px 0 6px; }
.contact-success .modal-sub { margin-bottom: 0; }
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background-color: #F0FDF4;
  border: 0.5px solid #BBF7D0;
  border-radius: 50%;
  margin-bottom: 14px;
}

/* ─── Scroll reveal ────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }

/* ─── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .card-grid, .steps { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .section { padding: 76px 0; }
  .hero { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sync-tag.live::before { animation: none; }
}
