@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("/fonts/InterDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

/* Token names and values follow the Brume console palette. */
:root {
  --cl-bg: #f7f9fc;
  --cl-surface: #ffffff;
  --cl-brand: #18a34a;
  --cl-brand-dark: #166534;
  --cl-brand-tint: #ddf2e5;
  --cl-info: #0ea5e9;
  --cl-text: #181c21;
  --cl-text-sub: #4a5568;
  --cl-border: #d1dae5;

  --fog-glow-brand: rgba(24, 163, 74, 0.22);
  --fog-glow-info: rgba(14, 165, 233, 0.16);
  --fog-glow-mist: rgba(150, 170, 190, 0.32);
  --fog-stratum: rgba(255, 255, 255, 0.75);
  --fog-texture-opacity: 0.55;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(209, 218, 229, 0.8);
  --partner-bg: rgba(14, 165, 233, 0.09);
  --partner-border: rgba(14, 165, 233, 0.35);

  --font-sans: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter Display", var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease-rise: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cl-bg: #0d1117;
    --cl-surface: #161b22;
    --cl-brand: #2fbc63;
    --cl-brand-dark: #3ecb72;
    --cl-brand-tint: #123122;
    --cl-info: #38bdf8;
    --cl-text: #e6edf3;
    --cl-text-sub: #b6c2cf;
    --cl-border: #2a323d;

    --fog-glow-brand: rgba(47, 188, 99, 0.2);
    --fog-glow-info: rgba(56, 189, 248, 0.14);
    --fog-glow-mist: rgba(140, 160, 185, 0.12);
    --fog-stratum: rgba(200, 220, 235, 0.1);
    --fog-texture-opacity: 0.16;
    --glass: rgba(22, 27, 34, 0.45);
    --glass-border: rgba(140, 160, 185, 0.18);
    --partner-bg: rgba(56, 189, 248, 0.1);
    --partner-border: rgba(56, 189, 248, 0.35);
  }
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cl-bg);
  color: var(--cl-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

::selection {
  background: var(--cl-brand-tint);
}

:focus-visible {
  outline: 2px solid var(--cl-brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- fog ---------- */

.fog {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.fog-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.fog-glow-a {
  width: 70vmax;
  height: 46vmax;
  left: -10vmax;
  top: -14vmax;
  background: radial-gradient(closest-side, var(--fog-glow-brand), transparent);
  animation: drift-a 48s ease-in-out infinite alternate;
}
.fog-glow-b {
  width: 60vmax;
  height: 42vmax;
  right: -18vmax;
  bottom: -16vmax;
  background: radial-gradient(closest-side, var(--fog-glow-info), transparent);
  animation: drift-b 64s ease-in-out infinite alternate;
}
.fog-glow-c {
  width: 90vmax;
  height: 30vmax;
  left: -20vmax;
  top: 38%;
  background: radial-gradient(closest-side, var(--fog-glow-mist), transparent);
  animation: drift-c 86s ease-in-out infinite alternate;
}

.fog-texture {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -1200px;
  right: 0;
  background: url("/fog.svg") repeat-x left center / 1200px 100%;
  opacity: var(--fog-texture-opacity);
  animation: roll 140s linear infinite;
  will-change: transform;
}

.strata {
  position: absolute;
  inset: 0;
}
.stratum {
  position: absolute;
  height: 14px;
  border-radius: 999px;
  background: var(--fog-stratum);
  filter: blur(10px);
  will-change: transform;
}
.s1 {
  top: 12%;
  left: -10%;
  width: 46%;
  opacity: 0.9;
  animation: slide 38s ease-in-out infinite alternate;
}
.s2 {
  top: 24%;
  right: -8%;
  width: 52%;
  height: 20px;
  opacity: 0.6;
  animation: slide 52s ease-in-out -12s infinite alternate-reverse;
}
.s3 {
  top: 41%;
  left: -14%;
  width: 34%;
  height: 10px;
  opacity: 0.5;
  animation: slide 44s ease-in-out -20s infinite alternate;
}
.s4 {
  top: 58%;
  right: -10%;
  width: 40%;
  opacity: 0.5;
  animation: slide 60s ease-in-out -6s infinite alternate-reverse;
}
.s5 {
  top: 73%;
  left: -12%;
  width: 44%;
  height: 20px;
  opacity: 0.6;
  animation: slide 46s ease-in-out -30s infinite alternate;
}
.s6 {
  top: 88%;
  right: -6%;
  width: 50%;
  opacity: 0.9;
  animation: slide 56s ease-in-out -18s infinite alternate-reverse;
}

@keyframes drift-a {
  to {
    transform: translate(14vmax, 8vmax) scale(1.12);
  }
}
@keyframes drift-b {
  to {
    transform: translate(-16vmax, -6vmax) scale(1.08);
  }
}
@keyframes drift-c {
  to {
    transform: translate(22vmax, -4vmax) scale(1.15);
  }
}
@keyframes roll {
  to {
    transform: translateX(1200px);
  }
}
@keyframes slide {
  to {
    transform: translateX(18vw);
  }
}

/* ---------- layout ---------- */

.top,
.hero,
.legal,
.foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 40px;
  height: 40px;
}
.brand-sub {
  font-weight: 500;
  color: var(--cl-text-sub);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.lang {
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--cl-text-sub);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.lang:hover {
  color: var(--cl-brand);
  border-color: var(--cl-brand);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--cl-brand-tint);
  color: var(--cl-brand-dark);
  font-size: 13px;
  font-weight: 500;
}

.flags {
  display: inline-flex;
  gap: 4px;
}
.flags img {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(40px, 8.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.title span {
  display: block;
}
.title-accent {
  background: linear-gradient(100deg, var(--cl-brand) 10%, var(--cl-info) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

.pitch {
  max-width: 34em;
  text-wrap: balance;
  margin: 24px 0 0;
  color: var(--cl-text-sub);
  font-size: clamp(16px, 2.2vw, 19px);
}

/* ---------- countdown ---------- */

.launch {
  margin-top: 44px;
}

.launch-label {
  margin: 0 0 14px;
  font: 500 13px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-text-sub);
}
.launch-label time {
  color: var(--cl-brand-dark);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.countdown[hidden],
.imminent[hidden] {
  display: none;
}

.unit {
  min-width: 86px;
  padding: 16px 10px 12px;
  border-radius: 15px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.value {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.label {
  display: block;
  margin-top: 8px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-text-sub);
}

.imminent {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(26px, 5vw, 38px);
  color: var(--cl-brand);
}

/* ---------- services ---------- */

.services {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  text-align: left;
}
.services li {
  padding: 16px 18px;
  border-radius: 15px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.services .partner {
  padding: 0;
  background: linear-gradient(var(--partner-bg), var(--partner-bg)), var(--glass);
  border-color: var(--partner-border);
  transition: border-color 0.2s;
}
.services .partner:hover {
  border-color: var(--cl-info);
}
.tile-link {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border-radius: 15px;
  text-decoration: none;
}
.tile-link:focus-visible {
  border-radius: 15px;
}
.services .out {
  display: inline;
  margin: 0;
  font-size: 14px;
  color: var(--cl-info);
}
.services strong {
  display: block;
  font-weight: 500;
  font-size: 15px;
  color: var(--cl-text);
}
.services span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--cl-text-sub);
}

/* ---------- legal notice ---------- */

.legal {
  flex: 1;
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 48px;
}
.legal h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.legal section {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: 15px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.legal h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 500;
}
.legal p {
  margin: 0 0 10px;
  color: var(--cl-text-sub);
  font-size: 15px;
}
.legal p:last-child {
  margin-bottom: 0;
}
.legal dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
.legal dl div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
}
.legal dt {
  color: var(--cl-text-sub);
  font-size: 14px;
}
.legal dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.legal a {
  color: var(--cl-brand-dark);
}
.legal-source {
  margin-top: 20px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .legal dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

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

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  padding-top: 8px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--cl-text-sub);
}
.foot a {
  text-decoration: none;
  transition: color 0.2s;
}
.foot a:hover {
  color: var(--cl-brand);
}

/* ---------- entrance: out of the fog ---------- */

.rise {
  animation: rise 1.1s var(--ease-rise) both;
}
.r1 {
  animation-delay: 0.05s;
}
.r2 {
  animation-delay: 0.2s;
}
.r3 {
  animation-delay: 0.35s;
}
.r4 {
  animation-delay: 0.55s;
}
.r5 {
  animation-delay: 0.75s;
}
.r6 {
  animation-delay: 0.95s;
}
.r7 {
  animation-delay: 1.15s;
}

@keyframes rise {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

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

@media (max-width: 860px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 32px;
  }
  .countdown {
    gap: 8px;
  }
  .unit {
    min-width: 0;
    padding: 12px 4px 10px;
    border-radius: 12px;
  }
  .label {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .foot {
    flex-direction: column;
    align-items: center;
  }
  .foot .dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
