/* ============================================================
   FATHOM BLUE — styles.css
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg:      #0A0A0A;
  --card:    #1A1A1A;
  --cyan:    #00C8D4;
  --orange:  #FF6B35;
  --white:   #FFFFFF;
  --grey:    #888888;

  --transition: 0.3s ease;
  --radius: 12px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', cursive;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(56px, 9vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 48px); }
h3 { font-size: 22px; }

p { font-size: 16px; color: var(--grey); }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--grey);
  max-width: 600px;
  margin-bottom: 64px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--cyan);
  color: #0A0A0A;
}

.btn-primary:hover {
  background: #00e5f2;
  box-shadow: 0 0 24px rgba(0, 200, 212, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 200, 212, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}

.btn-ghost:hover {
  background: var(--cyan);
  color: #0A0A0A;
  box-shadow: 0 0 24px rgba(0, 200, 212, 0.45);
  transform: translateY(-2px);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
}

/* ---------- Scroll Fade-In ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 20px 0;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--cyan);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  font-family: 'Bebas Neue', cursive;
  font-size: 48px;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.nav__mobile a:hover { color: var(--cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, #0D1F2D 0%, #061018 45%, #0A0A0A 100%);
  z-index: 0;
}

/* Animated wave / particle layer */
.hero__waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__waves::before,
.hero__waves::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.hero__waves::before {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  top: -200px;
  left: -200px;
  animation: pulse 8s ease-in-out infinite;
}

.hero__waves::after {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.06; }
  50% { transform: scale(1.15); opacity: 0.12; }
}

/* Canvas particles */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero__headline {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 800px;
}

.hero__headline span { color: var(--cyan); }

.hero__sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
  opacity: 0.85;
}

.hero__body {
  font-size: 17px;
  color: var(--grey);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__launch-note {
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(8px); }
}

/* ============================================================
   WHO IT'S FOR
   ============================================================ */
.who {
  background: var(--bg);
}

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

.who__card {
  border-top: 3px solid var(--cyan);
  transition: transform var(--transition), box-shadow var(--transition);
}

.who__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 200, 212, 0.12);
}

