:root {
  --ink: #0d1729;
  --ink-soft: #344157;
  --navy: #101b2e;
  --navy-2: #172840;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --gold: #c79b4a;
  --gold-light: #ecd59e;
  --line: #e7e0d4;
  --success: #176b48;
  --danger: #a13131;
  --shadow: 0 20px 60px rgba(13, 23, 41, 0.12);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button, .button { touch-action: manipulation; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  transform: translateY(-160%); background: white; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  border-bottom: 1px solid rgba(16, 27, 46, 0.08);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-word { font-size: 15px; font-weight: 850; letter-spacing: .085em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; }
.menu-button span, .menu-button::before, .menu-button::after {
  display: block; width: 22px; height: 2px; margin: 5px auto; content: ""; background: var(--ink); transition: .2s ease;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 750;
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--navy); background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.button-primary:hover { background: linear-gradient(135deg, #f7e6b7, #d1a356); }
.button-dark { color: white; background: var(--navy); }
.button-outline { color: var(--ink); border-color: rgba(13, 23, 41, .22); background: transparent; }
.button-light { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.button-block { width: 100%; }

.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1.02fr .98fr; background: var(--navy); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 62px max(40px, calc((100vw - var(--max))/2)); padding-right: 56px; color: white; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-light); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; font-weight: 500; }
h1 { max-width: 690px; margin-top: 24px; font-size: clamp(48px, 5.3vw, 76px); letter-spacing: -.045em; }
.hero-copy p { max-width: 600px; margin: 26px 0 32px; color: rgba(255,255,255,.76); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 26px; color: rgba(255,255,255,.52); font-size: 12px; }
.hero-media { position: relative; min-height: 620px; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, transparent 24%), linear-gradient(0deg, rgba(16,27,46,.25), transparent 45%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }

.section { padding: 104px 0; }
.section-title { max-width: 660px; margin-bottom: 48px; }
.section-title h2 { margin-top: 12px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.035em; }
.section-title p { margin: 18px 0 0; color: var(--ink-soft); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(13, 23, 41, .05); }
.card-number { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--navy); background: var(--gold-light); border-radius: 50%; font-weight: 850; }
.card h3 { margin-top: 36px; font-size: 25px; }
.card p { margin: 13px 0 0; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-panel { padding: 52px; color: white; background: var(--navy); border-radius: 32px; box-shadow: var(--shadow); }
.feature-panel h2 { margin-top: 14px; font-size: clamp(38px, 4.8vw, 58px); }
.feature-panel p { color: rgba(255,255,255,.7); }
.ticks { display: grid; gap: 15px; margin: 28px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: "✓"; display: grid; place-items: center; flex: 0 0 24px; height: 24px; color: var(--navy); background: var(--gold-light); border-radius: 50%; font-size: 13px; font-weight: 900; }
.quote { padding: 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; }
.quote cite { display: block; margin-top: 18px; color: var(--ink-soft); font-style: normal; }
.cta { padding: 76px; color: white; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: 32px; text-align: center; }
.cta h2 { font-size: clamp(40px, 5vw, 62px); }
.cta p { max-width: 580px; margin: 18px auto 28px; color: rgba(255,255,255,.7); }

.page-hero { padding: 96px 0 70px; background: var(--navy); color: white; }
.page-hero h1 { max-width: 820px; }
.page-hero p { max-width: 680px; margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: 18px; }
.prose { max-width: 820px; padding: 80px 0 110px; }
.prose h2 { margin: 48px 0 14px; font-size: 31px; }
.prose h3 { margin: 32px 0 10px; font-size: 23px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: #7a551a; }
.prose .meta { margin: 0 0 36px; font-size: 14px; color: #6b7280; }
.notice { padding: 20px 22px; background: white; border-left: 4px solid var(--gold); border-radius: 12px; }

.auth-page { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; min-height: 740px; color: white; background: var(--navy); overflow: hidden; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% center; opacity: .62; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,27,46,.92), rgba(16,27,46,.06) 70%); }
.auth-art-copy { position: absolute; z-index: 2; right: 10%; bottom: 10%; left: 10%; }
.auth-art-copy h1 { font-size: clamp(44px, 5vw, 70px); }
.auth-art-copy p { max-width: 560px; color: rgba(255,255,255,.76); }
.auth-panel { display: grid; place-items: center; padding: 64px 34px; background: white; }
.auth-card { width: min(100%, 470px); }
.auth-card h1 { font-size: 46px; }
.auth-card > p { margin: 14px 0 30px; color: var(--ink-soft); }
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 760; }
.field input {
  width: 100%; height: 52px; padding: 0 15px; color: var(--ink); background: #fff;
  border: 1px solid #cfd4dc; border-radius: 12px; outline: none;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199,155,74,.16); }
.password-row { position: relative; }
.password-row input { padding-right: 70px; }
.password-toggle { position: absolute; top: 6px; right: 7px; height: 40px; padding: 0 10px; border: 0; color: var(--ink-soft); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 13px; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--navy); }
.form-help { margin: -8px 0 0; color: #6b7280; font-size: 12px; }
.form-message { display: none; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.form-message.visible { display: block; }
.form-message.error { color: var(--danger); background: #fff0f0; }
.form-message.success { color: var(--success); background: #eaf8f1; }
.auth-switch { margin-top: 24px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.auth-switch a { color: var(--ink); font-weight: 800; }

.account-shell { min-height: calc(100vh - 76px); padding: 90px 0 120px; }
.account-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.account-card { padding: 34px; background: white; border: 1px solid var(--line); border-radius: 22px; }
.avatar { display: grid; width: 74px; height: 74px; place-items: center; color: var(--navy); background: var(--gold-light); border-radius: 50%; font-family: Georgia, serif; font-size: 28px; }
.account-card h1 { margin-top: 22px; font-size: 40px; }
.detail-list { display: grid; gap: 16px; margin-top: 26px; }
.detail { padding-top: 14px; border-top: 1px solid var(--line); }
.detail span { display: block; color: #6b7280; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail strong { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; padding: 7px 11px; color: var(--success); background: #eaf8f1; border-radius: 999px; font-size: 12px; font-weight: 800; }

.site-footer { padding: 68px 0 26px; color: rgba(255,255,255,.72); background: #09111f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 50px; }
.footer-grid .brand { color: white; }
.footer-grid p { max-width: 430px; }
.footer-col h3 { color: white; font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; margin: 9px 0; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11); font-size: 12px; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; display: none; align-items: stretch; gap: 0; padding: 20px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: grid; }
  .nav-links > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-actions { padding-top: 16px; }
  .nav-actions .button { flex: 1; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 72px max(24px, calc((100vw - var(--max))/2)); }
  .hero-media { min-height: 520px; order: -1; }
  .hero-media::after { background: linear-gradient(0deg, var(--navy), transparent 55%); }
  .cards { grid-template-columns: 1fr; }
  .split, .auth-page, .account-grid { grid-template-columns: 1fr; }
  .auth-art { min-height: 470px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-word { font-size: 12px; letter-spacing: .06em; }
  .hero-copy { padding: 56px 22px 74px; }
  .hero-media { min-height: 390px; }
  h1 { font-size: 48px; }
  .section { padding: 74px 0; }
  .feature-panel, .card, .quote { padding: 28px; }
  .cta { padding: 48px 24px; }
  .page-hero { padding: 72px 0 54px; }
  .prose { padding: 54px 0 78px; }
  .auth-art { min-height: 360px; }
  .auth-panel { padding: 48px 20px 70px; }
  .auth-card h1 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
