/* Edgepool landing — styles. Asset URLs are relative to this file (./assets/). */
:root {
  --ep-midnight: #161826; --ep-abyss: #0D0F18; --ep-surface: #1D1F2C; --ep-surface-2: #232532;
  --ep-white: #E9E9ED; --ep-slate-200: #CFD3E5; --ep-slate-300: #B2B6CA; --ep-slate-400: #9397AB; --ep-slate-500: #75798C;
  --ep-line: #3F424D;
  --ep-aqua: #49E6D7; --ep-aqua-300: #81EADE; --ep-aqua-200: #BBF6EE; --ep-aqua-ink: #0D0F18;
  --ep-violet: #9184D9; --ep-amber: #F0BE67;
  --ep-font-display: 'Inter Tight', Inter, system-ui, sans-serif;
  --ep-font-body: Inter, system-ui, sans-serif;
  --ep-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ep-abyss); color: var(--ep-white); -webkit-font-smoothing: antialiased; }

.ep-page {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  background:
    radial-gradient(70% 55% at 0% 0%, rgba(145,132,217,0.07), transparent 70%),
    radial-gradient(120% 90% at 50% 38%, var(--ep-midnight) 0%, var(--ep-abyss) 100%);
  font-family: var(--ep-font-body); color: var(--ep-white);
}
.ep-page :focus-visible { outline: 2px solid var(--ep-aqua); outline-offset: 3px; }
.ep-page a { color: var(--ep-aqua); }
.ep-page a:hover { color: var(--ep-aqua-300); }

/* Background layers (decorative, aria-hidden) */
.ep-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ep-bg__tile {
  position: absolute; inset: -12px; opacity: 0.5;
  background-image: url(./assets/pattern-pool-tile.svg); background-size: 160px 160px;
  -webkit-mask-image: radial-gradient(45% 55% at 0% 0%, #000 0%, transparent 100%);
          mask-image: radial-gradient(45% 55% at 0% 0%, #000 0%, transparent 100%);
  will-change: transform;
}
.ep-bg__mark {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  height: min(80vh, 780px); aspect-ratio: 38 / 40; opacity: 0.06;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 88%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 88%);
}
.ep-bg__mark img { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform; }
.ep-bg__flow { position: absolute; inset: 0; will-change: transform; }
.ep-bg__flow svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Layout */
.ep-shell {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 4vw, 44px) clamp(20px, 4vw, 48px);
}
.ep-header { display: flex; align-items: center; }
.ep-logo { display: inline-flex; }
.ep-logo img { display: block; height: clamp(24px, 2.2vw, 30px); width: auto; }
.ep-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(24px, 5vh, 72px) 0 clamp(32px, 9vh, 128px);
}

.ep-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ep-line);
  font-family: var(--ep-font-mono); font-size: clamp(10.5px, 1.1vw, 12px); letter-spacing: 0.14em; color: var(--ep-slate-300);
}
.ep-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ep-aqua); flex: none; }
/* Gradient text; background-position + filter are animated by edgepool-motion.js */
.ep-eyebrow__glow {
  color: var(--ep-aqua);
  background-image: linear-gradient(100deg, #49E6D7 0%, #9184D9 25%, #49E6D7 50%, #9184D9 75%, #49E6D7 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(73,230,215,0.35)) drop-shadow(0 0 10px rgba(145,132,217,0.25));
}

.ep-title {
  margin: clamp(20px, 3vh, 28px) 0 0; max-width: 15ch;
  font-family: var(--ep-font-display); font-weight: 500; font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; color: var(--ep-white);
}
.ep-title__accent { color: var(--ep-aqua); }
.ep-lede {
  margin: clamp(18px, 2.6vh, 26px) 0 0; max-width: 620px;
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--ep-slate-200); text-wrap: pretty;
}