.who__icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.who__card h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.who__card p {
  font-size: 16px;
  color: var(--grey);
  line-height: 1.7;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: linear-gradient(180deg, var(--bg) 0%, #0D1520 50%, var(--bg) 100%);
}

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

.feature-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.feature-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card__title {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  color: var(--cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.feature-card p {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.65;
}

/* ============================================================
   SCREENSHOTS / MOCKUPS
   ============================================================ */
.screenshots {
  background: var(--bg);
  overflow: hidden;
}

.screenshots__carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.screenshots__carousel::-webkit-scrollbar { height: 4px; }
.screenshots__carousel::-webkit-scrollbar-track { background: transparent; }
.screenshots__carousel::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 4px; }

.phone-mockup {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #111;
  border: 3px solid rgba(255,255,255,0.12);
  border-radius: 36px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 24px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.phone-mockup:hover {
  transform: scale(1.04);
  box-shadow: 0 24px 48px rgba(0, 200, 212, 0.18);
}

.phone-mockup__notch {
  width: 80px;
  height: 20px;
  background: #222;
  border-radius: 0 0 14px 14px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.phone-mockup__screen {
  flex: 1;
  width: 100%;
  background: linear-gradient(160deg, #0D1F2D 0%, #061018 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 12px;
  border: 1px solid rgba(0, 200, 212, 0.15);
}

.phone-mockup__icon {
  font-size: 36px;
}

.phone-mockup__label {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  color: var(--cyan);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-mockup__sub {
  font-size: 12px;
  color: var(--grey);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Mock chart bars ---------- */
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
  width: 100%;
  justify-content: center;
}

.mock-bar {
  width: 14px;
  background: var(--cyan);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  background: linear-gradient(180deg, var(--bg) 0%, #0D1520 50%, var(--bg) 100%);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card--premium {
  border-color: var(--cyan);
  box-shadow: 0 0 32px rgba(0, 200, 212, 0.18);
  transform: scale(1.02);
}

.pricing-card--premium:hover {
  box-shadow: 0 0 48px rgba(0, 200, 212, 0.3);
  transform: scale(1.04);
}

.pricing-card--free:hover {
  transform: translateY(-4px);
}

.pricing-card__header {
  margin-bottom: 28px;
}

.pricing-card__badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.pricing-card__title {
  font-family: 'Bebas Neue', cursive;
  font-size: 32px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 14px;
  color: var(--grey);
}

.pricing-card__price strong {
  font-family: 'Bebas Neue', cursive;
  font-size: 48px;
  color: var(--white);
  letter-spacing: -0.02em;
}

.pricing-card__price .period {
  color: var(--grey);
  font-size: 14px;
}

.pricing-card__features {
  flex: 1;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--grey);
  line-height: 1.4;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist {
  background: var(--bg);
  text-align: center;
}

.waitlist .section-subtitle {
  margin: 0 auto 48px;
}

.waitlist__form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
}

.waitlist__input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.waitlist__input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 200, 212, 0.15);
}

.waitlist__input::placeholder { color: var(--grey); }

.waitlist__form .btn {
  flex-shrink: 0;
}

.waitlist__success {
  display: none;
  font-size: 16px;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 16px;
}

.waitlist__success.show { display: block; }

.waitlist__privacy {
  font-size: 13px;
  color: var(--grey);
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 32px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.footer__tagline {
  font-style: italic;
  color: var(--grey);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer__desc {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
}

.footer__heading {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--grey);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--cyan); }

.footer__social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.footer__social a:hover {
  background: rgba(0, 200, 212, 0.15);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 13px;
  color: var(--grey);
}

.footer__made {
  font-size: 13px;
  color: var(--grey);
}

/* ============================================================
   INNER PAGES (Privacy / Terms)
   ============================================================ */
.inner-hero {
  padding: 160px 0 80px;
  background: radial-gradient(ellipse at 50% 0%, #0D1F2D 0%, var(--bg) 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inner-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 16px;
}

.inner-hero p {
  font-size: 17px;
  color: var(--grey);
}

.inner-content {
  padding: 80px 0 120px;
  max-width: 800px;
  margin: 0 auto;
}

.inner-content h2 {
  font-size: 28px;
  color: var(--white);
  margin: 48px 0 16px;
}

.inner-content h3 {
  font-size: 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--white);
  margin: 28px 0 10px;
  text-transform: none;
}

.inner-content p {
  color: var(--grey);
  margin-bottom: 16px;
  line-height: 1.75;
}

.inner-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.inner-content ul li {
  color: var(--grey);
  margin-bottom: 8px;
  line-height: 1.65;
}

.inner-content a {
  color: var(--cyan);
}

.inner-content a:hover {
  text-decoration: underline;
}

.safety-warning {
  background: rgba(255, 107, 53, 0.1);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.safety-warning h3 {
  color: var(--orange) !important;
  font-family: 'Bebas Neue', cursive !important;
  font-size: 22px !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
}

.safety-warning p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .who__grid,
  .features__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }

  h1 { font-size: 52px; }
  h2 { font-size: 36px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .who__grid,
  .features__grid {
    grid-template-columns: 1fr;
  }

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--premium {
    transform: none;
    order: -1;
  }

  .waitlist__form {
    flex-direction: column;
  }

  .waitlist__input,
  .waitlist__form .btn {
    width: 100%;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .phone-mockup { flex: 0 0 180px; height: 360px; }
}

/* Social links SVG icons */
.social-links a {
  color: #888888;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: #00C8D4;
  transform: translateY(-3px);
}

/* ── Training Pillars Section ── */
.pillars-section {
  padding: 100px 0;
  background: var(--card);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-breathwork {
  border-top: 3px solid var(--cyan);
}

.pillar-workout {
  border-top: 3px solid var(--orange);
}

.pillar-mobility {
  border-top: 3px solid #888888;
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.pillar-list li {
  color: var(--grey);
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-list li::before {
  content: '→';
  color: var(--cyan);
  font-size: 0.8rem;
}

.pillar-list li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}
