:root {
  --ink: #e8eef1;
  --ink-dim: #8a9ca5;
  --ink-soft: #b8c6cd;
  --bg: #05141a;
  --bg-2: #0b2430;
  --bg-3: #123a4a;
  --teal: #14b8a6;
  --pearl: #f2e7d1;
  --pearl-dim: #c9b896;
  --accent: #7ed5c6;
  --line: rgba(232, 238, 241, 0.08);
  --line-strong: rgba(232, 238, 241, 0.16);
  --radius: 16px;
  --radius-lg: 24px;

  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  position: relative;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(900px 700px at 85% 30%, rgba(126, 213, 198, 0.10), transparent 55%),
    radial-gradient(1000px 600px at 50% 110%, rgba(242, 231, 209, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, #082432 100%);
  animation: bgShift 24s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1.04); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
}

#pearls {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 56px);
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pearl);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 300ms var(--ease);
}

.brand:hover { opacity: 1; }

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--pearl);
}

.brand-word {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.28em;
}

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.lang-btn {
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}

.lang-btn:hover { color: var(--ink); }

.lang-btn[aria-pressed="true"] {
  color: var(--bg);
  background: var(--pearl);
}

.hero {
  max-width: 960px;
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 80px);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(20, 184, 166, 0.08);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 700ms 200ms var(--ease) forwards;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(20, 184, 166, 0); }
}

.title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 900ms var(--ease) forwards;
}

.title-line.line-1 { animation-delay: 300ms; }
.title-line.line-2 { animation-delay: 450ms; }

.title em {
  font-style: italic;
  font-weight: 300;
  color: var(--pearl);
  background: linear-gradient(135deg, var(--pearl) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 900ms 600ms var(--ease) forwards;
}

.waitlist {
  max-width: 560px;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 900ms 800ms var(--ease) forwards;
}

.field {
  display: flex;
  align-items: stretch;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.field:focus-within {
  border-color: var(--accent);
  background: rgba(20, 184, 166, 0.08);
}

.field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 12px 16px;
}

.field input::placeholder { color: var(--ink-dim); }

.submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pearl);
  color: var(--bg);
  border: 0;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease);
  white-space: nowrap;
}

.submit:hover {
  background: #fff4dd;
  transform: translateX(2px);
}

.submit:active { transform: translateX(0) scale(0.98); }

.submit-arrow {
  width: 16px;
  height: 16px;
  transition: transform 220ms var(--ease);
}

.submit:hover .submit-arrow { transform: translateX(3px); }

.submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.privacy {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
  padding-left: 16px;
}

.status {
  margin-top: 12px;
  font-size: 0.86rem;
  padding-left: 16px;
  min-height: 1.4em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 240ms var(--ease);
}

.status.visible { opacity: 1; }
.status.error { color: #ff8a8a; }

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 900ms 1000ms var(--ease) forwards;
}

.pillars li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--pearl-dim);
  letter-spacing: 0.08em;
}

.pillar-text {
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(20px, 5vw, 56px) 32px;
  font-size: 0.8rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.foot a:hover {
  color: var(--pearl);
  border-color: var(--pearl);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .field {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 8px;
  }
  .field input { padding: 14px 18px; }
  .submit {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 36px;
  }
  .foot {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .gradient-bg { animation: none; }
  #pearls { display: none; }
}
