/* =========================================================
   Psychifi — Complete Rebuilt Style.css
   Cinematic Calm Edition
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ──────────────────────────────────────────────────────────
   Root Variables
   ────────────────────────────────────────────────────────── */
:root {
  --teal-deep: #2A5858;
  --teal-mid: #46888A;
  --teal-light: #78AAAA;

  --sage: #A4C8B8;
  --sage-light: #C4DFCF;
  --sage-pale: #DFF0E8;

  --cream: #F0DEBB;
  --cream-light: #F8EDDA;
  --cream-pale: #FBF5EC;

  --warm-gold: #C49648;
  --warm-amber: #DDB870;

  --near-white: #F2F8F5;
  --white: #FFFFFF;

  --charcoal: #1E3838;
  --text-muted: #6A9090;

  --glass-bg: rgba(255,255,255,0.62);
  --glass-border: rgba(255,255,255,0.82);

  --shadow-card: 0 10px 32px rgba(42,88,88,0.10);
  --shadow-nav: 0 8px 32px rgba(42,88,88,0.12);
  --shadow-btn: 0 8px 24px rgba(70,136,138,0.28);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 72px;
  --sp-4xl: 120px;

  --ease-out: cubic-bezier(0.25, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--teal-deep);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #EDF5F0;

  background-image:
    radial-gradient(ellipse at 92% 2%, rgba(240,210,160,0.82) 0%, transparent 42%),
    radial-gradient(ellipse at 2% 98%, rgba(148,200,176,0.72) 0%, transparent 42%),
    radial-gradient(ellipse at 8% 8%, rgba(180,220,200,0.45) 0%, transparent 32%),
    radial-gradient(ellipse at 88% 88%, rgba(228,195,140,0.40) 0%, transparent 32%);

  animation: bg-shift 120s ease-in-out infinite alternate;

  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(ellipse at 15% 85%, rgba(148,200,176,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(240,210,160,0.55) 0%, transparent 55%);

  animation: ambient-breathe 28s ease-in-out infinite;
}

@keyframes ambient-breathe {
  0%, 100% {
    opacity: 0.45;
    transform: scale(1) translate(0,0);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.04) translate(1.5%, -1%);
  }
}

@keyframes bg-shift {
  0% {
    background-position:
      92% 2%,
      2% 98%,
      8% 8%,
      88% 88%;
  }

  50% {
    background-position:
      84% 8%,
      10% 92%,
      14% 4%,
      82% 94%;
  }

  100% {
    background-position:
      88% 4%,
      6% 96%,
      10% 10%,
      86% 90%;
  }
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ──────────────────────────────────────────────────────────
   Layout
   ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--sp-4xl) 0;
  position: relative;
  z-index: 1;
}

/* ──────────────────────────────────────────────────────────
   Typography
   ────────────────────────────────────────────────────────── */
.t-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 12px;
}

.t-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

.t-subheadline {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}

/* ──────────────────────────────────────────────────────────
   Navigation
   ────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 20px;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.82);

  box-shadow: var(--shadow-nav);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  transition: 220ms ease;
}

.nav-links a:hover {
  color: var(--teal-deep);
}

.nav-toggle {
  display: none;
}

.nav-mobile {
  display: none;
}

/* ──────────────────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 28px;

  border-radius: var(--r-pill);
  font-weight: 700;

  transition:
    transform 220ms var(--ease-spring),
    background 220ms ease,
    box-shadow 220ms ease;

  cursor: pointer;
}

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

.btn-primary {
  background: var(--teal-mid);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-outline {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(42,88,88,0.18);
  color: var(--teal-deep);
  backdrop-filter: blur(18px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.86);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 36px;
}

/* ──────────────────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 88vh;
  isolation: isolate;

  background:
    radial-gradient(ellipse at 88% 18%, rgba(240,210,160,0.62) 0%, transparent 52%),
    radial-gradient(ellipse at 12% 82%, rgba(148,200,176,0.58) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 100%, rgba(178,198,198,0.35) 0%, transparent 45%),
    #EDF5F0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,0.08) 0%,
      transparent 70%
    );

  animation: cinematic-light-sweep 55s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at center,
    rgba(255,255,255,0.08),
    transparent 70%);

  pointer-events: none;
}

@keyframes cinematic-light-sweep {
  0% {
    transform: translateX(-8%) translateY(0%);
    opacity: 0.04;
  }

  50% {
    transform: translateX(6%) translateY(-2%);
    opacity: 0.07;
  }

  100% {
    transform: translateX(-8%) translateY(0%);
    opacity: 0.04;
  }
}

.hero-bg {
  position: relative;
  z-index: 2;

  width: auto;
  max-width: min(860px, 96vw);
  max-height: calc(100vh - 120px);

  object-fit: contain;
}

/* ──────────────────────────────────────────────────────────
   Hero Bokeh
   ────────────────────────────────────────────────────────── */
