@font-face {
  font-family: "VT323";
  src: url("assets/fonts/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "PressStart2P";
  src: url("assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}

/* ===== App design tokens (retirados de StartTheme.swift / AppColors.swift) ===== */
:root {
  --bg: #0A0B0F;          /* screenBase */
  --bg-inner: #0D0F15;    /* centro do gradiente radial */
  --bg-outer: #060709;    /* borda do gradiente radial */
  --surface: #12151C;     /* cardTop */
  --surface-2: #0F1117;   /* pill / inputs */

  --accent: #FF7A1A;      /* laranja identidade */
  --accent-light: #FF9B45;
  --accent-border: #FFB066;
  --accent-dark: #DF610C;

  --cream: #F2ECDE;       /* título / texto creme */
  --on-orange: #1C0E02;   /* texto sobre laranja */

  /* Partículas (continuidade com o campo de partículas do app) */
  --photon: #FFD84D;
  --quark: #8B5CF6;
  --electron: #00E23F;
  --zboson: #5B82FF;

  --gray: #8A8A8A;

  /* Fonte de texto corrido (body) — San Francisco no Apple, com fallbacks */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Aliases antigos, caso outra página ainda os referencie */
  --primary: var(--accent);
  --secondary: var(--cream);
  --tertiary: var(--accent);
  --black: #000000;
  --white: var(--cream);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scanlines CRT como textura de fundo, ATRÁS do conteúdo (no app as scanlines
   ficam no fundo — título/ícone/texto ficam por cima, limpos). Fica acima do
   fundo do hero e do grid (z 0), abaixo do conteúdo (z 2). */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.22) 0px,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Fundo base + gradiente radial (StartGridBackground) */
  background:
    radial-gradient(ellipse 120% 92% at 50% 42%, var(--bg-inner), var(--bg-outer) 74%),
    var(--bg);
}

.hero--compact {
  min-height: 42svh;
}

/* Brilho laranja do horizonte */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 72%;
  height: 160px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 122, 26, 0.28), transparent 70%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
}

/* Piso em grade com perspectiva, rolando para dar sensação de avanço */
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 260%;
  height: 52%;
  transform: translateX(-50%) perspective(340px) rotateX(60deg);
  transform-origin: bottom center;
  background-image:
    repeating-linear-gradient(to right, rgba(255, 122, 26, 0.26) 0 1.5px, transparent 1.5px 78px),
    repeating-linear-gradient(to bottom, rgba(255, 122, 26, 0.22) 0 1.5px, transparent 1.5px 60px);
  -webkit-mask-image: linear-gradient(to top, #000 42%, transparent 92%);
  mask-image: linear-gradient(to top, #000 42%, transparent 92%);
  animation: grid-move 2.8s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes grid-move {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 0 60px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 18px;
}

.hero-content--compact {
  padding: 56px 24px 40px;
  gap: 14px;
}

.icon {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  border: none;
  outline: none;
  border-radius: 28px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.title {
  font-family: "PressStart2P", monospace;
  line-height: 1.18;
}

.title-line {
  display: block;
  text-transform: uppercase;
  font-size: clamp(30px, 8vw, 60px);
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

/* Subtítulo "INSIDE THE ATOM" — San Francisco ultraLight, espaçado (opcional no HTML) */
.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: clamp(13px, 2vw, 18px);
  color: rgba(242, 236, 222, 0.72);
  padding-left: 0.42em; /* compensa o tracking à direita, mantém centralizado */
}

.tagline {
  font-size: clamp(18px, 3vw, 24px);
  color: rgba(242, 236, 222, 0.82);
  max-width: 520px;
}

/* Botão primário CRT laranja (LookInsideButton) */
.cta {
  position: relative;
  margin-top: 14px;
  display: inline-block;
  font-family: "PressStart2P", monospace;
  font-size: clamp(13px, 2.1vw, 18px);
  letter-spacing: 0.5px;
  color: var(--on-orange);
  padding: 16px 38px 18px;
  border-radius: 16px;
  border: 2px solid #000000;
  text-decoration: none;
  background:
    linear-gradient(to bottom, rgba(255, 226, 192, 0.8), transparent 22%),
    linear-gradient(to bottom, transparent 62%, rgba(150, 55, 0, 0.55)),
    linear-gradient(to bottom, var(--accent-light) 0%, var(--accent) 47%, var(--accent-dark) 100%);
  box-shadow:
    0 6px 11px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(255, 122, 26, 0.45);
  transition: filter 0.15s ease, transform 0.12s ease;
}

/* Textura scanline sobre o botão (app: preto ~17% a cada 4px) */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.17) 0 2px,
    transparent 2px 4px
  );
  pointer-events: none;
}

/* Glow laranja pulsante atrás do botão */
.cta::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 210%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 122, 26, 0.42), transparent 66%);
  filter: blur(7px);
  z-index: -1;
  pointer-events: none;
  animation: cta-glow 1.3s ease-in-out infinite alternate;
}

