/* ============================================================
   TEEMPAD — parent brand landing
   Dark cinematic "estadio de noche". Display: Archivo Expanded.
   Accents: Clubs emerald #10b981 · Camera teal #2dd4bf.
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.03);
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-dim: rgba(244, 244, 245, 0.62);
  --text-faint: rgba(244, 244, 245, 0.38);
  --clubs: #10b981;
  --camera: #2dd4bf;
  --display: "Archivo", sans-serif;
  --body: "Inter", sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- atmosphere ---------- */

.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.floodlight {
  position: fixed; inset: -20% -10% auto; height: 90vh; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 18% 0%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(50% 55% at 85% 8%, rgba(45, 212, 191, 0.10), transparent 70%),
    radial-gradient(70% 50% at 50% -10%, rgba(255, 255, 255, 0.07), transparent 65%);
}

/* ---------- nav ---------- */

.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-weight: 900; font-size: 1.15rem; letter-spacing: 0.14em;
  color: var(--text); text-decoration: none;
}

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }

.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.5rem 1rem; border: 1px solid var(--hairline); border-radius: 10px;
  color: var(--text) !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { border-color: var(--clubs); background: rgba(16, 185, 129, 0.08); }

/* ---------- hero ---------- */

.hero {
  position: relative; z-index: 4;
  padding: clamp(5rem, 14vh, 9rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 10vh, 7rem);
  max-width: 1200px; margin-inline: auto;
}

.eyebrow {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 850;
  font-size: clamp(2.6rem, 8.5vw, 6.2rem);
  line-height: 0.98; letter-spacing: -0.02em;
  text-wrap: balance;
}

.accent-sweep {
  background: linear-gradient(100deg, var(--clubs) 20%, var(--camera) 80%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34rem; margin-top: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.5rem; }

.btn {
  display: inline-block; padding: 0.85rem 1.6rem;
  border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--spring), box-shadow 0.25s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.96); }

.btn-clubs {
  background: var(--clubs); color: #04120c;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
}
.btn-clubs:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4); }

.btn-ghost {
  color: var(--text); border: 1px solid var(--hairline);
  background: var(--surface);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

.hero-baseline {
  display: flex; align-items: center; gap: 1rem; margin-top: clamp(3rem, 8vh, 5rem);
}
.hero-baseline span { flex: 1; height: 1px; background: var(--hairline); }
.hero-baseline .tick { flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--clubs); }

/* ---------- sections ---------- */

.section-label {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
}

/* ---------- products ---------- */

.products {
  position: relative; z-index: 4;
  max-width: 1200px; margin-inline: auto;
  padding: 2rem clamp(1.25rem, 5vw, 4rem) 4rem;
  display: grid; gap: 1.5rem;
}

.product {
  --accent: var(--clubs);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--spring);
}
.product-camera { --accent: var(--camera); }

.product:hover {
  border-color: color-mix(in oklab, var(--accent), transparent 55%);
  box-shadow: 0 20px 60px -20px color-mix(in oklab, var(--accent), transparent 72%);
  transform: translateY(-3px);
}

.product-kicker {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.product h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1.05;
}
.product h2 em { font-style: normal; color: var(--accent); }

.product-desc { margin-top: 1rem; color: var(--text-dim); max-width: 30rem; }

.product-points {
  list-style: none; margin-top: 1.4rem;
  display: grid; gap: 0.55rem;
}
.product-points li {
  position: relative; padding-left: 1.3rem;
  font-size: 0.92rem; color: var(--text-dim);
}
.product-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.55rem; height: 2px; background: var(--accent);
}

.product-link {
  display: inline-block; margin-top: 1.75rem;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  color: var(--accent);
}
.product-link .arrow { display: inline-block; transition: transform 0.25s var(--spring); }
.product-link:hover .arrow { transform: translateX(5px); }

/* product visuals — abstract UI vignettes */

.product-visual { display: grid; place-items: center; }

.visual-card {
  width: min(100%, 300px); aspect-ratio: 4 / 3;
  border-radius: 16px; padding: 1.25rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(-2deg);
  transition: transform 0.4s var(--spring);
}
.product:hover .visual-card { transform: rotate(0deg) scale(1.03); }

.vc-chip { width: 38%; height: 10px; border-radius: 5px; background: color-mix(in oklab, var(--accent), transparent 45%); }

.vc-qr {
  width: 44%; aspect-ratio: 1; align-self: center;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%;
}
.vc-qr i { background: color-mix(in oklab, var(--accent), transparent 25%); border-radius: 2px; }
.vc-qr i:nth-child(2n) { opacity: 0.35; }

.vc-lines { display: grid; gap: 8px; }
.vc-lines b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.vc-lines b:last-child { width: 62%; }

.vc-rec {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.18em;
  color: #ff453a;
}
.vc-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; animation: blink 1.6s infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.vc-score {
  align-self: center; display: flex; align-items: baseline; gap: 0.9rem;
  font-family: var(--display); font-variation-settings: "wdth" 118;
  font-weight: 850; font-size: 3.2rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vc-score .vs { color: var(--text-faint); font-size: 2rem; }

.vc-timeline { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.vc-timeline b { display: block; height: 100%; width: 64%; border-radius: 3px; background: color-mix(in oklab, var(--accent), transparent 20%); }

/* ---------- company ---------- */

.company {
  position: relative; z-index: 4;
  max-width: 1200px; margin-inline: auto;
  padding: 3rem clamp(1.25rem, 5vw, 4rem) 5rem;
  border-top: 1px solid var(--hairline);
}

.company-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.company-statement {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5; text-wrap: balance;
  font-weight: 500;
}

.company-facts { display: grid; gap: 1.1rem; }

.company-facts dt {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--text-faint);
}
.company-facts dd { margin-top: 0.15rem; font-size: 0.95rem; color: var(--text-dim); }
.company-facts a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.company-facts a:hover { border-color: var(--clubs); }

/* ---------- footer ---------- */

.footer {
  position: relative; z-index: 4;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.75rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem; color: var(--text-faint);
}
.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--text); }

/* ---------- legal pages ---------- */

.legal-body .nav { position: sticky; top: 0; background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

.legal-page {
  position: relative; z-index: 4;
  max-width: 720px; margin-inline: auto;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 5vw, 2rem) 5rem;
}

.legal-page h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 850; font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em; line-height: 1.05;
  margin-top: 0.5rem;
}

.legal-date { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-faint); }

.legal-page h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 700; font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--clubs);
}

.legal-page p, .legal-page li { color: var(--text-dim); font-size: 0.95rem; }
.legal-page p + p { margin-top: 0.75rem; }
.legal-page ul { margin: 0.75rem 0 0 1.25rem; display: grid; gap: 0.5rem; }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-page a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.legal-page a:hover { border-color: var(--clubs); }

/* ---------- load reveal ---------- */

.reveal {
  animation: rise 0.7s var(--spring) both;
  animation-delay: calc(var(--d) * 110ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .vc-rec i { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
  .product-visual { order: -1; }
  .visual-card { width: min(100%, 260px); }
  .company-grid { grid-template-columns: 1fr; }
  .footer { justify-content: center; text-align: center; }
}
