/* Free Ultra Fast USA VPN — marketing site.
   Liquid-glass + USA-flag palette, mirrored from the app (app/lib/theme/app_theme.dart):
   glossy gold #F4C969, gold sheen #FFE9A8, dark matte gold #6E5518, Old Glory
   red/blue, diminished-white text, frosted glass over the bald-eagle background. */

:root {
  --glossy-gold: #f4c969;
  --gold-sheen: #ffe9a8;
  --dark-gold: #6e5518;
  --flag-red: #b22234;
  --flag-blue: #3c3b6e;
  --dim-white: #e7e3d8;
  --bg: #080a14;
  --ink-on-gold: #20180a;
  --glass-border: rgba(244, 201, 105, 0.35);
  --max: 1120px;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--dim-white);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Atmospheric background: the app's deep base + gold radial glows, with a faint,
   heavily-scrimmed eagle ghosted to the right so it feels like the app's world
   without competing with the framed hero image. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 60rem at 85% -10%, rgba(244, 201, 105, 0.14), transparent 60%),
    radial-gradient(50rem 50rem at -10% 110%, rgba(60, 59, 110, 0.35), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 48vw;
  height: 100vh;
  z-index: -1;
  background: url("assets/eagle.jpg") right center / cover no-repeat;
  opacity: 0.1;
  filter: blur(2px) saturate(0.8);
  -webkit-mask-image: linear-gradient(to left, #000, transparent 85%);
  mask-image: linear-gradient(to left, #000, transparent 85%);
  pointer-events: none;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- glass primitives ---------------------------------------------------- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-sheen), var(--glossy-gold) 45%, var(--dark-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- top bar ------------------------------------------------------------- */
header.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(8, 10, 20, 0.85), rgba(8, 10, 20, 0.35));
  border-bottom: 1px solid rgba(244, 201, 105, 0.16);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.3px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.brand .name { font-size: 0.96rem; line-height: 1.2; }
.bar nav { display: flex; gap: 22px; font-size: 0.92rem; }
.bar nav a { color: var(--dim-white); text-decoration: none; opacity: 0.82; transition: opacity 0.2s, color 0.2s; }
.bar nav a:hover { opacity: 1; color: var(--gold-sheen); }

/* ---- hero ---------------------------------------------------------------- */
.hero { padding: 64px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.eagle-frame {
  position: relative;
  border-radius: 24px;
  padding: 10px;
  overflow: hidden;
}
.eagle-frame img { display: block; width: 100%; height: auto; border-radius: 16px; }
.eagle-frame::after { /* gold rim light */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(244, 201, 105, 0.18);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-sheen);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(244, 201, 105, 0.08);
}
.motto {
  margin: 18px 0 6px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.5px;
}
.appname { font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 700; color: var(--gold-sheen); margin-bottom: 16px; }
.lede { font-size: 1.08rem; color: var(--dim-white); opacity: 0.92; max-width: 38rem; }
.lede strong { color: var(--gold-sheen); font-weight: 700; }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 10px; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--dim-white);
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s;
  position: relative;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--glossy-gold); box-shadow: 0 8px 26px rgba(244, 201, 105, 0.18); }
.store-btn img { width: 26px; height: 26px; }
.store-btn .l1 { font-size: 0.66rem; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.72; }
.store-btn .l2 { font-size: 1.04rem; font-weight: 800; line-height: 1.05; }
.store-btn .soon {
  position: absolute;
  top: -9px;
  right: -8px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--ink-on-gold);
  background: linear-gradient(135deg, var(--gold-sheen), var(--glossy-gold));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.note-soon { font-size: 0.82rem; opacity: 0.6; margin-top: 4px; }