@keyframes cta-glow {
  from { opacity: 0.5; }
  to   { opacity: 0.9; }
}

.cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.cta:active {
  filter: brightness(1.06);
  transform: translateY(1px) scale(0.98);
}

/* Orbes flutuantes nas cores das partículas (FloatingOrbs) */
.orb {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.95;
}

.orb-a {
  width: 44px;
  height: 44px;
  top: 18%;
  left: 12%;
  background: radial-gradient(circle at 38% 32%, #ffffff, var(--photon) 70%);
  box-shadow: 0 0 18px rgba(255, 216, 77, 0.6);
  animation: float 7s ease-in-out infinite;
}

.orb-b {
  width: 28px;
  height: 28px;
  top: 30%;
  right: 15%;
  background: radial-gradient(circle at 38% 32%, #ffffff, var(--quark) 70%);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
  animation: float 9s ease-in-out infinite reverse;
}

.orb-c {
  width: 22px;
  height: 22px;
  bottom: 22%;
  left: 20%;
  background: radial-gradient(circle at 38% 32%, #ffffff, var(--electron) 70%);
  box-shadow: 0 0 14px rgba(0, 226, 63, 0.6);
  animation: float 6s ease-in-out infinite;
}

.orb-d {
  width: 24px;
  height: 24px;
  bottom: 30%;
  right: 22%;
  background: radial-gradient(circle at 38% 32%, #ffffff, var(--zboson) 70%);
  box-shadow: 0 0 15px rgba(91, 130, 255, 0.6);
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ---------- Main content ---------- */

main {
  position: relative;
  z-index: 2;
}

.pitch {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 28px;
  text-align: center;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.6;
  color: rgba(242, 236, 222, 0.9);
}

.pitch strong {
  color: var(--accent);
}

.section-title {
  font-family: "PressStart2P", monospace;
  font-size: clamp(16px, 3vw, 24px);
  color: var(--cream);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.screens {
  padding: 20px 28px 80px;
}

.demo-video {
  max-width: 1000px;
  margin: 0 auto 48px;
  border: 1px solid rgba(242, 236, 222, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 122, 26, 0.08);
}

.demo-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.screen-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 800px) {
  .screen-grid {
    grid-template-columns: 1fr;
  }
}

.screen-card {
  background: var(--surface);
  border: 1px solid rgba(242, 236, 222, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.screen-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(242, 236, 222, 0.14);
}

.screen-card figcaption {
  padding: 18px 20px 22px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(242, 236, 222, 0.72);
}

.facts {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 28px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.fact {
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: var(--surface);
}

.fact-label {
  display: block;
  font-family: "PressStart2P", monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.fact-value {
  display: block;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--cream);
}

.coming-soon {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 28px 100px;
  text-align: center;
}

.coming-text {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.6;
  color: rgba(242, 236, 222, 0.9);
  margin-bottom: 36px;
}

.coming-text strong {
  color: var(--accent);
}

/* Botão de acesso ao TestFlight */
.app-store-badge {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.app-store-badge img {
  display: block;
  width: 190px;
  height: auto;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.app-store-badge:active {
  transform: translateY(1px) scale(0.98);
}

/* ---------- Privacy Policy section ---------- */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 28px 100px;
  font-size: 22px;
  color: rgba(242, 236, 222, 0.86);
}

.legal-updated {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 32px;
}

/* Destaque "coleta zero" — o ponto principal da policy, em verde elétron */
.legal-highlight {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 22px 26px;
  border: 1px solid rgba(0, 226, 63, 0.45);
  border-radius: 16px;
  background:
    linear-gradient(rgba(0, 226, 63, 0.07), rgba(0, 226, 63, 0.02)),
    var(--surface);
  box-shadow: 0 0 26px rgba(0, 226, 63, 0.1);
}

.legal-highlight .shield {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(0, 226, 63, 0.5));
}

.legal-highlight strong {
  display: block;
  font-family: "PressStart2P", monospace;
  font-size: 13px;
  color: var(--electron);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.legal-highlight p {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: rgba(242, 236, 222, 0.8);
}

/* Painel com o corpo da policy */
.legal-card {
  border: 1px solid rgba(242, 236, 222, 0.12);
  border-radius: 18px;
  background: var(--surface);
  padding: 34px 36px 18px;
}

.legal h3 {
  font-family: "PressStart2P", monospace;
  font-size: 13px;
  color: var(--accent);
  margin: 28px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.legal-card h3:first-of-type {
  margin-top: 0;
}

.legal p {
  font-family: var(--sans);
  font-size: 17px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.legal a {
  color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--gray);
  font-size: 18px;
  border-top: 1px solid rgba(242, 236, 222, 0.1);
}

.footer p {
  margin-top: 8px;
}

.footer p:first-child {
  margin-top: 0;
}

.footer a {
  color: var(--cream);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links a {
  color: var(--accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  body {
    font-size: 20px;
  }

  .icon {
    width: 112px;
    height: 112px;
  }

  .hero::after {
    height: 46%;
  }
}
