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

:root {
  --bg: #0B121C;
  --blue-start: #0041F9;
  --blue-end: #457FFF;
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --font: 'Poppins', -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

a { color: var(--blue-end); text-decoration: none; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(11, 18, 28, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img { width: 38px; height: 38px; }

.nav-links { display: flex; gap: 24px; }

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-secondary); }
.nav-links a.active { color: var(--text-secondary); }

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

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 127, 255, 0.18) 0%, rgba(0, 65, 249, 0.06) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: breathe 6s ease-in-out infinite, glow-enter 1.8s ease-out both;
}

.hero-content { position: relative; z-index: 2; }

.hero-content .logo {
  width: 128px;
  height: 128px;
  margin-bottom: 24px;
  animation: fade-up 0.8s ease-out both 0.3s;
}

.hero-content .title-wrap {
  animation: fade-up 0.8s ease-out both 0.55s;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #457FFF, #0041F9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hero-content .tagline {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 44px;
  animation: fade-up 0.8s ease-out both 0.8s;
}

.hero-content .cta {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--blue-start), var(--blue-end));
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fade-up 0.8s ease-out both 1.05s;
}

.hero-content .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 65, 249, 0.4);
}

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fade-up-centered 0.8s ease-out both 1.5s;
  transition: opacity 0.5s;
}

.scroll-hint span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce-arrow 2s ease-in-out infinite 2s;
}

/* ── Sections (shared) ── */
.section {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}

.section-heading {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(69, 127, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 65, 249, 0.15), rgba(69, 127, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}

.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: rgba(255, 255, 255, 0.45); line-height: 1.6; }

/* ── App Preview ── */
.app-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 52px;
  align-items: center;
}

.preview-copy h3 {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.preview-copy h3 em {
  font-style: normal;
  background: linear-gradient(90deg, #0041F9, #457FFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #457FFF;
}

.preview-copy p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.8;
}

.phone-mockup {
  width: 230px;
  height: 470px;
  background: #141C26;
  border-radius: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 32px 70px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(0, 65, 249, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.phone-island {
  width: 76px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  flex-shrink: 0;
}

.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: rgba(20, 28, 38, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-brand-name {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #0041F9, #457FFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #457FFF;
}

.phone-screen-content {
  flex: 1;
  overflow: hidden;
  padding: 10px 11px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.phone-events-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.phone-events-title {
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(90deg, #0041F9, #457FFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #457FFF;
}

.phone-events-sub {
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.3);
}

.phone-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}

.phone-toggle-opt {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.phone-toggle-active {
  background: rgba(0, 65, 249, 0.25);
  border: 1px solid rgba(0, 65, 249, 0.4);
  color: #457FFF;
}

.phone-screen-lbl {
  font-size: 6.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.28);
}

.phone-featured-card {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: 78px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0a2016 0%, #06121e 60%, #160a24 100%);
}

.phone-featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72) 100%);
}

.phone-featured-cat {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 2;
  background: #0041F9;
  border-radius: 20px;
  padding: 2px 6px;
  font-size: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phone-featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  z-index: 2;
}

.phone-featured-date {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.phone-featured-title { font-size: 9.5px; font-weight: 800; }

.phone-event-row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  padding: 8px;
  flex-shrink: 0;
}

.phone-ev-thumb {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.phone-ev-yoga { background: linear-gradient(135deg, #1a3a1e, #0f2010); }
.phone-ev-art  { background: linear-gradient(135deg, #2a1a3a, #1a0f25); }

.phone-ev-body { flex: 1; min-width: 0; }

.phone-ev-name {
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.phone-ev-meta {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 4px;
}

.phone-ev-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-ev-going { font-size: 7px; color: rgba(255, 255, 255, 0.26); }

.phone-rsvp {
  background: linear-gradient(90deg, #0041F9, #457FFF);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 6.5px;
  font-weight: 700;
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 4px 2px;
  background: rgba(20, 28, 38, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border-radius: 10px;
}

.phone-nav-active { background: rgba(0, 65, 249, 0.12); }

.phone-nav-icon { font-size: 14px; line-height: 1; }

.phone-nav-lbl {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.phone-nav-active .phone-nav-lbl { color: #457FFF; }

.phone-home-bar {
  width: 62px;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  margin: 5px auto 7px;
  flex-shrink: 0;
}

.preview-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-feat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s ease;
}

.preview-feat-card:hover { border-color: rgba(69, 127, 255, 0.3); }

.preview-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(0, 65, 249, 0.22), rgba(69, 127, 255, 0.12));
  border: 1px solid rgba(69, 127, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.preview-feat-text h4 { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.preview-feat-text p  { font-size: 11.5px; color: rgba(255, 255, 255, 0.38); line-height: 1.55; }

/* ── Mission ── */
.mission {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.mission .quote {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.mission .quote em {
  font-style: normal;
  background: linear-gradient(135deg, #457FFF, #0041F9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mission .attribution {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Signup ── */
.signup { text-align: center; }

.signup-success {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.signup-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 14px;
  font-family: var(--font);
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form input:focus {
  border-color: rgba(69, 127, 255, 0.5);
  box-shadow: 0 0 20px rgba(69, 127, 255, 0.1);
}

.signup-form input::placeholder { color: rgba(255, 255, 255, 0.25); }

.signup-form button {
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--blue-start), var(--blue-end));
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 65, 249, 0.35);
}

/* ── Content Pages (terms, privacy, help) ── */
.page-header {
  position: relative;
  padding: 100px 24px 32px;
  text-align: center;
}

.page-header .glow-bg {
  display: none;
}

.page-header h1 {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header .updated {
  position: relative;
  font-size: 13px;
  color: var(--text-muted);
}

.content-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.content-body h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.content-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 20px 0 8px;
}

.content-body p,
.content-body li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.content-body ul { padding-left: 20px; }

.content-body a { color: var(--blue-end); }

.content-body .intro { margin-bottom: 24px; }

.content-body .caps {
  text-transform: uppercase;
  font-size: 13px;
}

/* Help page contact card */
.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 40px;
  text-align: center;
}

.contact-card a.cta-button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--blue-start), var(--blue-end));
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card a.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 65, 249, 0.35);
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 48px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  max-width: 900px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-secondary); }

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.15);
}

/* ── Animations ── */
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up-centered {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes glow-enter {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
  50% { transform: translateY(6px) rotate(45deg); opacity: 1; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .section { opacity: 1; transform: none; }
}

/* ── Responsive: 768px ── */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 36px; letter-spacing: 4px; }
  .hero-content .tagline { font-size: 15px; }
  .features-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .app-preview { grid-template-columns: 1fr; justify-items: center; gap: 36px; text-align: center; }
  .signup-form { flex-direction: column; }
  .nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  .section { padding: 60px 20px; }
  .section-heading { font-size: 24px; }
  .mission .quote { font-size: 20px; }
}

/* ── Responsive: 480px ── */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 28px; letter-spacing: 3px; }
  .hero-content .logo { width: 80px; height: 80px; }
  .hero-glow { width: 350px; height: 350px; }
  .nav-brand img { width: 30px; height: 30px; }
}
