/* ===== Variables ===== */
:root {
  --pauso-teal: #5BBFBA;
  --pauso-blue: #7BA3E0;
  --pauso-green: #9EE493;
  --bg-void: #0A0A0A;
  --bg-deep: #0D0D0D;
  --bg-surface: #1A1A1A;
  --cream: #FFFEF5;
  --cream-muted: rgba(255, 254, 245, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

body {
  background-color: var(--bg-void);
  color: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: rgba(91, 191, 186, 0.3);
  color: var(--cream);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-surface); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(91, 191, 186, 0.5); }

/* ===== Grain Overlay ===== */
.grain-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== Utilities ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pauso-teal) 0%, var(--pauso-blue) 50%, var(--pauso-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 100px 0;
}

.section-subtitle {
  color: var(--cream-muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--pauso-teal), var(--pauso-blue));
  color: #0A0A0A;
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(91, 191, 186, 0.4);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(91, 191, 186, 0.4);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--pauso-teal);
  box-shadow: 0 0 20px rgba(91, 191, 186, 0.2);
  text-decoration: none;
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.1rem;
  border-radius: 16px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#startBtn[data-state="running"] {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(91, 191, 186, 0.4);
}

#startBtn[data-state="running"]:hover {
  border-color: var(--pauso-teal);
  box-shadow: 0 0 20px rgba(91, 191, 186, 0.2);
}

/* ===== Glass Card ===== */
.glass-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(91, 191, 186, 0.15);
  border-radius: 24px;
  padding: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(91, 191, 186, 0.3);
  box-shadow: 0 0 40px rgba(91, 191, 186, 0.1);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(91, 191, 186, 0.1);
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--pauso-teal);
  font-size: 1.4rem;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--pauso-teal); }

.header-badge {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(91, 191, 186, 0.2);
  transition: border-color 0.2s, color 0.2s;
}

.header-badge:hover {
  border-color: var(--pauso-teal);
  color: var(--cream);
}

.header-badge strong { color: var(--pauso-teal); }

/* ===== Hero ===== */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 2; }

.hero-tag {
  display: inline-block;
  color: var(--pauso-teal);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--cream-muted);
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-subtitle strong { color: var(--cream); }

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91, 191, 186, 0.15) 0%, rgba(123, 163, 224, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* ===== Stats Bar ===== */
.stats-bar {
  padding: 40px 0;
  border-top: 1px solid rgba(91, 191, 186, 0.1);
  border-bottom: 1px solid rgba(91, 191, 186, 0.1);
  background: rgba(13, 13, 13, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pauso-teal), var(--pauso-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--cream-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== Breathing Section ===== */
.breathing-section {
  text-align: center;
}

.breathing-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

/* Pattern Selector */
.pattern-selector {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.pattern-btn {
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid rgba(91, 191, 186, 0.2);
  background: transparent;
  color: var(--cream-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pattern-btn:hover {
  border-color: var(--pauso-teal);
  color: var(--cream);
}

.pattern-btn.active {
  background: rgba(91, 191, 186, 0.15);
  border-color: var(--pauso-teal);
  color: var(--cream);
}

/* Breathing Circle */
.breathing-container {
  position: relative;
  width: 280px; height: 280px;
  margin: 0 auto 24px;
  pointer-events: none;
}

.breathing-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 191, 186, 0.3) 0%, rgba(123, 163, 224, 0.15) 40%, transparent 70%);
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
}

.breathing-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pauso-teal) 0%, var(--pauso-blue) 50%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.breathing-circle.animate-inhale {
  animation: inhale var(--phase-duration, 4s) ease-in-out forwards;
}

.breathing-circle.animate-exhale {
  animation: exhale var(--phase-duration, 6s) ease-in-out forwards;
}

.breathing-circle.animate-hold {
  /* Hold at current scale */
}

.breathing-inner {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 191, 186, 0.5) 0%, transparent 70%);
}

.breathing-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.breathing-timer {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--bg-void);
  line-height: 1;
  min-height: 56px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.breathing-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-void);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes inhale {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

@keyframes exhale {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

/* Controls */
.breathing-controls {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.session-counter {
  color: var(--cream-muted);
  font-size: 0.95rem;
}

.session-counter strong { color: var(--pauso-teal); }

.pattern-info {
  max-width: 500px;
  margin: 0 auto;
}

.pattern-name {
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.pattern-desc {
  color: var(--cream-muted);
  font-size: 0.9rem;
}

/* ===== Techniques Section ===== */
.techniques-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 48px;
}

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

.technique-card {
  position: relative;
  overflow: hidden;
}

.card-accent {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.accent-teal { background: var(--pauso-teal); }
.accent-blue { background: var(--pauso-blue); }
.accent-green { background: var(--pauso-green); }

.technique-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timing {
  display: inline-block;
  color: var(--pauso-teal);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(91, 191, 186, 0.1);
  margin-bottom: 14px;
}

.technique-card p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Problem Section ===== */
.problem-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.content-block {
  max-width: 750px;
  margin: 0 auto 48px;
}

.content-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--cream);
}

.content-block p {
  color: var(--cream-muted);
  margin-bottom: 12px;
}

.content-block strong { color: var(--cream); }

.content-block ul {
  list-style: none;
  padding: 0;
}

.content-block ul li {
  color: var(--cream-muted);
  padding: 8px 0 8px 24px;
  position: relative;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pauso-teal);
}

.content-block ul li strong { color: var(--cream); }

/* Cost Grid */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.cost-item {
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(91, 191, 186, 0.1);
}

.cost-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--pauso-teal);
}

