:root {
  --bg: #0d0b12;
  --bg-alt: #14111c;
  --fg: #f5f3ef;
  --muted: #9a94a8;
  --accent: #7c4dff;
  --accent-2: #b39dff;
  --line: rgba(255, 255, 255, 0.09);
  --max: 1180px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124, 77, 255, 0.35); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-2); box-shadow: none; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(13, 11, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand span { color: var(--accent-2); }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.lang {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 100px;
  padding: 0.45rem 0.8rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang:hover { border-color: var(--accent-2); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
  text-align: center;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--head);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 2rem;
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.accent { color: var(--accent-2); }
.hero-sub {
  max-width: 620px;
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }

/* Countdown */
.countdown {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  padding: 1.2rem 0.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.cd-num {
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1rem 0;
  margin: 2rem 0;
}
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  animation: scroll 24s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.kicker {
  display: block;
  font-family: var(--head);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 780px;
}
.section-lead {
  max-width: 640px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.stat { border-left: 2px solid var(--accent); padding-left: 1.2rem; }
.stat-num { display: block; font-family: var(--head); font-weight: 700; font-size: 2.6rem; }
.stat-label { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.05em; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card-day {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}
.card h3 { font-family: var(--head); font-weight: 600; font-size: 1.35rem; margin: 0.8rem 0 0.6rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-lisbon h3 { margin-top: 0; }
.soon { margin-top: 2rem; color: var(--muted); font-style: italic; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, #4a2ea8 100%);
}
.cta-band h2 { font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); }
.cta-band p { max-width: 520px; margin: 1rem auto 2rem; color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.cta-band .btn-lg { background: #fff; color: #4a2ea8; border-color: #fff; }
.cta-band .btn-lg:hover { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3); }

/* Footer */
.footer { padding: 4rem 2rem 3rem; border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }
.footer-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-dates { font-family: var(--head); color: var(--muted); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 1.8rem; margin: 2rem 0; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Hero parties */
.hero-parties {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.hero-parties > div { display: flex; flex-direction: column; text-align: left; }
.hp-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hp-val { font-family: var(--head); font-weight: 600; margin-top: 0.25rem; }

/* Architecture block */
.arch {
  margin-top: 2.5rem;
  padding: 1.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--accent-2);
}

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.tech-card { padding: 1.6rem; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.tech-card h4 { font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--accent-2); }
.tech-card p { color: var(--muted); font-size: 0.92rem; }
.note { margin-top: 1.8rem; color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* Feature list */
.feature-list { list-style: none; margin-top: 2.5rem; display: grid; gap: 1rem; max-width: 860px; }
.feature-list li { position: relative; padding-left: 1.8rem; color: var(--muted); font-size: 1.02rem; }
.feature-list li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
.feature-list strong { color: var(--fg); font-weight: 600; }

/* Tables */
.table-wrap { margin-top: 2.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.req-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.req-table th { text-align: left; font-family: var(--head); font-weight: 600; padding: 1rem 1.2rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.req-table td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.req-table td:first-child { color: var(--fg); font-weight: 500; width: 40%; }
.req-table tr:last-child td { border-bottom: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.5rem; }
.chips span {
  padding: 0.6rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--fg);
  transition: border-color 0.2s;
}
.chips span:hover { border-color: var(--accent); }

/* Timeline */
.timeline { margin-top: 2.5rem; display: grid; gap: 1rem; }
.tl-item { display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.3rem 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; border-left: 3px solid var(--accent); }
.tl-tag { font-family: var(--head); font-weight: 600; color: var(--accent-2); min-width: 110px; font-size: 0.95rem; }
.tl-item p { color: var(--muted); font-size: 0.98rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.price-card { padding: 2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; }
.price-hero { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(124,77,255,0.18); }
.price-label { font-size: 0.85rem; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }
.price-val { font-family: var(--head); font-weight: 700; font-size: 2.8rem; margin: 0.6rem 0 0.2rem; line-height: 1; }
.price-val small { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.price-note { font-size: 0.82rem; color: var(--accent-2); margin-bottom: 1rem; }
.price-card p { color: var(--muted); font-size: 0.92rem; margin-top: auto; }

/* Check list */
.check-list { list-style: none; margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.check-list li { position: relative; padding-left: 2rem; font-size: 1rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; width: 1.3rem; height: 1.3rem; background: var(--accent); color: #fff; border-radius: 50%; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }

/* Responsive */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .tl-item { flex-direction: column; gap: 0.5rem; }
}