.hero-bokeh {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.38;
}

.hb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

@keyframes hb-float {
  0%, 100% {
    transform: translate(0,0) scale(1);
    opacity: 0.18;
  }

  50% {
    transform: translate(24px,-32px) scale(1.03);
    opacity: 0.24;
  }
}

@keyframes hb-drift {
  0%, 100% {
    transform: translate(0,0) scale(1);
    opacity: 0.16;
  }

  50% {
    transform: translate(-16px,10px) scale(1.02);
    opacity: 0.22;
  }
}

@keyframes hb-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.14;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.18;
  }
}

@keyframes hb-soft-blur {
  0%, 100% {
    filter: blur(22px);
  }

  50% {
    filter: blur(28px);
  }
}

@keyframes hb-shimmer {
  0%, 100% {
    transform: translate(0,0) scale(1);
    opacity: 0.12;
  }

  50% {
    transform: translate(8px,-10px) scale(1.02);
    opacity: 0.18;
  }
}

.hb-1 {
  width: min(340px,45vw);
  height: min(340px,45vw);
  top: -12%;
  left: -10%;

  background: radial-gradient(circle,
    rgba(180,220,200,0.75) 0%,
    rgba(164,200,184,0.42) 40%,
    transparent 72%);

  animation: hb-float 65s ease-in-out infinite;
}

.hb-2 {
  width: min(300px,40vw);
  height: min(300px,40vw);
  top: -8%;
  right: -8%;

  background: radial-gradient(circle,
    rgba(255,230,180,0.76) 0%,
    rgba(240,210,160,0.45) 40%,
    transparent 72%);

  animation: hb-drift 80s ease-in-out infinite reverse;
}

.hb-3 {
  width: min(260px,34vw);
  height: min(260px,34vw);
  bottom: 8%;
  left: 4%;

  background: radial-gradient(circle,
    rgba(140,200,200,0.74) 0%,
    rgba(120,172,172,0.38) 40%,
    transparent 72%);

  animation: hb-pulse 95s ease-in-out infinite;
}

.hb-4 {
  width: min(280px,36vw);
  height: min(280px,36vw);
  bottom: 4%;
  right: 2%;

  background: radial-gradient(circle,
    rgba(220,180,100,0.74) 0%,
    rgba(196,150,72,0.42) 40%,
    transparent 72%);

  animation: hb-pulse 110s ease-in-out infinite;
}

.hb-5 {
  width: min(220px,28vw);
  height: min(220px,28vw);
  top: 38%;
  left: calc(50% - min(110px,14vw));

  background: radial-gradient(circle,
    rgba(220,240,230,0.72) 0%,
    rgba(200,224,212,0.38) 40%,
    transparent 72%);

  animation:
    hb-float 120s ease-in-out infinite,
    hb-soft-blur 60s ease-in-out infinite;
}

