@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #080a0f;
  --bg-elevated: #111622;
  --bg-card: #131722;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --chalk: #f3f1ec;
  --muted: #94a3b8;
  --titanium: #64748b;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.14);
  --amber: #f59e0b;
  --emerald: #34d399;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 76% 14%, rgba(34, 211, 238, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 18% 0%, #101726 0%, var(--bg) 52%);
  color: var(--chalk);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 10, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-link img {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-wordmark {
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-wordmark strong {
  font-weight: 700;
  color: var(--chalk);
}

.brand-wordmark span {
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-cta {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--cyan) !important;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--bg) !important;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

h1 {
  margin: 14px 0 16px;
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 820px;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 660px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.12s ease, border-color 0.14s ease, background 0.14s ease;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--cyan);
  color: #061018;
  border: 1px solid var(--cyan);
}

.btn-primary:hover {
  background: #67e8f9;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--chalk);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--cyan);
}

/* Featured Playable Tethercore Showcase */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.title-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.game-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.section-heading {
  margin: 6px 0 12px;
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.spec-box {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.spec-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.spec-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.spec-key {
  color: var(--cyan);
  font-weight: 700;
  white-space: nowrap;
}

.spec-val {
  color: var(--muted);
  text-align: right;
}

.watch-callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.24);
  font-size: 13.5px;
  color: var(--chalk);
}

.watch-callout span {
  color: var(--muted);
}

/* Machined iPhone Bezel */
.arena-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.duel-banner {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #ede9fe;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.duel-banner.visible {
  display: inline-flex;
}

.iphone-frame {
  position: relative;
  width: min(358px, 100%);
  aspect-ratio: 390 / 844;
  max-height: 752px;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(145deg, #2d3649 0%, #11151f 48%, #202738 100%);
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #07090f;
}

.iphone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 98px;
  height: 24px;
  border-radius: 16px;
  background: #020306;
  z-index: 10;
  pointer-events: none;
}

.iphone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #07090f;
}

.prelaunch-screen {
  width: 100%;
  height: 100%;
  padding: 44px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 38%, rgba(34, 211, 238, 0.12) 0%, rgba(7, 9, 15, 0.96) 62%),
    #07090f;
  text-align: center;
}

.prelaunch-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prelaunch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(11, 15, 25, 0.82);
  color: var(--chalk);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.prelaunch-pill.muted {
  color: var(--muted);
}

.prelaunch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.prelaunch-reactor {
  width: min(246px, 84%);
  height: auto;
  display: block;
  margin: 4px auto;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.12));
}

.reactor-sweeper {
  transform-origin: 160px 160px;
  animation: reactorSweep 11s linear infinite;
}

.reactor-orb-rig {
  transform-origin: 160px 160px;
  animation: reactorSweep 4.4s linear infinite;
}

@keyframes reactorSweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.prelaunch-card {
  width: 100%;
  padding: 16px 15px;
  border-radius: 20px;
  background: rgba(13, 18, 30, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.prelaunch-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.42);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.prelaunch-title {
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--chalk);
  line-height: 1.1;
}

.prelaunch-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.prelaunch-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.prelaunch-chips span {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 9.5px;
  color: var(--chalk);
  letter-spacing: 0.06em;
}

.arena-caption {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

/* Catalog & Ethos Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card h3 {
  margin: 2px 0 0;
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.card-meta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  color: var(--chalk);
}

/* Subpages (Privacy & Support) */
.prose-wrap {
  padding: 56px 0 80px;
  max-width: 780px;
}

.prose-card {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.prose-card h2 {
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-size: 20px;
  margin: 26px 0 8px;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p,
.prose-card li {
  color: var(--muted);
  font-size: 14.5px;
}

.prose-card a {
  color: var(--cyan);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 48px;
  background: rgba(6, 8, 12, 0.72);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-legal {
  font-size: 12.5px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12.5px;
  color: var(--cyan);
}

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

@media (max-width: 920px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links .hide-sm {
    display: none;
  }
}
