/* Compound TMX — single page, dark theme */

:root {
  --bg: #000000;
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --accent: #00d395;
  --glow: rgba(0, 211, 149, 0.09);

  --shell: 1180px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- ambient background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 0%, transparent 78%);
  opacity: 0.9;
}

.bg__glow {
  position: absolute;
  left: 50%;
  top: -32vh;
  width: 120vw;
  height: 95vh;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 46% 52% at 50% 50%, rgba(255, 255, 255, 0.10), transparent 62%),
    radial-gradient(ellipse 60% 60% at 50% 55%, var(--glow), transparent 70%);
  filter: blur(14px);
  animation: breathe 11s var(--ease) infinite alternate;
}

/* thin light sweep under the hero */
.bg__beam {
  position: absolute;
  left: 50%;
  top: 86%;
  width: min(1100px, 92vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.35;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
}

@keyframes breathe {
  from { opacity: 0.65; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;    transform: translateX(-50%) scale(1.08); }
}

/* ---------- header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.header.is-stuck {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ---------- logo: mark + wordmark (як у Compound TMX) ---------- */
/* 1em == розмір мітки; уся композиція масштабується від --logo */

.logo {
  --logo: 32px;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--logo);
  line-height: 1;
  color: var(--ink);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.logo__mark {
  width: 1em;
  height: 1em;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 211, 149, 0.22), 0 0 22px rgba(0, 211, 149, 0.28);
}

.logo__word {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand { display: inline-flex; align-items: center; }
.brand:hover .logo { opacity: 0.85; transform: translateY(-1px); }
.brand:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.75); outline-offset: 6px; border-radius: 4px; }

.auth { display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */

.btn {
  --pad-y: 10px;
  --pad-x: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.btn--ghost {
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.btn--solid {
  color: #000;
  background: #fff;
  border-color: #fff;
}

.btn--solid:hover {
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.18);
}

.btn--lg {
  --pad-y: 15px;
  --pad-x: 34px;
  font-size: 14px;
}

/* ---------- hero ---------- */

main { position: relative; z-index: 10; flex: 1 0 auto; display: flex; }

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
}

.hero__inner { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 211, 149, 0.7);
}

.title {
  margin: 0;
  font-size: clamp(2.6rem, 8.2vw, 6.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 18%, #a8b0bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title__accent {
  background: linear-gradient(180deg, #ffffff 10%, #7f8b9c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 300;
}

.lede {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 300;
  line-height: 1.7;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

.divider {
  width: min(560px, 100%);
  height: 1px;
  margin: 64px auto 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.kicker {
  margin: 26px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--line-soft);
  padding: 26px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- reveal on load/scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  :root { --header-h: 70px; }

  .shell { padding-inline: 18px; }
  .logo { --logo: 26px; }
  .auth { gap: 8px; }
  .btn { --pad-x: 14px; font-size: 11.5px; }
  .btn--lg { --pad-x: 26px; --pad-y: 14px; font-size: 13px; }
  .cta .btn { flex: 1 1 auto; min-width: 150px; }
  .eyebrow { letter-spacing: 0.16em; font-size: 10px; }
  .kicker { letter-spacing: 0.22em; }
}

@media (max-width: 420px) {
  .header .btn { --pad-x: 12px; letter-spacing: 0.04em; }
  .divider { margin-top: 46px; }
}

@media (max-width: 340px) {
  /* header keeps only the primary action on very small screens */
  .header .btn--ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg__glow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
