/* Ascend — ascendapp.cc */

:root {
  --bg-dark: #060a14;
  --bg-dark-elevated: #0b1020;
  --bg-light: #f4f5f7;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-secondary: #94a3b8;
  --blue: #4d5dfa;
  --blue-light: #6b78ff;
  --blue-glow: rgba(77, 93, 250, 0.45);
  --purple: #7c6cf0;
  --purple-soft: rgba(124, 108, 240, 0.15);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.15);
  --blue-soft: rgba(77, 93, 250, 0.15);
  --gradient-cta: linear-gradient(135deg, #4d5dfa 0%, #6b78ff 100%);
  --gradient-logo: linear-gradient(135deg, #38bdf8 0%, #7c6cf0 55%, #c026d3 100%);
  --radius-pill: 999px;
  --radius-lg: 16px;
  --max-width: 1120px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.88;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.btn-get-ascend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(77, 93, 250, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-get-ascend:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(77, 93, 250, 0.45);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 78% 42%, var(--blue-glow) 0%, transparent 70%),
    linear-gradient(180deg, #060a14 0%, #0a1020 55%, #0d1528 100%);
  pointer-events: none;
}

.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath fill='%23081020' d='M0 180V120L120 80 240 110 360 60 480 95 600 40 720 85 840 30 960 75 1080 50 1200 90 1320 55 1440 100V180Z'/%3E%3Cpath fill='%23060a14' fill-opacity='0.6' d='M0 180V140L160 100 320 130 480 90 640 120 800 70 960 110 1120 80 1280 115 1440 95V180Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-block: 64px 80px;
}

.hero-content {
  max-width: 520px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: min(100%, 420px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* Google Play badge */
.play-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.play-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.play-badge svg {
  display: block;
  height: 52px;
  width: auto;
}

/* ── Philosophy ── */

.philosophy {
  background: var(--bg-light);
  padding: 100px 0 80px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 64px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.philosophy-card {
  text-align: center;
  padding: 0 16px;
}

.philosophy-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.philosophy-icon--identity {
  background: var(--blue-soft);
  color: var(--blue);
}

.philosophy-icon--habits {
  background: var(--purple-soft);
  color: var(--purple);
}

.philosophy-icon--consistency {
  background: var(--green-soft);
  color: var(--green);
}

.philosophy-icon svg {
  width: 28px;
  height: 28px;
}

.philosophy-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.philosophy-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
  margin-inline: auto;
}

/* ── Features ── */

.features {
  background: var(--bg-light);
  padding: 40px 0 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.features-visual img {
  width: min(100%, 520px);
  margin-inline: auto;
  filter: drop-shadow(0 16px 40px rgba(15, 23, 42, 0.12));
}

.features-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 36px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon--clarity {
  background: var(--blue-soft);
  color: var(--blue);
}

.feature-icon--privacy {
  background: var(--purple-soft);
  color: var(--purple);
}

.feature-icon--growth {
  background: var(--green-soft);
  color: var(--green);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Footer ── */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-light);
}

.footer-col--social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-links a:hover {
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Privacy page ── */

.page-legal {
  background: var(--bg-light);
  min-height: 100vh;
  padding: calc(var(--header-height) + 48px) 0 80px;
}

.page-legal .site-header {
  background: var(--bg-dark);
}

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.legal-content .updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-dark);
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-dark);
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--blue-light);
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero-grid,
  .features-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: none;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(100%, 320px);
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 400px;
    margin-inline: auto;
  }

  .features-visual {
    order: -1;
  }

  .feature-item {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-inner .btn-get-ascend {
    display: none;
  }

  .site-header.menu-open .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-height) 0 0;
    background: rgba(6, 10, 20, 0.98);
    padding: 32px 24px;
    gap: 24px;
    backdrop-filter: blur(12px);
  }

  .site-header.menu-open .mobile-nav a {
    color: var(--text-light);
    font-size: 1.125rem;
    font-weight: 500;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col--social {
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding-block: 48px 64px;
  }
}
