/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --bg: #07080f;
  --bg-2: #0b0d18;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.22);
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a78bfa;
  --text: #f1f5f9;
  --text-2: rgba(241, 245, 249, 0.58);
  --text-3: rgba(241, 245, 249, 0.35);

  /* Spacing */
  --section-gap: 120px;
  --card-radius: 24px;
  --pill-radius: 9999px;

  /* Blur */
  --blur: blur(40px) saturate(180%);
  --blur-sm: blur(16px) saturate(160%);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* @sentpost.com inline accent */
strong {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ─── Background Orbs ────────────────────────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: drift 24s ease-in-out infinite;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -200px; left: -150px;
  animation-duration: 22s;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: 5%; right: -150px;
  animation-delay: -11s;
  animation-duration: 26s;
}
.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: 45%; left: 42%;
  animation-delay: -6s;
  opacity: 0.1;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -40px) scale(1.06); }
  66%       { transform: translate(-30px, 25px) scale(0.94); }
}

/* ─── Utility ────────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-1) 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--card-radius);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pill-radius);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 6px var(--accent-3);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent-3); }
  50%       { opacity: 0.6; box-shadow: 0 0 12px var(--accent-3); }
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled {
  background: rgba(7, 8, 15, 0.7);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  width: 26px; height: 26px;
  object-fit: contain;
  position: relative;
  top: -1px; /* optical alignment with wordmark */
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-pill {
  padding: 9px 20px;
  border-radius: var(--pill-radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-pill:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--pill-radius);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Shimmer animation on button */
.btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.btn-text { position: relative; z-index: 1; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form-input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus {
  border-color: var(--accent-1);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}
.form-hint {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
  transition: color 0.3s;
}
.form-hint.success { color: #34d399; }
.form-hint.error   { color: #f87171; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 40px 100px;
}
.hero-content { flex: 1; max-width: 560px; }

.hero-title {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 460px;
}
.waitlist-card {
  padding: 28px;
  max-width: 500px;
}

/* ─── Hero Visual ────────────────────────────────────────────────────────── */
.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

.app-window {
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  background: rgba(12, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 0 0.5px rgba(255,255,255,0.08) inset,
    0 1px 0 rgba(255,255,255,0.15) inset;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.window-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.window-body { position: relative; }
.app-screenshot { width: 100%; display: block; }

/* ── App Placeholder ──────────────────────────────────────────────────────── */
.app-placeholder {
  display: flex;
  height: 340px;
  font-size: 12px;
}
.app-sidebar {
  width: 140px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-label {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.sidebar-label.active,
.sidebar-label:not(.muted) {
  background: rgba(99,102,241,0.2);
  color: var(--accent-3);
}
.sidebar-label.muted { color: var(--text-3); }

.email-list {
  width: 220px;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.email-row {
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.email-row.active { background: rgba(99,102,241,0.18); }
.email-row:not(.active):hover { background: rgba(255,255,255,0.04); }
.email-sender { font-weight: 600; font-size: 12px; margin-bottom: 3px; }
.email-preview { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.email-detail {
  flex: 1;
  padding: 20px 18px;
}
.detail-from { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.detail-subject { font-size: 12px; color: var(--text-2); margin-bottom: 16px; }
.detail-lines { display: flex; flex-direction: column; gap: 8px; }
.detail-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}
.detail-line.short  { width: 55%; }
.detail-line.medium { width: 75%; }

.window-glow {
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.35) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.section-title {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto 60px;
}

/* ─── Features ───────────────────────────────────────────────────────────── */
.features {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px 28px;
  text-align: left;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.15);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 8px rgba(139,92,246,0.5));
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature-card p { font-size: 15px; color: var(--text-2); line-height: 1.65; }

/* ─── How It Works ───────────────────────────────────────────────────────── */
.how {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  text-align: left;
}
.step {
  flex: 1;
  max-width: 260px;
  padding: 0 24px;
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step p { font-size: 15px; color: var(--text-2); line-height: 1.6; }
.step-connector {
  flex-shrink: 0;
  width: 60px;
  height: 1px;
  margin-top: 26px;
  background: linear-gradient(90deg, rgba(99,102,241,0.4), rgba(139,92,246,0.4));
}

/* ─── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
}
.cta-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 52px 48px;
  text-align: center;
  box-shadow: 0 0 80px rgba(99,102,241,0.12);
}
.cta-card h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-card p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.cta-card .form-row { justify-content: center; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo { margin-bottom: 4px; }
.footer-tagline { font-size: 14px; color: var(--text-2); }
.footer-legal  { font-size: 13px; color: var(--text-3); }

/* ─── Reveal Animation ───────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    padding: 120px 28px 80px;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-badge, .badge { margin-left: auto; margin-right: auto; }
  .waitlist-card { max-width: 100%; }
  .hero-visual { width: 100%; }
  .features-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 360px; text-align: center; }
  .step-num { margin-left: auto; margin-right: auto; }
  .step-connector { width: 1px; height: 40px; margin: 0; background: linear-gradient(180deg, rgba(99,102,241,0.4), rgba(139,92,246,0.4)); }
  .cta-card { padding: 36px 24px; }
}

@media (max-width: 540px) {
  .nav { padding: 12px 16px; }
  .hero { padding: 100px 20px 60px; }
  .section-inner { padding: 0 20px; }
  .form-row { flex-direction: column; }
  .form-input { min-width: 0; width: 100%; }
  .btn-primary { width: 100%; }
}
