/* Eutyxo landing page.

   Same visual family as monotonic.tech: Roboto Mono, near-neutral dark
   ground, one saturated accent, HDR wordmark. The chain colours are
   semantic and are the only two hues on the page besides the accent. */

:root {
  --btc: #f7931a;
  --ada: #4c8dff;

  --bg: #212124;
  --bg-sunk: #1a1a1d;
  --panel: rgba(255, 255, 255, 0.028);
  --fg: #e0e0e0;
  --fg-dim: #b0b0b0;
  --muted: #7e7e86;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #f7931a;
  --accent-soft: rgba(247, 147, 26, 0.35);
  --glow: 0.55;
  --shape-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

:root[data-theme="light"] {
  --bg: #f4f3ef;
  --bg-sunk: #eceae4;
  --panel: rgba(0, 0, 0, 0.022);
  --fg: #24242a;
  --fg-dim: #4a4a52;
  --muted: #74747e;
  --line: rgba(0, 0, 0, 0.12);
  --btc: #c9700a;
  --ada: #2f5fd0;
  --accent: #c9700a;
  --accent-soft: rgba(201, 112, 10, 0.35);
  --glow: 0.14;
  --shape-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f3ef;
    --bg-sunk: #eceae4;
    --panel: rgba(0, 0, 0, 0.022);
    --fg: #24242a;
    --fg-dim: #4a4a52;
    --muted: #74747e;
    --line: rgba(0, 0, 0, 0.12);
    --btc: #c9700a;
    --ada: #2f5fd0;
    --accent: #c9700a;
    --accent-soft: rgba(201, 112, 10, 0.35);
    --glow: 0.14;
    --shape-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Roboto Mono", monospace;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* HDR wordmark.
   No browser implements brighter-than-white CSS colours yet (css-color-hdr is
   still an editor's draft), so the luminance comes from a 16x16 PQ-encoded
   AVIF swatch clipped to the glyphs. Regenerate with tools/make-hdr-swatch.sh.

   Dark ground only: on the light theme a >SDR-white wordmark reads as a
   blown-out hole rather than a highlight. background-color is the SDR
   fallback and keeps the text visible if the AVIF fails to decode. */
@media (dynamic-range: high) {
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hdr {
      background-color: #f5f5f5;
      background-image: url("assets/hdr-white.avif");
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      dynamic-range-limit: no-limit;
    }
  }
  :root[data-theme="dark"] .hdr {
    background-color: #f5f5f5;
    background-image: url("assets/hdr-white.avif");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    dynamic-range-limit: no-limit;
  }
}

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

.hero {
  position: relative;
  flex: 1 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(
    ellipse 90% 70% at 50% 45%,
    var(--bg) 40%,
    var(--bg-sunk) 100%
  );
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* The mark sits over the graph, so it needs its own legibility floor while
   still letting the pointer reach the canvas underneath. */
.hero-content {
  position: relative;
  z-index: 1;
  pointer-events: none;
  text-align: center;
  padding: 2rem 1.25rem;
  max-width: min(92vw, 40rem);
}
.hero-content::before {
  content: "";
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    var(--bg) 34%,
    transparent 72%
  );
}
.hero-content a,
.hero-content .link-off {
  pointer-events: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--muted);
}
.eyebrow-x {
  color: var(--muted);
  opacity: 0.55;
  margin: 0 0.15rem;
}
.chain-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.chain-dot-btc {
  background: var(--btc);
  box-shadow: 0 0 8px rgba(247, 147, 26, var(--glow));
}
.chain-dot-ada {
  background: var(--ada);
  box-shadow: 0 0 8px rgba(76, 141, 255, var(--glow));
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: "Roboto Mono", monospace;
  font-weight: 400;
  font-size: clamp(38px, 11vw, 76px);
  letter-spacing: -0.01em;
  margin: 0;
}
.logo-accent {
  color: var(--accent);
  font-weight: 300;
}
.logo-word {
  padding: 0 0.06em;
}

.tagline {
  font-family: "Roboto", sans-serif;
  font-style: italic;
  font-weight: 100;
  font-size: clamp(15px, 3.4vw, 20px);
  line-height: 1.5;
  margin: 0.7em 0 0;
  color: var(--fg-dim);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
}
.cta-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 10.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  text-align: left;
  transition:
    border-color 0.15s,
    color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.cta-label {
  font-size: 15px;
}
.cta-note {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
a.cta-link:hover,
a.cta-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px -14px var(--accent);
  outline: none;
}
a.cta-link:hover .cta-note,
a.cta-link:focus-visible .cta-note {
  color: var(--accent-soft);
}

.hero-hint {
  margin: 2.4rem 0 0;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.75;
}

/* ---- inactive links ------------------------------------------------ */

.link-off {
  position: relative;
  color: var(--muted);
  cursor: not-allowed;
  border-style: dashed;
}
.link-off::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.3rem 0.55rem;
  font-size: 12px;
  background: var(--bg-sunk);
  border: 1px solid var(--accent);
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  pointer-events: none;
}
.link-off:hover::after,
.link-off:focus-visible::after {
  opacity: 1;
}
.link-off:focus-visible {
  outline: none;
  border-color: var(--muted);
}

/* ---- features ------------------------------------------------------ */

.page {
  width: min(92vw, 68rem);
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.5rem;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.section-rule {
  width: 2.2rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* Cells are separated by the grid's own background showing through a 1px
   gap, so each card paints an opaque ground of its own. */
.feature {
  position: relative;
  padding: 1.9rem 1.6rem 2rem;
  background: var(--bg);
  transition: background 0.18s;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.22s ease-out;
}
.feature:hover {
  background: var(--bg-sunk);
}
.feature:hover::before {
  transform: scaleY(1);
}

.feature-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.1rem;
}
.feature h3 {
  margin: 0 0 0.7rem;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--fg-dim);
  font-weight: 300;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 13px;
}
.by {
  margin: 0;
  color: var(--muted);
}
.by-name {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0 0.05em;
}
.by-name:hover,
.by-name:focus-visible {
  border-bottom-color: var(--accent);
  outline: none;
}

/* ---- theme toggle -------------------------------------------------- */

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

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

@media (max-width: 46rem) {
  .page {
    padding: 3.5rem 0 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
