:root {
  --ink: #0b1020;
  --ink-2: #1b2240;
  --sea: #0f4c5c;
  --sea-2: #2a6f97;
  --gold: #c9a227;
  --sand: #f4f0e8;
  --mist: #e6eef3;
  --card: #fffdf7;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 80% -10%, #e8f4ff 0%, #f8f6f2 35%, #efe9db 100%);
}

.bg-sail {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 600px at 10% 20%, rgba(15,76,92,0.08), transparent 60%),
    radial-gradient(800px 800px at 90% 30%, rgba(201,162,39,0.08), transparent 60%);
  z-index: -1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(250,248,243,0.96);
  border-bottom: 1px solid rgba(15,76,92,0.08);
  box-shadow: 0 10px 24px rgba(11,16,32,0.08);
}

.logo {
  font-family: "Baskerville", "Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.5px;
}

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

.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease;
}

.nav a.active {
  color: var(--sea);
  font-weight: 600;
}

.nav a:hover {
  color: var(--sea);
  background: rgba(15, 76, 92, 0.08);
}

.nav .cta {
  padding: 8px 14px;
  border: 1px solid #bcd1de;
  border-radius: 10px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

section[id] {
  scroll-margin-top: 90px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-family: "Baskerville", "Garamond", serif;
  font-size: 44px;
  margin: 12px 0 10px;
}

.sub {
  font-size: 18px;
  color: var(--ink-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f6f1e6;
  border: 1px solid #e4d7b7;
  color: #7b5a00;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e6decd;
  border-radius: 16px;
  padding: 12px;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5edf3;
}

.strip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(11, 16, 32, 0.55);
}

.strip-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  line-height: 1;
}

.btn.ghost .btn-icon {
  background: rgba(15, 76, 92, 0.08);
}

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn.primary {
  background: var(--sea-2);
  color: white;
  box-shadow: 0 12px 20px rgba(15, 76, 92, 0.18);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 76, 92, 0.24);
}
.btn.ghost {
  background: transparent;
  color: var(--sea);
  border: 1px solid #bcd1de;
}
.btn.ghost:hover {
  transform: translateY(-1px);
  background: rgba(15, 76, 92, 0.06);
}

.note { font-size: 12px; color: #5a6b78; margin-top: 12px; }
.note.success { color: #2f7a4c; }
.note.error { color: #b54842; }

.note a { color: inherit; }

.cta-note {
  font-size: 13px;
  color: rgba(11, 16, 32, 0.6);
  margin-top: 8px;
}

.hero-credits {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: rgba(11, 16, 32, 0.55);
  font-size: 12px;
}

.hero-credits span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.08);
}

.hidden { display: none; }

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(15, 76, 92, 0.18);
}

.btn:focus-visible,
.nav a:focus-visible,
.footer a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(15, 76, 92, 0.5);
  outline-offset: 2px;
}

.nav a:focus-visible,
.footer a:focus-visible {
  outline-offset: 3px;
}

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

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-card {
  background: var(--card);
  border: 1px solid #ece3d2;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(11,16,32,0.08);
  padding: 18px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.mini-title {
  margin-top: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(11, 16, 32, 0.55);
}

.mini-preview {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.mini-card {
  background: #fff;
  border: 1px solid #e5edf3;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.mini-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(11, 16, 32, 0.5);
}

.mini-text {
  font-size: 13px;
  color: var(--ink-2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.badge {
  background: var(--sea);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
}

.card-body { margin-top: 12px; }

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.stat-num { font-size: 28px; font-weight: 700; }
.stat-label { color: #566; }

.divider {
  height: 1px;
  background: #eee2c8;
  margin: 12px 0;
}

.section { margin-top: 72px; padding-top: 8px; }
.section h2 { font-size: 24px; margin-bottom: 14px; }

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tile {
  background: var(--card);
  border: 1px solid #e6decd;
  border-radius: 14px;
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tile.dark {
  background: #0f1e2a;
  color: #f2f6f8;
  border: 1px solid #102634;
}

.tile:hover,
.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(11,16,32,0.12);
}

.tile-title { font-weight: 700; margin-bottom: 6px; }

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

.screen {
  background: #f1f5f8;
  border: 1px solid #d7e2ea;
  border-radius: 14px;
  padding: 14px;
  min-height: 180px;
}

.screen-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #445; margin-bottom: 8px; }
.screen-card {
  background: white;
  border: 1px solid #e5edf3;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
}

.form {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.trust-pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.08);
  color: rgba(11, 16, 32, 0.7);
}

.trust-note {
  margin-top: 8px;
}

label { font-size: 12px; color: #445; text-transform: uppercase; letter-spacing: 1px; }
input, textarea, select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ced8e0;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(15, 76, 92, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}

input.error,
textarea.error,
select.error {
  border-color: rgba(181, 72, 66, 0.8);
  background: #fff6f5;
  box-shadow: 0 0 0 3px rgba(181, 72, 66, 0.12);
}

.field-error {
  font-size: 12px;
  color: #b54842;
  margin-top: -6px;
  margin-bottom: 4px;
}

.footer {
  border-top: 1px solid #e6decd;
  padding: 32px 24px;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-logo {
  font-family: "Baskerville", "Garamond", serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(11, 16, 32, 0.65);
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease;
}

.footer-links a:hover {
  color: var(--sea);
  background: rgba(15, 76, 92, 0.08);
}

.footer-bottom {
  margin-top: 20px;
  font-size: 12px;
}

.page h1 {
  font-family: "Baskerville", "Garamond", serif;
  margin-bottom: 8px;
}

.page h2 { margin-top: 24px; }
.page ul { padding-left: 20px; }

.small { font-size: 13px; }
.muted { color: #6b7b88; }

.reveal { opacity: 0; transform: translateY(12px); transition: all 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none; }
  .tile,
  .hero-card,
  .btn { transition: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .preview { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; gap: 12px; }
  .hero-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
