:root {
  --bg: #062112;
  --nightly: #062111;
  --pistachio: #71d87a;
  --white: #ffffff;
  --black: #000000;
  --emerald-50: #ecfdf5;
  --emerald-100: #d0fae5;
  --emerald-200: #a4f4cf;
  --emerald-300: #5ee9b5;
  --emerald-400: #00d294;
  --emerald-500: #00bb7f;
  --emerald-800: #005f46;
  --emerald-900: #004e3b;
  --emerald-950: #002c22;
  --teal-200: #96f7e4;
  --card: rgba(0, 78, 59, 0.3);
  --card-hover: rgba(0, 95, 70, 0.4);
  --card-soon: rgba(0, 78, 59, 0.2);
  --border-soon: rgba(0, 95, 70, 0.5);
  --glow: 0 0 30px rgba(52, 211, 153, 0.3);
  --glow-strong: 0 0 40px rgba(52, 211, 153, 0.5);
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --container: 72rem;
  --container-narrow: 56rem;
  --font: Inter, "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
  --ease: 180ms ease;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--emerald-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(0, 187, 127, 0.3);
  color: var(--white);
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--emerald-400);
  color: var(--emerald-950);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
}

.skip-link:focus {
  top: 1rem;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: -8rem 0 auto;
  height: 28rem;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    ellipse 70% 80% at 50% 0%,
    rgba(0, 210, 148, 0.12),
    transparent 70%
  );
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  transition: color var(--ease);
}

.brand:hover {
  color: var(--pistachio);
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.brand-accent {
  color: var(--pistachio);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: var(--emerald-200);
  border-radius: 0.75rem;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-menu {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

.hero-break {
  display: none;
}

.nav-toggle:hover {
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--emerald-200);
  transition: color var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-links a svg {
  width: 0.75rem;
  height: 0.75rem;
}

.nav-cta {
  background: var(--emerald-400);
  color: var(--emerald-950) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full);
  padding: 0.625rem 1.25rem;
  box-shadow: var(--glow);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease) !important;
}

.nav-cta:hover {
  background: var(--emerald-300);
  color: var(--emerald-950) !important;
  box-shadow: var(--glow-strong);
  transform: translateY(-2px);
}

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

.main {
  flex: 1;
  padding: 4rem 0 8rem;
  position: relative;
  z-index: 1;
}

.hero {
  max-width: var(--container-narrow);
  margin: 0 auto 8rem;
  text-align: center;
}

.hero--home {
  margin-bottom: 0;
}

.main--home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.hero--page {
  margin-bottom: 4rem;
}

.hero--page h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.hero--page .lead {
  margin-bottom: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald-300);
  background: rgba(0, 78, 59, 0.4);
  border: 1px solid rgba(0, 210, 148, 0.18);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.5rem;
}

.kicker-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--pistachio);
  box-shadow: 0 0 10px var(--pistachio);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--emerald-400), var(--teal-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(164, 244, 207, 0.8);
  max-width: 40rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease),
    transform var(--ease);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-primary {
  background: var(--emerald-400);
  color: var(--emerald-950);
  box-shadow: var(--glow);
}

.btn-primary:hover {
  background: var(--emerald-300);
  box-shadow: var(--glow-strong);
  transform: translateY(-4px);
}

.btn-secondary {
  background: var(--emerald-500);
  color: var(--emerald-950);
  box-shadow: var(--glow);
}

.btn-secondary:hover {
  background: var(--emerald-400);
  transform: translateY(-4px);
}

.official-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(164, 244, 207, 0.7);
}

.official-note a {
  color: var(--emerald-400);
  font-weight: 600;
  transition: color var(--ease);
}

.official-note a:hover {
  color: var(--emerald-300);
}

/* ---------- Sections ---------- */

.section {
  scroll-margin-top: 1.5rem;
}

