/* SKEight — shared site styles */
:root {
  --bg: #141210;
  --bg-soft: #1a1612;
  --surface: #1e1914;
  --surface-2: #221c16;
  --ink: #f5f0e6;
  --ink-muted: rgba(245, 240, 230, 0.62);
  --ink-faint: rgba(245, 240, 230, 0.38);
  --ink-quiet: rgba(245, 240, 230, 0.18);
  --hairline: rgba(184, 137, 58, 0.18);
  --hairline-strong: rgba(184, 137, 58, 0.35);

  /* gold — controllable via tweak */
  --gold: #b8893a;
  --gold-light: #d4ad60;
  --gold-deep: #8a6629;
  --gold-tint: rgba(184, 137, 58, 0.08);

  --serif: "Cormorant Garamond", "EB Garamond", "Apple Garamond", Georgia, serif;
  --sans: "Manrope", "Söhne", "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --tc: "Noto Serif TC", "Songti TC", "Source Han Serif TC", serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: rgba(184,137,58,0.45); color: #fff; }

/* type system */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}
.tc { font-family: var(--tc); font-weight: 400; }
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  padding-bottom: 0.08em;
}
.display em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.018em;
}
.subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.012em;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 58ch;
  font-weight: 350;
}
.body-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.small {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section {
  padding: clamp(72px, 11vw, 140px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--hairline); }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 18, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(245, 240, 230, 0.12), 0 6px 16px rgba(0, 0, 0, 0.26);
}
.brand .tc {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.18em;
  margin-left: 6px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--ink-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-lang {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.nav-lang:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #1a1208;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  background: var(--ink);
  color: #0e0c0a;
  border-radius: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: transform 0.2s, background 0.2s;
}
.appstore-btn:hover { transform: translateY(-1px); background: #fff; }
.appstore-btn .as-sub {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.55;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 3px;
  white-space: nowrap;
}
.appstore-btn .as-main {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
}

/* dividers + marks */
.hairline { height: 1px; background: var(--hairline); border: 0; }
.label-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--gold);
}
.label-row .tc { font-size: 13px; opacity: 0.8; letter-spacing: 0.1em; }

/* card */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 32px;
  position: relative;
}
.card-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  opacity: 0.4;
}
.card-corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.card-corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.card-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.card-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* real app screenshots */
.real-phone-frame {
  width: min(100%, 390px);
  aspect-ratio: 1320 / 2868;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(184, 137, 58, 0.28);
  background: #080d13;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42), 0 0 0 8px rgba(255, 255, 255, 0.02);
}
.real-phone-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.real-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.real-shot-card {
  display: grid;
  gap: 12px;
  justify-items: center;
}
.real-shot-caption {
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* footer */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.footer-bottom .tc { color: var(--ink-muted); letter-spacing: 0.2em; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  .real-shot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .display {
    font-size: clamp(40px, 11.4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
  }
  .hero-grid > *,
  .two-col > * {
    min-width: 0;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .hero-stats .cap {
    font-size: 9.5px;
    letter-spacing: 0.12em;
    white-space: normal;
  }
  .hero-stats .serif {
    font-size: 32px !important;
  }
  .real-phone-frame {
    width: min(100%, 320px) !important;
    border-radius: 28px;
  }
}

/* doc page typography (privacy/terms/support) */
.doc-wrap { padding: 80px 0 120px; max-width: 720px; }
.doc-wrap h1 { font-family: var(--serif); font-size: clamp(42px, 5vw, 64px); margin-bottom: 12px; letter-spacing: -0.02em; }
.doc-wrap h2 { font-family: var(--serif); font-size: 26px; margin-top: 56px; margin-bottom: 12px; color: var(--ink); letter-spacing: -0.01em; }
.doc-wrap h3 { font-family: var(--sans); font-weight: 500; font-size: 15px; margin-top: 28px; margin-bottom: 8px; color: var(--gold-light); letter-spacing: 0.04em; }
.doc-wrap p, .doc-wrap li { color: var(--ink-muted); font-size: 16px; line-height: 1.72; }
.doc-wrap p { margin: 0 0 16px; }
.doc-wrap ul { padding-left: 20px; }
.doc-wrap a { color: var(--gold-light); border-bottom: 1px solid var(--hairline-strong); }
.doc-wrap a:hover { color: var(--gold); }
.doc-meta {
  display: flex; gap: 18px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 40px;
}
.doc-meta::before {
  content: ""; width: 22px; height: 1px; background: var(--gold); opacity: 0.6;
}

/* utility */
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.glow-edge {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, rgba(184,137,58,0.18), transparent 60%);
  mix-blend-mode: screen;
}