.hb-6 {
  width: min(160px,22vw);
  height: min(160px,22vw);
  top: 14%;
  left: 18%;

  background: radial-gradient(circle,
    rgba(255,235,190,0.7) 0%,
    rgba(240,210,160,0.34) 45%,
    transparent 72%);

  animation: hb-shimmer 70s ease-in-out infinite;
}

.hb-7 {
  width: min(180px,24vw);
  height: min(180px,24vw);
  top: 22%;
  right: 12%;

  background: radial-gradient(circle,
    rgba(190,230,210,0.7) 0%,
    rgba(164,200,184,0.34) 45%,
    transparent 72%);

  animation: hb-drift 90s ease-in-out infinite;
}

.hb-8 {
  width: min(140px,18vw);
  height: min(140px,18vw);
  bottom: 22%;
  left: 38%;

  background: radial-gradient(circle,
    rgba(230,190,110,0.7) 0%,
    rgba(196,150,72,0.34) 45%,
    transparent 72%);

  animation: hb-shimmer 75s ease-in-out infinite reverse;
}

/* ──────────────────────────────────────────────────────────
   Hero CTA
   ────────────────────────────────────────────────────────── */
.hero-below {
  text-align: center;
  padding: 48px 0 72px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-disclaimer {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.feature-card,
.step-card,
.insight-card-demo {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 24px;

  padding: 32px;

  box-shadow: var(--shadow-card);

  transition:
    transform 300ms var(--ease-spring),
    box-shadow 300ms ease;
}

.feature-card:hover,
.step-card:hover,
.insight-card-demo:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(42,88,88,0.12);
}

.feature-icon,
.step-number {
  width: 54px;
  height: 54px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;

  background: rgba(196,150,72,0.12);
  border: 1px solid rgba(196,150,72,0.22);
}

.feature-card h3,
.step-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.feature-card p,
.step-card p {
  color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────
   Dark Section
   ────────────────────────────────────────────────────────── */
.how-it-works {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(70,136,138,0.22) 0%, transparent 55%),
    var(--teal-deep);

  color: white;
}

.how-it-works .t-label {
  color: var(--warm-amber);
}

.how-it-works .t-subheadline,
.how-it-works p {
  color: rgba(255,255,255,0.74);
}

/* ──────────────────────────────────────────────────────────
   Exercise Pills
   ────────────────────────────────────────────────────────── */
.exercise-pills {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.exercise-pill {
  padding: 12px 18px;

  border-radius: var(--r-pill);

  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.82);

  backdrop-filter: blur(16px);

  font-weight: 600;

  box-shadow: 0 6px 18px rgba(42,88,88,0.06);
}

/* ──────────────────────────────────────────────────────────
   Legal pages (privacy, terms)
   ────────────────────────────────────────────────────────── */
.legal-header {
  padding: 120px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--sage-pale) 0%, var(--near-white) 100%);
}

.legal-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  color: var(--charcoal);
  line-height: 1.75;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--teal-deep);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--charcoal);
}

.legal-content ul {
  margin: 0 0 20px 1.25rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 10px;
}

.legal-content a {
  color: var(--teal-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--teal-deep);
}

.legal-notice {
  margin-top: 48px;
  padding: 20px;
  background: var(--cream-pale);
  border-radius: var(--r-lg);
  border: 1px solid var(--cream);
}

.legal-notice p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--charcoal);
}

.footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  transition: color 220ms ease;
}

.footer a:hover {
  color: #fff;
}

/* ──────────────────────────────────────────────────────────
   Reveal Animations
   ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 900ms ease,
    transform 900ms ease;
}

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

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 220ms; }
.reveal-delay-3 { transition-delay: 320ms; }
.reveal-delay-4 { transition-delay: 420ms; }
.reveal-delay-5 { transition-delay: 520ms; }
.reveal-delay-6 { transition-delay: 620ms; }

/* ──────────────────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--teal-deep);
  }

  .nav-mobile.open {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;

    background: rgba(242,248,245,0.94);
    backdrop-filter: blur(24px);
  }

  .nav-mobile a {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 84px 0;
  }
}
