:root {
  --bg: #020913;
  --surface: #081a29;
  --gold: #c98c39;
  --gold-light: #e7bb70;
  --gold-pale: #f1d69b;
  --ivory: #f2e8d6;
  --text: #e8dece;
  --muted: #b9ad9d;
  --line: rgba(218, 160, 72, .34);
  --line-soft: rgba(255, 255, 255, .075);
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 8%, rgba(28, 73, 105, .25), transparent 28%),
    radial-gradient(circle at 89% 18%, rgba(201, 140, 57, .08), transparent 24%),
    linear-gradient(180deg, #06131f 0%, #03101a 46%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle, rgba(231, 187, 112, .26) 0 1px, transparent 1.5px),
    linear-gradient(30deg, transparent 49.8%, rgba(231, 187, 112, .035) 50%, transparent 50.2%);
  background-size: 104px 104px, 180px 180px;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold-pale); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; border-radius: 7px; background: var(--gold-pale); color: #171006; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { color: #171006; transform: translateY(0); }

h1, h2, h3 {
  margin: 0;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}
h1 { font-size: clamp(4rem, 7.4vw, 6.9rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.15rem, 4vw, 3.55rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }
.kicker { margin: 0; color: var(--gold-light); font-size: .73rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.lead { margin: 16px auto 0; color: var(--muted); font-size: 1.08rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(2, 9, 19, .94); backdrop-filter: blur(18px); }
.navbar { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand-logo { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; line-height: 0; }
.brand-logo .brand-crest { width: 52px; height: 56px; flex: 0 0 auto; object-fit: contain; }
.brand-logo .brand-wordmark { width: 188px; height: auto; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 27px); white-space: nowrap; }
.desktop-nav a { position: relative; color: #d4c6b2; font-family: Georgia, "Times New Roman", serif; font-size: .94rem; }
.desktop-nav a:not(.nav-cta)::after { content: ""; position: absolute; right: 50%; bottom: -10px; left: 50%; height: 1px; background: var(--gold-light); transition: .18s ease; }
.desktop-nav a:hover::after, .desktop-nav a.is-current::after { right: 0; left: 0; }
.nav-cta { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid rgba(231, 187, 112, .62); border-radius: 8px; background: rgba(201, 140, 57, .06); color: var(--gold-pale) !important; }
.mobile-menu { position: relative; display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--gold-pale); font-weight: 700; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-box { position: absolute; top: 48px; right: 0; width: min(280px, calc(100vw - 28px)); padding: 12px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: #071724; box-shadow: var(--shadow); }
.mobile-menu-box a { padding: 10px 12px; border-radius: 7px; color: #d8ccbc; }
.mobile-menu-box a:hover { background: rgba(255, 255, 255, .045); }

/* Hero */
.hero { padding: 58px 0 34px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); gap: clamp(42px, 6vw, 78px); align-items: center; }
.hero-copy { min-width: 0; padding: 8px 0 24px; }
.hero-brand { width: 100%; max-width: 620px; text-align: center; }
.crest-wrap { width: 188px; margin: 0 auto 20px; }
.crest-wrap img { width: 100%; height: auto; object-fit: contain; }
.hero-title { margin-top: 6px; color: var(--ivory); text-shadow: 0 2px 28px rgba(0, 0, 0, .35); }
.gold-rule { width: min(320px, 72%); height: 15px; margin: 13px auto 17px; display: flex; align-items: center; }
.gold-rule::before, .gold-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.gold-rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.gold-rule span { width: 9px; height: 9px; margin: 0 10px; border: 1px solid var(--gold-light); transform: rotate(45deg); }
.hero-headline { color: var(--gold-pale); font-size: clamp(2rem, 3.4vw, 3.15rem); }
.hero-intro { margin: 16px 0 9px; color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.hero-description { max-width: 620px; margin: 0; color: #c9beaf; font-size: 1.01rem; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.btn { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; letter-spacing: .015em; transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { border-color: #efd49d; background: linear-gradient(180deg, #efd091, #c98f3d); color: #261706; box-shadow: 0 13px 30px rgba(0, 0, 0, .25); }
.btn-secondary { border-color: rgba(231, 187, 112, .58); background: rgba(7, 24, 38, .72); color: var(--gold-pale); }
.hero-visual { position: relative; width: min(100%, 530px); margin: 0 auto; padding: 13px; border: 1px solid rgba(231, 187, 112, .62); border-radius: 24px; background: rgba(5, 19, 31, .82); box-shadow: var(--shadow); }
.hero-visual::before { content: ""; position: absolute; inset: 7px; z-index: 1; pointer-events: none; border: 1px solid rgba(231, 187, 112, .28); border-radius: 18px; }
.hero-visual img { width: 100%; height: auto; object-fit: contain; border-radius: 17px; }
.frame-star { position: absolute; left: 50%; z-index: 2; padding: 0 9px; color: var(--gold-light); background: #06131f; font-size: 1.55rem; line-height: 1; transform: translateX(-50%); }
.frame-star-top { top: -12px; }
.frame-star-bottom { bottom: -12px; }

/* Feature cards */
.features { padding: 30px 0 72px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-card { min-width: 0; padding: 26px 20px 24px; text-align: center; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(180deg, rgba(12, 38, 58, .78), rgba(4, 17, 28, .94)); box-shadow: inset 0 0 46px rgba(0, 0, 0, .15); transition: transform .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(231, 187, 112, .66); }
.feature-icon { width: 108px; height: 108px; margin: 0 auto 14px; display: grid; place-items: center; }
.feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-card h3 { color: var(--gold-pale); }
.mini-rule { width: 80px; height: 1px; margin: 13px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.feature-card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Overview */
.overview { padding: 76px 0 82px; border-block: 1px solid var(--line); background: rgba(7, 24, 38, .32); }
.section-head { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-top: 7px; color: var(--gold-pale); }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.overview-card { position: relative; min-width: 0; min-height: 342px; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(10, 32, 50, .82), rgba(4, 16, 27, .96)); }
.overview-card::after { content: ""; position: absolute; right: -78px; bottom: -80px; width: 190px; height: 190px; border: 1px solid rgba(231, 187, 112, .11); border-radius: 50%; }
.overview-symbol { width: 100px; height: 100px; margin-bottom: 25px; display: grid; place-items: center; }
.overview-symbol img { width: 100%; height: 100%; object-fit: contain; }
.card-number { position: absolute; top: 23px; right: 25px; margin: 0; color: rgba(231, 187, 112, .48); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.overview-card h3 { margin-bottom: 13px; color: var(--gold-pale); }
.overview-card p:not(.card-number) { position: relative; z-index: 1; margin: 0; color: var(--muted); }

/* Beta */
.beta { padding: 68px 0; }
.beta-panel { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 42px; align-items: center; padding: 34px 42px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, rgba(13, 40, 61, .9), rgba(4, 15, 25, .96)); box-shadow: var(--shadow); }
.beta-crest { width: 200px; justify-self: center; }
.beta-crest img { width: 100%; height: auto; object-fit: contain; }
.beta-copy { min-width: 0; }
.beta-panel h2 { margin: 7px 0 13px; color: var(--gold-pale); }
.beta-panel p:not(.kicker) { max-width: 780px; margin: 0; color: var(--muted); }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .025); color: #d5c8b6; font-size: .86rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8cc99c; box-shadow: 0 0 0 4px rgba(140, 201, 156, .08); }

/* Policy links */
.policy-rail { padding: 0 0 72px; }
.policy-box { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7, 22, 35, .82); }
.section-head.compact { margin-bottom: 26px; }
.section-head.compact h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.policy-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.policy-link { position: relative; min-width: 0; min-height: 132px; padding: 20px 38px 20px 17px; display: flex; flex-direction: column; justify-content: center; background: #071521; }
.policy-link:hover { background: #0a1d2d; }
.policy-link strong { color: var(--gold-pale); font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem; }
.policy-link span { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.policy-link b { position: absolute; top: 50%; right: 15px; color: var(--gold-light); transform: translateY(-50%); }

/* Footer */
.site-footer { padding: 44px 0 28px; border-top: 1px solid var(--line); background: #020811; }
.footer-top { display: grid; grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr)); gap: 34px; }
.footer-logo { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 12px; line-height: 0; }
.footer-logo .brand-crest { width: 64px; height: 68px; flex: 0 0 auto; object-fit: contain; }
.footer-logo .brand-wordmark { width: 190px; height: auto; object-fit: contain; }
.footer-brand p { max-width: 300px; margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.footer-col a { display: block; padding: 3px 0; color: #bdb3a5; font-size: .9rem; }
.footer-col .footer-heading { margin-bottom: 9px; padding: 0; color: var(--gold-pale); font-weight: 700; }
.footer-col .footer-heading:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 31px; padding-top: 20px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); color: #8f877d; font-size: .84rem; }
.footer-bottom a { color: #a99d8d; overflow-wrap: anywhere; }

/* Legal and support pages */
.content { max-width: 900px; padding: 72px 0 96px; }
.content.content-wide { max-width: 1040px; }
.eyebrow { color: var(--gold-light); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.content h1 { margin-top: 8px; font-size: clamp(3rem, 6vw, 5rem); }
.content h2 { margin-top: 45px; padding-top: 15px; border-top: 1px solid var(--line-soft); color: #ead0a0; font-size: 1.82rem; }
.content h3 { margin-top: 26px; color: #ead0a0; font-size: 1.27rem; }
.content h2, .content h3 { scroll-margin-top: 100px; }
.content p, .content li { color: #d3cabd; }
.content ul, .content ol { padding-left: 22px; }
.content li + li { margin-top: 7px; }
.content code { padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--gold-pale); font-size: .93em; overflow-wrap: anywhere; }
.content blockquote { margin: 24px 0; padding: 1px 20px; border-left: 3px solid var(--gold); background: rgba(201, 140, 57, .06); }
.small { color: var(--muted); font-size: .92rem; }
.note { margin: 24px 0; padding: 18px 20px; border-left: 3px solid var(--gold); border-radius: 8px; background: rgba(201, 140, 57, .07); color: #d9cdbc; }
.danger { padding: 20px; border: 1px solid rgba(218, 166, 82, .3); border-radius: 10px; background: rgba(101, 51, 16, .13); }
.hero-panel { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 28, 44, .72); }
.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line-soft); border-radius: 10px; }
table { width: 100%; min-width: 690px; border-collapse: collapse; background: rgba(255, 255, 255, .018); }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
th { color: var(--gold-pale); font-size: .9rem; }
td { color: #d0c7b8; }

/* Legal center, contacts and FAQ */
.version-panel { margin: 24px 0 30px; padding: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.version-item { min-width: 0; padding: 12px 14px; background: #071521; }
.version-item span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.version-item strong { color: var(--gold-pale); font-size: .9rem; overflow-wrap: anywhere; }
.legal-grid, .contact-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.legal-card, .contact-card { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(12, 38, 58, .72), rgba(4, 17, 28, .92)); }
.legal-card { display: flex; flex-direction: column; }
.legal-card h2, .contact-card h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 1.45rem; }
.legal-card p, .contact-card p { margin: 0; }
.legal-card .card-link { margin-top: auto; padding-top: 17px; font-weight: 800; }
.document-status { display: inline-flex; align-items: center; width: max-content; max-width: 100%; margin-bottom: 13px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-pale); font-size: .72rem; font-weight: 800; }
.contact-email { display: inline-block; margin-top: 13px; font-weight: 800; overflow-wrap: anywhere; }
.faq-list { margin-top: 30px; display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 11px; background: rgba(7, 22, 35, .78); }
.faq-list summary { min-height: 52px; padding: 13px 48px 13px 17px; display: flex; align-items: center; cursor: pointer; color: var(--gold-pale); font-weight: 800; }
.faq-answer { padding: 0 17px 17px; }
.faq-answer p:first-child { margin-top: 0; }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0; }
.inline-links a { font-weight: 800; }
.store-status { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.store-chip { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, .025); }
.prose-table table { min-width: 760px; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: 38px; }
  .crest-wrap { width: 160px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 0; display: grid; grid-template-columns: 118px 1fr; gap: 22px; }
  .overview-symbol { margin: 0; }
  .policy-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1.2fr repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .wrap { width: min(var(--max), calc(100% - 30px)); }
  .navbar { min-height: 70px; }
  .brand-logo .brand-crest { width: 40px; height: 43px; }
  .brand-logo .brand-wordmark { width: 142px; }
  .hero { padding: 40px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { text-align: center; }
  .hero-brand { margin-inline: auto; }
  .crest-wrap { width: 148px; margin-inline: auto; }
  .gold-rule { margin-inline: auto; }
  .hero-description { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-visual { width: min(100%, 500px); }
  .feature-grid { grid-template-columns: 1fr; }
  .overview { padding: 58px 0 62px; }
  .overview-card { display: block; padding: 26px; }
  .overview-symbol { margin-bottom: 22px; }
  .beta-panel { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; text-align: center; }
  .beta-crest { width: 155px; }
  .beta-panel .actions, .status-row { justify-content: center; }
  .policy-box { padding: 24px 18px; }
  .policy-links { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .version-panel { grid-template-columns: 1fr 1fr; }
  .legal-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-col a { min-height: 42px; display: flex; align-items: center; }
}

@media (max-width: 470px) {
  .brand-logo { gap: 7px; }
  .brand-logo .brand-crest { width: 36px; height: 39px; }
  .brand-logo .brand-wordmark { width: 128px; }
  h1 { font-size: clamp(3.7rem, 19vw, 5rem); }
  .content h1 { font-size: clamp(2.3rem, 11.5vw, 3rem); overflow-wrap: anywhere; }
  .hero-headline { font-size: 1.95rem; }
  .btn { width: 100%; }
  .feature-card { padding-inline: 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .version-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