.ep-btn {
  width: 100%; height: 50px; border: 0; border-radius: 10px;
  background: var(--ep-aqua); color: var(--ep-aqua-ink);
  font-family: var(--ep-font-body); font-size: 16px; font-weight: 500; cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.ep-btn:hover { background: var(--ep-aqua-300); }
.ep-btn:active { background: var(--ep-aqua-200); transform: translateY(1px); }
.ep-btn:disabled { opacity: 0.6; cursor: progress; }
.ep-cta { margin-top: clamp(28px, 4.4vh, 40px); max-width: 300px; height: 52px; padding: 0 28px; letter-spacing: -0.005em; }

.ep-points {
  list-style: none; margin: clamp(24px, 3.6vh, 36px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 44px;
  font-size: 14px; color: var(--ep-slate-300);
}
.ep-points li { display: flex; align-items: center; gap: 10px; }
.ep-points li::before { content: ""; width: 14px; height: 1px; background: var(--ep-aqua); }

.ep-footer { display: flex; justify-content: center; text-align: center; }
.ep-footer p { margin: 0; max-width: 560px; font-size: 12.5px; line-height: 1.5; color: var(--ep-slate-400); text-wrap: pretty; }

/* Waitlist modal */
.ep-backdrop {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(13,15,24,0.64); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ep-backdrop[hidden] { display: none; }
.ep-dialog {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: clamp(24px, 3vw, 32px); border-radius: 14px; background: var(--ep-surface);
  box-shadow: 0 0 0 1px var(--ep-line), 0 24px 64px rgba(0,0,0,0.55); text-align: left;
}
.ep-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--ep-slate-300); cursor: pointer;
}
.ep-close:hover { background: var(--ep-surface-2); color: var(--ep-white); }
.ep-dialog h2 { margin: 0; padding-right: 40px; font-family: var(--ep-font-display); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.ep-desc { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ep-slate-300); }
.ep-form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.ep-form[hidden], .ep-view[hidden], .ep-success[hidden] { display: none; }
.ep-field { display: flex; flex-direction: column; gap: 8px; }
.ep-label { font-family: var(--ep-font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ep-slate-300); }
.ep-select-wrap { position: relative; }
.ep-select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ep-slate-400); pointer-events: none; }
.ep-control {
  width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--ep-midnight); box-shadow: inset 0 0 0 1px var(--ep-line);
  color: var(--ep-white); font-family: var(--ep-font-body); font-size: 16px;
}
.ep-control::placeholder { color: var(--ep-slate-500); opacity: 1; }
.ep-control:hover { box-shadow: inset 0 0 0 1px var(--ep-slate-500); }
.ep-control[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--ep-amber); }
select.ep-control { padding-right: 44px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ep-error { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13.5px; color: var(--ep-amber); }
.ep-error[hidden] { display: none; }
.ep-privacy { margin: -6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ep-slate-400); text-align: center; }
.ep-success { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ep-success h2 { margin-top: 8px; padding-right: 0; }
.ep-success .ep-desc { margin: 0; }
.ep-success .ep-btn { margin-top: 16px; }
.ep-success__icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--ep-aqua); color: var(--ep-aqua); }

.ep-header { justify-content: space-between; gap: 16px; }
.ep-social {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--ep-line); color: var(--ep-slate-200);
  transition: color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.ep-page a.ep-social { color: var(--ep-slate-200); }
.ep-page a.ep-social:hover { color: var(--ep-white); box-shadow: inset 0 0 0 1px var(--ep-slate-500); background: rgba(233,233,237,0.04); }

/* --- v2 updates --- */
.ep-logo img { height: clamp(30px, 3vw, 40px); }
.ep-header-actions { display: flex; align-items: center; gap: 12px; }
.ep-btn--sm { width: auto; height: 44px; padding: 0 20px; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap; }
.ep-lede { max-width: 880px; }
.ep-cta { font-size: 26px; }
.ep-footer { flex-direction: column; align-items: center; gap: clamp(18px, 2.6vh, 28px); }
.ep-powered { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px clamp(20px, 3vw, 40px); }
.ep-powered__label { font-family: var(--ep-font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ep-slate-400); }
.ep-powered__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px clamp(20px, 3vw, 40px); }
.ep-powered__logos img { display: block; height: 32px; width: auto; max-width: 140px; object-fit: contain; opacity: 0.8; filter: grayscale(1) brightness(1.5); }
.ep-footer p.ep-disclaimer { max-width: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; font-size: clamp(11px, 1vw, 12.5px); }
.ep-disclaimer span { white-space: nowrap; }
.ep-disclaimer .ep-disclaimer__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ep-slate-500); flex: none; }

/* small phones: keep header actions inside the viewport */
@media (max-width: 420px) {
  .ep-header { gap: 8px; }
  .ep-header-actions { gap: 8px; }
  .ep-btn--sm { padding: 0 14px; font-size: 14px; }
  .ep-logo img { height: 28px; }
}
