/* ============================================================
   Syde Landing Page — Styles
   Brand: navy + terracotta + warm cream
   ============================================================ */

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

:root {
  --navy-950: #0A1422;
  --navy-900: #0E1B2C;
  --navy-800: #18283D;
  --navy-700: #243750;
  --navy-600: #3A4F6B;
  --navy-500: #5A6E89;
  --terra-700: #A35E33;
  --terra-600: #C97B4A;
  --terra-500: #DC9168;
  --terra-300: #EFC6AC;
  --terra-100: #F8E8DC;
  --cream:   #F4F2EE;
  --cream-2: #ECE9E2;
  --paper:   #FBF9F5;
  --white:   #FFFFFF;
  --slate-200: #DDD9CE;
  --slate-400: #8E8978;
  --slate-500: #686452;
  --border: #DDD9CE;
  --text:   #0E1B2C;
  --text-mute: #686452;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --shadow-pop: 0 24px 60px -12px rgba(14,27,44,0.28);
  --shadow-card: 0 1px 0 rgba(14,27,44,0.05), 0 4px 12px -4px rgba(14,27,44,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(14,27,44,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo svg { height: 32px; width: auto; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--terra-600);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.nav-cta:hover { background: var(--terra-700); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
  text-align: center;
}

/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244,242,238,0.045) 1px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
/* Terra glow — bottom right */
.hero::after {
  content: '';
  position: absolute;
  bottom: -140px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,123,74,0.16) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
/* Second glow — top left */
.hero-glow-tl {
  position: absolute;
  top: -160px; left: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(36,55,80,0.7) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(201,123,74,0.15);
  border: 1px solid rgba(201,123,74,0.3);
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra-300);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra-600);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-logo {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}
.hero-logo svg { height: 44px; width: auto; }

.hero-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--terra-500); }

.hero-sub {
  font-size: 17px;
  color: rgba(244,242,238,0.6);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 40px;
}

.hero-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 20px;
}
.hero-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-pill);
  color: var(--cream);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.hero-input::placeholder { color: rgba(244,242,238,0.35); }
.hero-input:focus {
  border-color: rgba(201,123,74,0.5);
  background: rgba(255,255,255,0.1);
}
.hero-btn {
  padding: 12px 22px;
  background: var(--terra-600);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.hero-btn:hover { background: var(--terra-700); transform: translateY(-1px); }

.hero-date {
  font-size: 12px;
  color: rgba(244,242,238,0.35);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(244,242,238,0.3);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}
.hero-scroll svg { opacity: 0.4; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Section shared ── */
.section {
  padding: 96px 24px;
}
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra-600);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-mute);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 56px;
}

/* ── Features grid ── */
.section-features { background: var(--cream); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--terra-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { color: var(--terra-700); }

.feature-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.6;
}

/* ── Preview section ── */
.section-preview {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.section-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244,242,238,0.035) 1px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
.section-preview .section-eyebrow { color: var(--terra-400, #D4936A); }
.section-preview .section-title { color: var(--cream); }
.section-preview .section-sub { color: rgba(244,242,238,0.55); }

/* Browser mockup */
.browser-wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255,255,255,0.08);
}
.browser-chrome {
  background: #1e2d42;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }
.browser-bar {
  flex: 1;
  height: 26px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  font-size: 11px;
  color: rgba(244,242,238,0.35);
  font-family: monospace;
}
.browser-bar-lock { opacity: 0.5; }

/* App chrome inside the browser */
.app-chrome {
  background: var(--paper);
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  height: 460px;
  overflow: hidden;
}

/* Fake sidebar */
.app-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-sidebar-logo {
  padding: 8px 10px 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-mute);
}
.app-nav-item.active {
  background: var(--terra-100);
  color: var(--terra-700);
  font-weight: 600;
}
.app-nav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
.app-nav-item.active .app-nav-dot { opacity: 1; }

/* Fake feed */
.app-feed {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.app-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.app-feed-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.app-feed-btn {
  width: 60px; height: 22px;
  background: var(--terra-600);
  border-radius: var(--r-pill);
  opacity: 0.9;
}

.mock-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}
.mock-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mock-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-meta { display: flex; flex-direction: column; gap: 3px; }
.mock-line {
  height: 8px;
  border-radius: 4px;
  background: var(--cream-2);
}
.mock-card-body { display: flex; flex-direction: column; gap: 6px; }
.mock-event-card {
  background: color-mix(in oklab, var(--terra-600) 8%, var(--white));
  border: 1px solid color-mix(in oklab, var(--terra-600) 18%, transparent);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-event-icon {
  width: 28px; height: 28px;
  background: var(--terra-100);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-event-meta { display: flex; flex-direction: column; gap: 4px; }

/* Fake rail */
.app-rail {
  border-left: 1px solid var(--border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
}
.mock-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.mock-widget-title {
  height: 9px;
  width: 60%;
  background: var(--navy-900);
  border-radius: 4px;
  margin-bottom: 10px;
  opacity: 0.15;
}
.mock-members { display: flex; flex-direction: column; gap: 8px; }
.mock-member {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mock-member-meta { display: flex; flex-direction: column; gap: 3px; }

/* ── Stats strip ── */
.section-stats {
  background: var(--cream-2);
  padding: 64px 24px;
}
.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num .terra { color: var(--terra-600); }
.stat-label {
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
}

/* ── Footer ── */
.footer {
  background: var(--navy-900);
  padding: 56px 40px 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244,242,238,0.03) 1px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand { max-width: 300px; }
.footer-logo { margin-bottom: 14px; }
.footer-tagline {
  font-size: 13.5px;
  color: rgba(244,242,238,0.5);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col {}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,242,238,0.4);
  margin-bottom: 14px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a {
  font-size: 13.5px;
  color: rgba(244,242,238,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col-links a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12.5px;
  color: rgba(244,242,238,0.35);
}
.footer-date { font-size: 12.5px; color: rgba(244,242,238,0.35); }

/* ── Toast notification (waitlist confirmed) ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-800);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-pop);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: #7a1e1e; border-color: rgba(255,100,100,0.2); }
.toast-check {
  width: 20px; height: 20px;
  background: var(--terra-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .app-chrome { grid-template-columns: 160px 1fr; }
  .app-rail { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
}

@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-form { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .app-sidebar { display: none; }
  .app-chrome { grid-template-columns: 1fr; }
}
