/* ── 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: 24px; height: 24px; }

.nav-brand span {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--blue-end), var(--blue-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.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: 72px;
  height: 72px;
  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, var(--blue-end), var(--blue-start));
  -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: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.phone-frame {
  width: 260px;
  height: 520px;
  border-radius: 40px;
  background: linear-gradient(180deg, #141E30 0%, #0D1420 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-notch {
  margin-top: 14px;
  width: 90px;
  height: 24px;
  border-radius: 14px;
  background: var(--bg);
}

.phone-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.phone-screen-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.15);
  text-align: center;
  line-height: 1.8;
}

.phone-home {
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 14px;
}

.preview-text { max-width: 320px; }
.preview-text h3 { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.preview-text p { font-size: 14px; color: rgba(255, 255, 255, 0.5); line-height: 1.7; }

/* ── 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, var(--blue-end), var(--blue-start));
  -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 { flex-direction: column; text-align: center; gap: 36px; }
  .phone-frame { width: 220px; height: 440px; border-radius: 32px; }
  .preview-text { 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-glow { width: 350px; height: 350px; }
  .nav-brand span { font-size: 12px; letter-spacing: 2px; }
}
