:root {
  --bg: #0b1018;
  --bg-2: #101722;
  --bg-3: #161e2b;
  --card: #141c28;
  --line: rgba(201, 164, 108, 0.16);
  --line-strong: rgba(201, 164, 108, 0.32);
  --gold: #c9a46c;
  --gold-2: #e8c98a;
  --ink: #f4efe6;
  --muted: #9aa4b5;
  --soft: #6f7a8d;
  --danger: #d46a6a;
  --ok: #7dbe8a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;
  --nav-h: 72px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: #1a1408; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 16, 24, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 0.98rem; letter-spacing: -0.02em; }
.brand-text span { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-cta {
  background: var(--gold) !important; color: #1a1408 !important;
  font-weight: 700; margin-left: 6px;
}
.nav-cta:hover { filter: brightness(1.08); }
.menu-btn {
  display: none; background: transparent; border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 8px 10px; cursor: pointer;
}

/* Hero */
.hero {
  padding: 88px 0 56px;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(201,164,108,0.16), transparent 60%),
    radial-gradient(700px 380px at 0% 20%, rgba(80,120,170,0.14), transparent 55%);
}
.kicker {
  color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.74rem; font-weight: 700; margin: 0 0 16px;
}
h1, h2, h3, .display { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1, .display { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.08; margin: 0 0 18px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 20px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 0.95rem;
}
.btn-primary { background: var(--gold); color: #1a1408; }
.btn-primary:hover { color: #1a1408; filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: #fff; }

.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 48px;
}
.trust article {
  border: 1px solid var(--line); background: rgba(20,28,40,0.6);
  border-radius: var(--radius); padding: 20px 22px;
}
.trust h3 { font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0; }
.trust p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }

.app-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.app-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; min-height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--line-strong); color: inherit; }
.app-card .thumb {
  aspect-ratio: 16/10; object-fit: cover; width: 100%; background: #0a0e14;
}
.app-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.app-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--gold); padding: 4px 8px; border-radius: 999px;
}
.app-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.app-card .more { margin-top: auto; padding-top: 12px; color: var(--gold-2); font-weight: 700; font-size: 0.9rem; }

.app-detail {
  display: grid; grid-template-columns: 160px 1fr; gap: 28px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px; margin-bottom: 18px;
}
.app-detail img {
  width: 160px; height: 160px; border-radius: 28px; object-fit: cover;
  box-shadow: var(--shadow);
}
.app-detail ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }

.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start;
}
.panel {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px 26px;
}

/* Forms */
form { display: grid; gap: 14px; }
label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
input, select, textarea {
  width: 100%; background: #0d131c; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,108,0.15);
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.alert { padding: 12px 14px; border-radius: 12px; display: none; }
.alert.show { display: block; }
.alert.ok { background: rgba(125,190,138,0.12); color: #cde8d2; border: 1px solid rgba(125,190,138,0.3); }
.alert.err { background: rgba(212,106,106,0.12); color: #f0c4c4; border: 1px solid rgba(212,106,106,0.3); }

/* Legal */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { margin-top: 36px; font-size: 1.35rem; }
.legal h3 { margin-top: 22px; font-family: var(--sans); font-size: 1.02rem; }
.legal p, .legal li { color: #d5dbe6; }
.legal .updated { color: var(--soft); margin-bottom: 24px; }
.toc {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 20px; margin: 24px 0 8px;
}
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold-2); }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 28px; background: #080c12; margin-top: 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.site-footer h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.site-footer a, .site-footer p { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-row {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--soft); font-size: 0.82rem;
}

.faq details {
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* AppSafe product page — steel/gold marketing site attached to the studio chrome */
body.page-appsafe {
  background: #1F2428;
  color: #fff;
}
body.page-appsafe h1,
body.page-appsafe h2,
body.page-appsafe h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}
body.page-appsafe .site-header {
  background: rgba(31, 36, 40, 0.92);
  border-bottom-color: #3A3F44;
}
body.page-appsafe .site-header .brand-text strong,
body.page-appsafe .site-footer h3 {
  font-family: var(--sans);
}
body.page-appsafe .appsafe-subnav a {
  text-decoration: none;
}
body.page-appsafe .site-footer {
  background: #12161a;
  margin-top: 0;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: #0e141d; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 20px 20px; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; text-align: center; }
  .trust, .split, .foot-grid, .app-detail { grid-template-columns: 1fr; }
  .app-detail img { width: 96px; height: 96px; border-radius: 22px; }
  .hero { padding: 56px 0 36px; }
  section { padding: 52px 0; }
}