/* ---- section scaffolding ------------------------------------------------- */
section { padding: 40px 0; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.section-sub { opacity: 0.78; max-width: 42rem; margin-bottom: 28px; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 24px 22px; }
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(244, 201, 105, 0.22), rgba(110, 85, 24, 0.25));
  border: 1px solid var(--glass-border);
}
.feature h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 6px; color: var(--gold-sheen); }
.feature p { font-size: 0.93rem; opacity: 0.86; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 24px 22px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 12px;
  font-weight: 900; color: var(--ink-on-gold);
  background: linear-gradient(135deg, var(--gold-sheen), var(--glossy-gold));
}
.step h3 { font-size: 1.04rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; opacity: 0.84; }

/* tech / built-with strip */
.builtwith { text-align: center; }
.tech-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 10px; }
.tech { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.9; transition: transform 0.2s, opacity 0.2s; }
.tech:hover { transform: translateY(-3px); opacity: 1; }
.tech img { width: 48px; height: 48px; filter: drop-shadow(0 4px 14px rgba(244, 201, 105, 0.2)); }
.tech span { font-size: 0.82rem; letter-spacing: 0.6px; opacity: 0.8; }

/* privacy teaser */
.privacy-card { padding: 34px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.privacy-card .body { flex: 1 1 22rem; }
.privacy-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.privacy-card ul { list-style: none; margin: 12px 0; }
.privacy-card li { padding-left: 26px; position: relative; opacity: 0.9; margin: 6px 0; }
.privacy-card li::before { content: "✓"; position: absolute; left: 0; color: var(--glossy-gold); font-weight: 900; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 16px; font-weight: 800; text-decoration: none;
  letter-spacing: 0.2px; transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
.btn-gold { color: var(--ink-on-gold); background: linear-gradient(135deg, var(--gold-sheen), var(--glossy-gold) 55%, var(--dark-gold)); box-shadow: 0 8px 24px rgba(244, 201, 105, 0.25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(244, 201, 105, 0.35); }
.btn-ghost { color: var(--gold-sheen); border: 1.2px solid var(--glossy-gold); }
.btn-ghost:hover { background: rgba(244, 201, 105, 0.1); }

/* ---- footer -------------------------------------------------------------- */
footer { padding: 48px 0 40px; margin-top: 24px; border-top: 1px solid rgba(244, 201, 105, 0.16); }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img.glogo {
  height: 30px;
  width: auto;
  /* The brand SVG uses dark native colours (black / dark browns) that vanish on the
     dark footer — render it as a clean light silhouette with a faint gold glow so it
     reads clearly and stays on-theme. */
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(244, 201, 105, 0.45));
  opacity: 0.92;
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.92rem; }
.foot-links a { color: var(--dim-white); opacity: 0.78; text-decoration: none; transition: opacity 0.2s, color 0.2s; }
.foot-links a:hover { opacity: 1; color: var(--gold-sheen); }
.copy { opacity: 0.55; font-size: 0.84rem; margin-top: 18px; text-align: center; }

/* ---- reveal-on-load animation ------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .reveal.d1 { animation-delay: 0.08s; }
  .reveal.d2 { animation-delay: 0.16s; }
  .reveal.d3 { animation-delay: 0.24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .eagle-frame { max-width: 360px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .bar nav { display: none; }
  body::after { width: 100vw; opacity: 0.06; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
}

/* ---- privacy policy page ------------------------------------------------- */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 0 64px; }
.doc .glass { padding: 40px 38px; }
.doc h1 { font-size: 2rem; font-weight: 900; margin-bottom: 6px; }
.doc h2 { font-size: 1.25rem; font-weight: 800; color: var(--gold-sheen); margin: 28px 0 8px; }
.doc p, .doc li { opacity: 0.9; }
.doc ul { margin: 10px 0 10px 22px; }
.doc li { margin: 6px 0; }
.doc .updated { opacity: 0.6; font-size: 0.9rem; font-style: italic; margin-bottom: 8px; }
.doc a { color: var(--gold-sheen); }
.doc .back { display: inline-block; margin-bottom: 24px; }
