/* ===========================================
   The Meditation Timer – Styles
   =========================================== */

:root {
  color-scheme: dark;
  --bg: #0a0d17;
  --border: rgba(183, 195, 224, 0.14);
  --text: #f6f7fb;
  --muted: #b4bfd6;
  --accent: #6ed7c4;
  --pink: #e94f8a;
  --orange: #f5a623;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Spectral", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* --- Layout --- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Logo --- */

.logo {
  width: 56px;
  height: 56px;
}
.logo-lg {
  width: 80px;
  height: 80px;
}

/* --- Typography --- */

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  font: 700 1.05rem/1 var(--font-body);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #08111b;
  box-shadow: 0 4px 24px rgba(110, 215, 196, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(110, 215, 196, 0.4);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* --- Pill --- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(110, 215, 196, 0.18);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Nav --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s;
}

.nav-scrolled {
  background: rgba(10, 13, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

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

/* --- Footer --- */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--accent);
}
.footer a:hover {
  opacity: 0.8;
}

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

/* --- Animations --- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 0.8s ease-out both;
}
.fade-in-d1 {
  animation: fadeUp 0.8s 0.15s ease-out both;
}
.fade-in-d2 {
  animation: fadeUp 0.8s 0.3s ease-out both;
}
.fade-in-d3 {
  animation: fadeUp 0.8s 0.45s ease-out both;
}

/* =======================================
   Index page
   ======================================= */

/* Hero */

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

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(110, 215, 196, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(233, 79, 138, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 420px;
  margin-inline: auto;
  line-height: 1.6;
}

/* Breathing circles */

.breath-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 40px;
}

.breath-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(110, 215, 196, 0.25);
  animation: breathe 8s ease-in-out infinite;
}

.breath-ring:nth-child(2) {
  inset: 16px;
  animation-delay: 0.5s;
  border-color: rgba(110, 215, 196, 0.18);
}

.breath-ring:nth-child(3) {
  inset: 32px;
  animation-delay: 1s;
  border-color: rgba(110, 215, 196, 0.12);
}

.breath-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

/* Scroll hint */

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  z-index: 1;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Phone showcase */

.phone-section {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.phone-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(110, 215, 196, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.phone-section-header {
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.phone-section-header p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 420px;
  margin-inline: auto;
  font-size: 1.05rem;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 300px;
  margin: 0 auto;
  background: var(--bg);
  /* aspect-ratio: 9 / 19.5; */
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Journey timeline */

.journey-section {
  padding: 80px 0;
}

.journey-header {
  text-align: center;
  margin-bottom: 64px;
}

.journey-header .pill {
  margin-bottom: 16px;
}

.journey-header p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 480px;
  margin-inline: auto;
}

.timeline {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--pink),
    var(--orange)
  );
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding: 0 0 48px 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(110, 215, 196, 0.4);
}

.timeline-item:nth-child(2) .timeline-dot {
  background: var(--pink);
  box-shadow: 0 0 12px rgba(233, 79, 138, 0.4);
}
.timeline-item:nth-child(3) .timeline-dot {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}
.timeline-item:nth-child(5) .timeline-dot {
  background: var(--pink);
  box-shadow: 0 0 12px rgba(233, 79, 138, 0.4);
}

.timeline-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: var(--accent);
}

.timeline-item:nth-child(2) .timeline-label {
  color: var(--pink);
}
.timeline-item:nth-child(3) .timeline-label {
  color: var(--orange);
}
.timeline-item:nth-child(5) .timeline-label {
  color: var(--pink);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Bottom CTA */

.bottom-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bottom-cta::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(110, 215, 196, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.bottom-cta-inner {
  position: relative;
  z-index: 1;
}

.bottom-cta h2 {
  margin-bottom: 16px;
}

.bottom-cta p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 400px;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.bottom-cta .logo {
  margin: 0 auto 20px;
}

/* =======================================
   Legal pages (privacy, terms)
   ======================================= */

.legal-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.2;
}

.legal-date {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-page h2 {
  margin: 36px 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.legal-page p,
.legal-page ul {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 20px;
}
.legal-page li {
  margin-bottom: 8px;
}

.legal-page strong {
  color: var(--text);
  font-weight: 600;
}

.legal-page a {
  color: var(--accent);
}
.legal-page a:hover {
  text-decoration: underline;
}

.legal-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.legal-nav a {
  color: var(--accent);
}
.legal-nav a:hover {
  text-decoration: underline;
}

/* =======================================
   Responsive
   ======================================= */

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .nav {
    padding: 12px 0;
  }
  .nav-inner {
    padding: 0 16px;
  }
  .nav-brand {
    gap: 10px;
    font-size: 1rem;
  }
  .nav-brand img {
    width: 30px;
    height: 30px;
  }

  .heading-xl {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .heading-lg {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .logo-lg {
    width: 64px;
    height: 64px;
  }
  .pill {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .hero {
    min-height: 100dvh;
    padding: 32px 20px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 32px;
  }

  .breath-wrap {
    width: 150px;
    height: 150px;
    margin-bottom: 28px;
  }

  .scroll-hint {
    bottom: 24px;
  }

  .phone-section {
    padding: 56px 0 72px;
  }
  .phone-section-header {
    margin-bottom: 36px;
  }
  .phone-frame {
    width: 260px;
    border-radius: 36px;
    border-width: 4px;
  }

  .journey-section {
    padding: 56px 0;
  }
  .journey-header {
    margin-bottom: 48px;
  }
  .timeline {
    padding-left: 32px;
  }
  .timeline::before {
    left: 10px;
  }
  .timeline-item {
    padding: 0 0 40px 20px;
  }
  .timeline-dot {
    left: -28px;
    width: 10px;
    height: 10px;
  }
  .timeline-title {
    font-size: 1.15rem;
  }
  .timeline-desc {
    font-size: 0.9rem;
  }

  .bottom-cta {
    padding: 64px 0;
  }
  .bottom-cta p {
    font-size: 1rem;
  }

  .legal-page {
    padding: 88px 20px 60px;
  }
}

@media (max-width: 390px) {
  .nav-brand span {
    font-size: 0.9rem;
  }

  .hero {
    padding: 24px 16px;
  }

  .breath-wrap {
    width: 130px;
    height: 130px;
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
  .phone-frame {
    width: 230px;
  }
  .btn {
    padding: 12px 28px;
    font-size: 1rem;
  }
  .btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}