.section + .section {
  margin-top: 8rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.section-title svg {
  width: 2rem;
  height: 2rem;
  color: var(--emerald-400);
  flex-shrink: 0;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.section-title a {
  color: inherit;
  transition: color var(--ease);
}

.section-title a:hover {
  color: var(--emerald-400);
}

.section-head p {
  color: rgba(164, 244, 207, 0.7);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 16.5rem;
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: background var(--ease);
}

a.card:hover {
  background: var(--card-hover);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 210, 148, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

a.card:hover .card-glow {
  opacity: 1;
}

.card-watermark {
  position: absolute;
  right: -1.4rem;
  bottom: -1.4rem;
  width: 10rem;
  height: 10rem;
  color: var(--emerald-400);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 500ms ease, transform 500ms ease;
}

.card-watermark svg {
  width: 100%;
  height: 100%;
}

a.card:hover .card-watermark {
  opacity: 0.3;
  transform: scale(1.1) rotate(-6deg);
}

.card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-950);
  background: var(--pistachio);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.badge-muted {
  background: rgba(0, 210, 148, 0.16);
  color: var(--emerald-300);
}

.card h2,
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.card-ext {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: color var(--ease);
}

.card-ext svg {
  width: 1.25rem;
  height: 1.25rem;
}

a.card:hover .card-ext {
  color: var(--white);
}

.card p {
  color: rgba(164, 244, 207, 0.7);
  line-height: 1.65;
  margin: 0.75rem 0 1.25rem;
  flex: 1;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald-400);
  margin-top: auto;
}

.card-cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--ease);
}

a.card:hover .card-cta svg {
  transform: translateX(3px);
}

.card-host {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--emerald-300);
  opacity: 0.85;
  margin-left: 0.15rem;
}

.card--soon {
  background: var(--card-soon);
  border: 1px dashed var(--border-soon);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 16.5rem;
}

.card--soon h2,
.card--soon h3 {
  margin-bottom: 0.5rem;
}

.card--soon p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 20rem;
}

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

.footer {
  border-top: 2px dashed rgba(0, 78, 59, 0.5);
  padding: 2rem 1.5rem;
  text-align: center;
  color: rgba(94, 233, 181, 0.8);
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

.footer p {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.75rem;
}

.footer-links a {
  color: var(--emerald-400);
  transition: color var(--ease);
}

.footer-links a:hover {
  color: var(--emerald-300);
}

/* ---------- Motion ---------- */

.rise {
  animation: rise 0.7s ease both;
}

.rise-delay-1 {
  animation-delay: 80ms;
}

.rise-delay-2 {
  animation-delay: 160ms;
}

.rise-delay-3 {
  animation-delay: 240ms;
}

.rise-delay-4 {
  animation-delay: 320ms;
}

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

/* ---------- 404 ---------- */

.error {
  text-align: center;
  padding: 6rem 0 8rem;
}

.error h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.error p {
  color: rgba(164, 244, 207, 0.8);
  margin-bottom: 2rem;
}

.error a {
  color: var(--emerald-400);
  font-weight: 600;
}

.error a:hover {
  color: var(--emerald-300);
}

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

@media (max-width: 767px) {
  .container {
    width: min(var(--container), calc(100% - 2rem));
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.65rem;
    background: rgba(6, 33, 18, 0.96);
    border: 1px solid rgba(0, 210, 148, 0.16);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
  }

  html.js .nav-links.is-open {
    display: flex;
  }

  html.js .nav-links a {
    padding: 0.6rem 0.9rem;
    border-radius: 0.75rem;
  }

  html.js .nav-links a:hover {
    background: rgba(0, 78, 59, 0.45);
  }

  html.js .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .main {
    padding-top: 2.5rem;
  }

  .hero {
    margin-bottom: 5rem;
  }

  .hero--page {
    margin-bottom: 2.5rem;
  }

  .section + .section {
    margin-top: 5rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero-break {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise,
  .card-watermark,
  .btn,
  .nav-cta,
  .card-cta svg {
    animation: none !important;
    transition: none !important;
  }

  .rise {
    opacity: 1;
    transform: none;
  }

  a.card:hover .card-watermark,
  .btn:hover,
  .nav-cta:hover {
    transform: none;
  }
}
