/* =========================================================================
   Masked — marketing/legal site (usemasked.com)
   Standalone static site, independent of the Mini App. Brand palette mirrors
   the app + brand README: indigo #6366F1 -> violet #7C3AED -> purple #9333EA.
   ========================================================================= */
:root {
  --indigo: #6366f1;
  --violet: #7c3aed;
  --purple: #9333ea;
  --grad: linear-gradient(135deg, var(--indigo), var(--violet) 55%, var(--purple));
  --ink: #15131f;
  --muted: #5c5766;
  --bg: #fdfbff;
  --surface: #ffffff;
  --surface-2: #f3eefb;
  --border: #e9e3f3;
  --maxw: 1080px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 16, 40, 0.04), 0 12px 32px rgba(76, 55, 138, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
/* Horizontal gutter ONLY (longhands) so it never zeroes the vertical padding of
   a `section.wrap` — otherwise `.wrap`'s shorthand would beat `section`. */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 22px; padding-right: 22px; }

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
/* Exclude .btn so the gradient CTA keeps its own (white) text — otherwise this
   rule's higher specificity would override .btn-primary's color and wash it out. */
.nav-links a:not(.btn) { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
/* Header CTA: a touch more legible than the body buttons. */
.nav-links .btn-primary { font-weight: 750; box-shadow: 0 2px 10px rgba(124, 58, 237, 0.32); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: #d9cff0; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* --- Hero --- */
.hero { padding-top: 68px; padding-bottom: 60px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--violet);
  background: var(--surface-2); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 850; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 26px; color: var(--muted); font-size: 14px; }

/* --- Sections --- */
section { padding-top: 60px; padding-bottom: 60px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* --- Feature grid --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 23px; height: 23px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 750; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .soon { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--violet); background: var(--surface-2); padding: 3px 10px; border-radius: 999px; }
/* Anchored deep-links (e.g. /#stars, /services.html#proxies) clear the sticky header. */
.card[id] { scroll-margin-top: 84px; }

/* --- Steps --- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { position: relative; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- CTA band --- */
.cta-band { background: var(--grad); border-radius: 26px; padding: 52px 28px; text-align: center; color: #fff; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-band p { margin: 0 0 26px; opacity: .92; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: var(--violet); }
.cta-band .btn-primary:hover { filter: none; background: #f6f2ff; }

/* --- Legal / article pages --- */
.article { max-width: 760px; margin: 0 auto; padding: 48px 0 24px; }
.article h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.02em; margin: 0 0 8px; }
.article .lead { color: var(--muted); font-size: 18px; margin: 0 0 8px; }
.article .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.article h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.article p, .article li { color: #34313a; font-size: 16px; }
.article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.note { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); color: var(--violet); font-size: 14px; }

/* --- FAQ --- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--violet); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 0; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-grid .brand { font-size: 17px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--ink); text-decoration: none; }
.footer-legal { margin-top: 24px; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  section { padding-top: 46px; padding-bottom: 46px; }
}
