:root {
  --royal: #112250;
  --sapphire: #3c507d;
  --sand: #e0c58f;
  --sand-deep: #b8995a;
  --swan: #f5f0e9;
  --shell: #d9cbc2;
  --ink: #1b2440;
  --muted: #5b6480;
  --white: #fffdf9;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--swan);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sapphire); }
a:hover { color: var(--royal); }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(17, 34, 80, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 197, 143, 0.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--swan); }
.brand:hover { color: var(--swan); }
.monogram {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--sand);
  font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 1px;
  color: var(--sand);
}
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: 3px; text-transform: uppercase; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--shell); text-decoration: none; font-size: 14px; letter-spacing: .5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sand); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(60, 80, 125, 0.9), transparent 70%),
    radial-gradient(600px 300px at 0% 110%, rgba(224, 197, 143, 0.12), transparent 70%),
    var(--royal);
  color: var(--swan);
  padding: 110px 0 120px;
}
.hero::after {
  content: ""; position: absolute; inset: 24px;
  border: 1px solid rgba(224, 197, 143, 0.28); border-radius: 26px; pointer-events: none;
}
.hero .wrap { width: min(1080px, 100% - 112px); position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--sand); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: 1px;
  margin: 0 0 22px;
}
.hero h1 em { font-style: italic; color: var(--sand); }
.hero p.lead { max-width: 560px; font-size: 18px; color: var(--shell); margin: 0 0 36px; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--sand); color: var(--royal); }
.btn-gold:hover { background: #ead3a4; color: var(--royal); }
.btn-ghost { border: 1px solid rgba(224, 197, 143, 0.55); color: var(--swan); margin-left: 10px; }
.btn-ghost:hover { color: var(--sand); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.5vw, 50px); margin: 0 0 12px; color: var(--royal); }
.section-intro { color: var(--muted); max-width: 620px; margin: 0 0 48px; }
.gold-rule { width: 56px; height: 2px; background: var(--sand); border: 0; margin: 0 0 22px; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.app-card {
  background: var(--white); border: 1px solid var(--shell); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 18px 40px -28px rgba(17, 34, 80, 0.45);
}
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 16px -8px rgba(17,34,80,.5); }
.app-icon.placeholder {
  display: grid; place-items: center; background: var(--royal); color: var(--sand);
  font-family: var(--serif); font-size: 30px;
}
.app-card h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 0; color: var(--royal); line-height: 1.1; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .6px; padding: 4px 12px; border-radius: 999px; }
.tag-soon { background: rgba(224, 197, 143, 0.35); color: #6e5520; }
.tag-dev { background: rgba(60, 80, 125, 0.12); color: var(--sapphire); }
.app-card p { margin: 0; color: var(--muted); }
.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.features li { padding-left: 22px; position: relative; font-size: 15px; }
.features li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--sand-deep); }
.app-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 600; }
.app-card.dashed { border-style: dashed; background: transparent; box-shadow: none; }

.about { background: var(--royal); color: var(--swan); }
.about .section-title { color: var(--swan); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about p { color: var(--shell); }
.values { display: grid; gap: 18px; }
.value { border-left: 2px solid var(--sand); padding: 4px 0 4px 18px; }
.value strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--sand); }
.value span { color: var(--shell); font-size: 15px; }

.contact-box {
  background: var(--white); border: 1px solid var(--shell); border-radius: var(--radius);
  padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.contact-box h2 { margin: 0 0 6px; }
.contact-box p { margin: 0; color: var(--muted); }

/* ---------- Legal / docs pages ---------- */
.page-hero { background: var(--royal); color: var(--swan); padding: 72px 0 60px; }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 60px); margin: 0 0 8px; }
.page-hero p { margin: 0; color: var(--shell); }
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--royal); margin: 48px 0 10px; }
.doc h3 { font-size: 17px; color: var(--royal); margin: 28px 0 6px; }
.doc p, .doc li { color: #2e3654; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.toc { background: var(--white); border: 1px solid var(--shell); border-radius: var(--radius); padding: 22px 28px; }
.toc strong { display: block; margin-bottom: 6px; color: var(--royal); }
.toc ol { margin: 0; padding-left: 20px; }
.note { background: rgba(224, 197, 143, 0.22); border-left: 3px solid var(--sand-deep); padding: 14px 18px; border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--shell); vertical-align: top; }
table.data th { color: var(--royal); background: var(--white); }
.table-scroll { overflow-x: auto; }

details { background: var(--white); border: 1px solid var(--shell); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--royal); }
details p { margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1738; color: var(--shell); padding: 48px 0 36px; font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer a { color: var(--shell); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(217, 203, 194, 0.18); color: #9aa3bd; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
  .nav a.hide-sm { display: none; }
  .brand { gap: 10px; }
  .monogram { width: 34px; height: 34px; font-size: 15px; }
  .brand-name { font-size: 16px; letter-spacing: 1.5px; white-space: nowrap; }
  .nav a[href="/#apps"] { display: none; }
  .app-card { padding: 22px; }
  .hero { padding: 80px 0 90px; }
  .hero::after { inset: 12px; }
  .hero .wrap { width: calc(100% - 64px); }
  .btn-ghost { margin: 12px 0 0; }
  section { padding: 72px 0; }
  .about-grid, .contact-box { grid-template-columns: 1fr; }
  .contact-box { padding: 28px; }
}
