/* ========== THEME VARIABLES ========== */
:root {
  --bg: rgb(25, 25, 25);
  --surface: rgb(32, 32, 32);
  --text: #ffffff;
  --border: #818181;
  --muted: #9ca3af;
  --accent: linear-gradient(135deg, #FFE9A3 0%, #D3AF37 40%, #9F7C19 100%);
  --accent-solid: #D3AF37;
  --hover: rgba(188, 188, 188, 0.1);
  --gradient-1: #FFE9A3;
  --gradient-2: #D3AF37;
  --gradient-3: #9F7C19;
}

html[data-theme="light"] {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #111111;
  --border: #bebebe;
  --muted: #6b7280;
  --accent: linear-gradient(135deg, #7bb8d4 0%, #5fa4c4 45%, #3b82f6 100%);
  --accent-solid: #3b82f6;
  --hover: rgba(111, 111, 111, 0.05);
  --gradient-1: #3b82f6;
  --gradient-2: #7c3aed;
  --gradient-3: #5fa4c4;
}

/* ========== BASE ========== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

/* ========== TOP BAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(127,127,127,0.25);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.topbar-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo { height: 34px; width: auto; display: block; }

.icon-btn {
  height: 40px;
  width: 40px;
  border-radius: 14px;
  border: 1px solid rgba(127,127,127,0.35);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border 120ms ease;
}
.icon-btn:hover { background: var(--hover); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0px); }

/* ========== HERO ========== */
.hero {
    padding: 28px 0 18px;
    text-align: center;}

.subhead {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25em;
}

/* Fixed-size box so "Improve your" never moves; only the word inside animates */
.rotator-wrap {
  display: inline-block;
  vertical-align: baseline;
  min-width: 2em;
  min-height: 1.5em;
  overflow: hidden;
  margin: 0;
  text-align: center;
}

/* Moving gradient (left → right) on the rotating word only */
.rotator {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--gradient-1),
    var(--gradient-2),
    var(--gradient-3),
    var(--gradient-1)
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  animation: gradient-flow 2s ease-in-out infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}


.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(127,127,127,0.25);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 13px;
}

/* ========== GRID ========== */
.grid {
  display: flex;
  justify-content: stretch;
  align-items: center;
  margin-top: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ========== WAITLIST (no card, shadow on iframe) ========== */
.waitlist {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.waitlist-header {
  margin-bottom: 16px;
}

.waitlist-title {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-align: center;
}

.waitlist-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.embed-wrap {
  width: 100%;
  min-width: 0; /* lets flex/grid children shrink and use full width */
}

.embed-placeholder {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  text-align: center;
  color: var(--muted);
}

.embed-placeholder iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 600px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.20);
}

.notion-embed {
  width: 100%;
  height: 520px;
  border: 0;
  border-radius: 18px;
}

/* ========== INFO CARD ========== */
.steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent-solid);
  flex: 0 0 auto;
}

.divider {
  height: 1px;
  background: rgba(127,127,127,0.25);
  margin: 16px 0;
}

.mini-title { margin: 0 0 6px; font-size: 14px; }
.muted { margin: 0; color: var(--muted); }

/* ========== FOOTER ========== */
.footer {
  padding: 20px 0 26px;
  border-top: 1px solid rgba(127,127,127,0.25);
  color: var(--muted);
  text-align: center;
}