.cost-label {
  color: var(--cream-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ===== Doomscrolling Section ===== */
.doomscrolling-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

/* Tips */
.tips-list {
  max-width: 700px;
  margin: 0 auto;
}

.tip {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.tip-number {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(91, 191, 186, 0.1);
  border: 1px solid rgba(91, 191, 186, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--pauso-teal);
}

.tip strong {
  display: block;
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.tip p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  margin: 0;
}

.tip a {
  color: var(--pauso-teal);
  text-decoration: underline;
  transition: color 0.2s;
}

.tip a:hover { color: var(--pauso-blue); }

/* ===== Stats Section ===== */
.stats-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 48px;
}

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

.stat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--cream);
}

/* Ranked List */
.ranked-list {
  list-style: none;
  padding: 0;
  counter-reset: rank;
}

.ranked-list li {
  counter-increment: rank;
  padding: 10px 0;
  color: var(--cream-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 254, 245, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ranked-list li::before {
  content: counter(rank);
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(91, 191, 186, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--pauso-teal);
}

/* Generation Bars */
.gen-stats { display: flex; flex-direction: column; gap: 16px; }

.gen-bar {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  align-items: center;
  gap: 12px;
}

.gen-label {
  font-size: 0.8rem;
  color: var(--cream-muted);
  text-align: right;
}

.bar-track {
  height: 8px;
  background: rgba(255, 254, 245, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pauso-teal), var(--pauso-blue));
}

.gen-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pauso-teal);
}

/* Alt List */
.alt-list {
  list-style: none;
  padding: 0;
}

.alt-list li {
  padding: 10px 0;
  color: var(--cream-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 254, 245, 0.05);
  padding-left: 20px;
  position: relative;
}

.alt-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--pauso-green);
  font-weight: 700;
}

.alt-list li strong { color: var(--cream); }

/* ===== Solution Section ===== */
.solution-section {
  background: rgba(91, 191, 186, 0.03);
  border-top: 1px solid rgba(91, 191, 186, 0.1);
  border-bottom: 1px solid rgba(91, 191, 186, 0.1);
}

.solution-content {
  max-width: 700px;
  text-align: center;
}

.solution-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.solution-content p {
  color: var(--cream-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.solution-content strong { color: var(--cream); }

.solution-content a {
  color: var(--pauso-teal);
  text-decoration: underline;
  transition: color 0.2s;
}

.solution-content a:hover { color: var(--pauso-blue); }

.solution-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.solution-ctas .btn {
  text-decoration: none;
  color: #0A0A0A;
}

.solution-ctas .btn-secondary {
  color: var(--cream);
}

/* ===== FAQ Section ===== */
.faq-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(91, 191, 186, 0.1);
}

.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary:hover { color: var(--pauso-teal); }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--pauso-teal);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--cream-muted);
  padding: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(91, 191, 186, 0.1);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand a {
  color: var(--pauso-teal);
  text-decoration: none;
}

.footer-brand a:hover { text-decoration: underline; }

.footer-desc {
  color: var(--cream-muted);
  font-size: 0.85rem;
  max-width: 500px;
  margin-top: 8px;
}

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

.footer-links a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--pauso-teal); }

.footer-copy {
  color: rgba(255, 254, 245, 0.3);
  font-size: 0.75rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-nav { display: none; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .stats-cards {
    grid-template-columns: 1fr;
  }

  .cost-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gen-bar {
    grid-template-columns: 90px 1fr 60px;
  }

  .hero { padding: 120px 0 60px; }

  .hero h1 { font-size: 2.2rem; }

  .section { padding: 64px 0; }

  .breathing-container {
    width: 220px; height: 220px;
  }

  .solution-ctas {
    flex-direction: column;
    align-items: center;
  }
}

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

  .stat-number { font-size: 2rem; }

  .pattern-selector {
    gap: 8px;
  }

  .pattern-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .breathing-container {
    width: 200px; height: 200px;
  }

  .tip { gap: 14px; }
  .tip-number { width: 36px; height: 36px; font-size: 0.95rem; }
}
