/* Harshkit — quiet, dark, Apple-like. One accent, lots of space, glass used sparingly. */
:root {
  --bg: #000; --surface: #0b0b0d; --surface-2: #141416;
  --ink: #f5f5f7; --muted: #86868b; --faint: #424245; --line: rgba(255,255,255,.08);
  --accent: #2997ff;           /* Apple's link blue on dark */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25,.1,.25,1);
}
* { box-sizing: border-box; margin: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; min-height: 100svh; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(41,151,255,.35); }

/* A barely-there glow behind the hero — light, not decoration. */
.aura { position: absolute; inset: 0 0 auto 0; height: 110svh; z-index: -1; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; left: 50%; top: 4%; width: min(900px, 120vw); height: 420px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120,100,255,.13), rgba(41,151,255,.06) 60%, transparent 80%); filter: blur(40px); }
.aura i + i { display: none; }

/* Liquid glass: translucent, saturated, a fine lit edge and a soft specular sheen. Used for the nav and a few cards. */
.glass { position: relative; background: rgba(28,28,30,.55);
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255,255,255,.09); border-radius: 22px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 .5px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.6); }
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px circle at var(--x, 50%) var(--y, -20%), rgba(255,255,255,.07), transparent 45%); }
.glass > * { position: relative; z-index: 1; }

/* Nav: a thin glass bar like apple.com */
nav.top { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 52px; padding: 0 max(22px, calc((100vw - 1024px) / 2)); border-radius: 0; border: 0; border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.72); box-shadow: none; font-size: 12px; letter-spacing: -.01em; }
nav.top::before { display: none; }
nav.top .brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
nav.top .brand img { border-radius: 6px; }
nav.top .brand i { font-style: normal; color: var(--muted); font-weight: 400; }
nav.top .links { display: flex; gap: 28px; }
nav.top .links a { color: rgba(245,245,247,.8); font-size: 12.5px; transition: color .2s; }
nav.top .links a:hover { color: #fff; }
nav.top .btn { padding: 5px 13px; font-size: 12.5px; }

/* Buttons: Apple's pill + text-link pair */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 980px;
  font: 400 17px var(--font); letter-spacing: -.022em; cursor: pointer; border: 0; transition: background .2s var(--ease), opacity .2s; }
.btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { background: #0077ed; }
.btn.glassy { background: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; }
.btn.glassy:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn.glassy::after { content: "›"; font-size: 1.15em; margin-left: 2px; }

section { padding: 120px 22px; }
.wrap { max-width: 1024px; margin: 0 auto; }
.tag { display: inline-block; font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: -.02em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(48px, 8vw, 96px); line-height: 1.05; letter-spacing: -.025em; }
h2 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.07; letter-spacing: -.02em; }
.sub { color: var(--muted); font-size: clamp(19px, 2vw, 24px); line-height: 1.38; letter-spacing: -.02em; max-width: 680px; }
em { font-style: normal; color: var(--muted); }

footer.site { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 22px 40px; color: var(--muted); font-size: 12px; letter-spacing: -.01em; }
footer.site .inner { max-width: 1024px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site nav a { margin-right: 18px; color: rgba(245,245,247,.75); }
footer.site nav a:hover { color: #fff; text-decoration: underline; }
footer.site .giant { display: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Legal pages: Apple's plain document style */
.doc { max-width: 760px; margin: 0 auto; padding: 80px 22px 100px; }
.doc .glass { background: transparent; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
.doc .glass::before { display: none; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin: 8px 0 10px; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 24px; line-height: 1.17; margin: 44px 0 10px; }
.doc p, .doc li { color: #d2d2d7; font-size: 17px; line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin-top: 8px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  nav.top .links { display: none; }
  section { padding: 90px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, nav.top { background: rgba(22,22,24,.96); }
}

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea { font: 17px var(--font); color: var(--ink); background: #0f0f11; border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.form textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(41,151,255,.18); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .note { font-size: 13px; color: var(--muted); }
.form .status { font-size: 15px; min-height: 22px; }
.form .status.ok { color: #30d158; } .form .status.err { color: #ff9f0a; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }

/* Articles */
.prose { max-width: 720px; margin: 0 auto; padding: 70px 22px 100px; }
.prose .meta { color: var(--muted); font-size: 14px; }
.prose h1 { font-size: clamp(38px, 6vw, 56px); margin: 10px 0 18px; }
.prose h2 { font-size: 28px; margin: 44px 0 12px; line-height: 1.15; }
.prose p, .prose li { color: #d2d2d7; font-size: 19px; line-height: 1.6; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 24px; margin-top: 10px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); } .prose a:hover { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); color: #d2d2d7; }
.prose th { color: var(--muted); font-weight: 600; font-size: 13px; }
.prose code, .prose pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; background: var(--surface-2); border-radius: 8px; }
.prose code { padding: 2px 6px; } .prose pre { padding: 16px; overflow-x: auto; margin: 16px 0; }
.prose .lede { font-size: 22px; color: var(--muted); }
