/* ============================================================
   Glassmark — glassmark.net
   Editorial-serif headlines, native-glass surfaces, aurora wash.
   Dependency-free. Light + dark via prefers-color-scheme.
   ============================================================ */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --hairline: rgba(0, 0, 0, 0.08);
  --text: #1c1c1e;
  --text-secondary: #6e6e73;
  --accent: #0a84ff;
  --accent-ink: #ffffff;
  --aurora-1: rgba(94, 139, 255, 0.45);
  --aurora-2: rgba(40, 200, 255, 0.34);
  --shadow-lg: 0 40px 80px -28px rgba(20, 30, 60, 0.38), 0 12px 32px -18px rgba(20, 30, 60, 0.28);
  --shadow-card: 0 8px 32px rgba(20, 30, 60, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.45);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0f;
    --surface: #16181d;
    --glass-bg: rgba(30, 32, 38, 0.55);
    --glass-border: rgba(255, 255, 255, 0.09);
    --hairline: rgba(255, 255, 255, 0.10);
    --text: #f2f2f7;
    --text-secondary: #9a9aa0;
    --accent: #0a84ff;
    --aurora-1: rgba(70, 120, 255, 0.30);
    --aurora-2: rgba(30, 190, 255, 0.18);
    --shadow-lg: 0 50px 90px -30px rgba(0, 0, 0, 0.65), 0 14px 40px -20px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 10px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 6px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 4.7rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.is-stuck {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--hairline);
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.3);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.12rem; color: var(--text); }
.brand img { border-radius: 7px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: clamp(14px, 2.5vw, 30px); margin-left: auto; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 980px;
  font-weight: 600; font-size: 1rem; font-family: var(--font-sans);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-ghost:hover { background: var(--glass-bg); }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; margin-left: 4px; }

/* ---------- Layout helpers ---------- */
main { display: block; }
.hero-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
section { padding-inline: var(--pad); }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding-top: clamp(56px, 9vw, 96px); padding-bottom: clamp(40px, 7vw, 80px); }
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.hero-title { margin-bottom: 24px; }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--text-secondary); max-width: 40ch; margin: 0 auto 34px; }
.hero-lede strong { color: var(--text); font-weight: 600; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-meta { margin-top: 18px; font-size: 0.86rem; color: var(--text-secondary); }

.aurora { position: absolute; inset: -10% -10% 30% -10%; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 62vw; height: 62vw; max-width: 820px; max-height: 820px;
  border-radius: 50%; filter: blur(90px); opacity: 0.85;
}
.aurora::before { background: radial-gradient(circle, var(--aurora-1), transparent 62%); top: -22%; left: -12%; }
.aurora::after  { background: radial-gradient(circle, var(--aurora-2), transparent 62%); top: -8%; right: -14%; }
@media (prefers-reduced-motion: no-preference) {
  .aurora::before { animation: drift 22s ease-in-out infinite alternate; }
  .aurora::after  { animation: drift 26s ease-in-out infinite alternate-reverse; }
}
@keyframes drift { to { transform: translate3d(5%, 4%, 0) scale(1.1); } }

/* Hero headline ink-in underline */
.hero-title { position: relative; display: inline-block; }
.hero-title::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -0.12em; height: 0.06em; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.22,.61,.36,1) .25s;
}
.hero-title.is-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .hero-title::after { transition: none; transform: scaleX(1); } }

/* Hero screenshot */
.hero-shot-wrap { max-width: 1040px; margin: clamp(40px, 6vw, 72px) auto 0; perspective: 1400px; position: relative; z-index: 1; }
.shot {
  border-radius: 20px;
  padding: clamp(8px, 1.5vw, 20px);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-lg);
}
.shot img { width: 100%; height: auto; display: block; }
.shot--hero { transition: transform .3s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.release-note { margin-top: 18px; text-align: center; font-size: 0.86rem; color: var(--text-secondary); }

/* ---------- Trust strip ---------- */
.trust {
  max-width: var(--maxw); margin: clamp(48px, 8vw, 80px) auto 0;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--text);
}
.chip svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--surface); }
}

/* ---------- Features ---------- */
.features { max-width: var(--maxw); margin: 0 auto; padding-top: clamp(72px, 12vw, 140px); }
.feature {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
}
.feature--reverse .feature-copy { order: 2; }
.feature--reverse .shot { order: 1; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy p { color: var(--text-secondary); font-size: 1.06rem; }

/* ---------- More grid ---------- */
.more { max-width: var(--maxw); margin: 0 auto; padding-top: clamp(72px, 12vw, 130px); text-align: center; }
.more-title { margin-bottom: clamp(40px, 6vw, 64px); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.more-item { padding: 28px; border-radius: 18px; border: 1px solid var(--hairline); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.more-item h3 { margin-bottom: 8px; }
.more-item p { color: var(--text-secondary); font-size: 0.98rem; }

/* ---------- Download band ---------- */
.download {
  max-width: var(--maxw); margin: clamp(80px, 12vw, 140px) auto 0;
  border-radius: 28px; padding: clamp(48px, 8vw, 88px) var(--pad); text-align: center;
  position: relative; overflow: hidden;
}
.download::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(60% 120% at 50% -20%, var(--aurora-1), transparent 70%);
}
.download h2 { margin-bottom: 12px; }
.download p { color: var(--text-secondary); margin-bottom: 28px; font-size: 1.1rem; }
.download .cta { margin-bottom: 14px; }

/* ---------- Support ---------- */
.support { max-width: 760px; margin: clamp(88px, 12vw, 150px) auto 0; text-align: center; }
.support h2 { margin-bottom: 14px; }
.support-lede { color: var(--text-secondary); max-width: 54ch; margin: 0 auto 30px; font-size: 1.1rem; }
.support-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.faq { text-align: left; }
.faq details {
  border: 1px solid var(--hairline); border-radius: 14px; margin-bottom: 12px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-secondary); font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { content: "–"; }
.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--text-secondary); }
.support-contact { margin-top: 32px; color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw); margin: clamp(80px, 12vw, 140px) auto 0;
  padding: 36px var(--pad); border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text); }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.copy { color: var(--text-secondary); font-size: 0.92rem; width: 100%; text-align: center; opacity: .8; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.22,.61,.36,1) var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Support page ---------- */
.page-head { position: relative; text-align: center; padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(8px, 3vw, 28px); }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin-bottom: 20px; }
.page-lede { max-width: 56ch; margin: 0 auto 30px; color: var(--text-secondary); font-size: 1.12rem; }
.support-page { max-width: 760px; margin: clamp(24px, 5vw, 56px) auto 0; }
.faq-heading { text-align: center; margin-bottom: 28px; }
.contact-card { margin-top: 40px; border-radius: 22px; padding: clamp(28px, 5vw, 44px); text-align: center; }
.contact-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.contact-card p { color: var(--text-secondary); }

/* ---------- Legal (privacy page) ---------- */
.legal { max-width: 720px; margin: clamp(60px, 10vw, 110px) auto 0; padding-inline: var(--pad); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 22px; }
.legal-lead { font-size: 1.25rem; color: var(--text); margin-bottom: 18px; font-weight: 500; }
.legal p { color: var(--text-secondary); margin-bottom: 16px; }
.legal ul { margin: 0 0 18px 1.2em; color: var(--text-secondary); }
.legal li { margin-bottom: 11px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal-updated { font-size: 0.9rem; opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature-copy, .feature--reverse .shot { order: initial; }
  .more-grid { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; width: 100%; justify-content: center; }
}
