/**
 * Landing Page Styles
 * Full-screen immersive experience for breathing modes
 */

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.sr-only:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #22d3ee;
  color: #0a0a0f;
  font-weight: 600;
  z-index: 9999;
}

/* ========================================
   NAVIGATION
   ======================================== */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
  backdrop-filter: blur(12px);
}

.landing-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-nav__logo {
  color: #ffffff;
  flex-shrink: 0;
}

.landing-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.landing-nav__name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.landing-nav__tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.landing-nav__cta {
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: #0a0a0f;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* ========================================
   ANIMATION-FIRST HERO
   ======================================== */

.hero-modes {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
  position: relative;
}

.hero-modes__header {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}

.hero-modes__title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-modes__title span {
  display: inline;
  margin-right: 0.2em;
}

.hero-modes__title-accent {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-modes__subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.55);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}

.hero-modes__subtitle strong {
  color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   MODE PILLS
   ======================================== */

.mode-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  max-width: fit-content;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 10;
}

.mode-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.mode-pill:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.mode-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.mode-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mode-pill.active .mode-pill__dot {
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 0 12px currentColor;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.landing-main {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding-bottom: 0;
}

/* ========================================
   MODE PANELS
   ======================================== */

.mode-panels {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  flex: 1;
  display: flex;
}

.mode-panel {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  animation: panelFadeIn 0.5s ease-out;
  padding-bottom: 2rem;
}

.mode-panel.active {
  display: grid;
}

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

/* ========================================
   CANVAS AREA
   ======================================== */

.mode-panel__canvas-area {
  position: relative;
  aspect-ratio: 4/3;
  min-height: 400px;
  max-height: calc(100vh - 12rem);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(255, 255, 255, 0.02);
}

.mode-panel__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mode-panel__phase-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

.mode-panel__phase {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: capitalize;
}

/* Hero Overlay on Canvas */
.mode-panel__hero-overlay {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 5;
}

.mode-panel__hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0f;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mode-panel__hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.mode-panel__hero-cta--dark {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-panel__hero-cta--dark:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* ========================================
   INFO AREA
   ======================================== */

.mode-panel__info {
  padding: 2rem 0;
}

.mode-panel__tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

/* Mode-specific tag colors */
[data-mode="dandelion"] .mode-panel__tag {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
}
[data-mode="paper-plane"] .mode-panel__tag {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}
[data-mode="shredder"] .mode-panel__tag {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
[data-mode="whale"] .mode-panel__tag {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}
[data-mode="french-press"] .mode-panel__tag {
  background: rgba(180, 83, 9, 0.15);
  color: #d97706;
}

.mode-panel__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mode-panel__description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* ========================================
   PATTERN DISPLAY
   ======================================== */

.mode-panel__pattern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  margin-bottom: 2rem;
}

.pattern-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex: 1;
}

.pattern-value {
  font-family: 'DM Mono', monospace;
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
}

.pattern-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.pattern-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   BENEFITS
   ======================================== */

.mode-panel__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.mode-panel__benefits span {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
}

.features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.features__header {
  text-align: center;
  margin-bottom: 4rem;
}

.features__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  color: #22d3ee;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.feature-card__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   SCIENCE SECTION
   ======================================== */

.science {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.science::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.science__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.science__content {
  text-align: center;
}

.science__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.science__title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.science__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3rem;
}

.science__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.science__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.science__stat-value {
  font-family: 'DM Mono', monospace;
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
}

.science__stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */

.final-cta {
  padding: 8rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.03) 50%, transparent 100%);
}

.final-cta__container {
  max-width: 600px;
  margin: 0 auto;
}

.final-cta__title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-cta__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2.5rem;
}

.final-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.125rem 2rem;
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.final-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.25);
}

/* ========================================
   FOOTER
   ======================================== */

.landing-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-footer__links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.landing-footer__links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer__links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.landing-footer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.landing-footer__copyright {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
}

.landing-footer__cta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  color: #0a0a0f;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-footer__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

/* ========================================
   RESPONSIVE - Tablet
   ======================================== */

@media (max-width: 1024px) {
  .hero-modes {
    padding-top: 4.5rem;
  }

  .hero-modes__header {
    margin-bottom: 1.25rem;
  }

  .hero-modes__title {
    font-size: 2.75rem;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .science__stats {
    gap: 2rem;
  }

  .mode-pills {
    max-width: calc(100% - 2rem);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    margin: 0 1rem 1.5rem;
  }

  .mode-pills::-webkit-scrollbar {
    display: none;
  }

  .mode-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mode-panel__canvas-area {
    max-height: 45vh;
    min-height: 300px;
  }

  .mode-panel__hero-overlay {
    top: 1rem;
    right: 1rem;
  }

  .mode-panel__info {
    text-align: center;
    padding-bottom: 2rem;
  }

  .mode-panel__description {
    margin-left: auto;
    margin-right: auto;
  }

  .mode-panel__pattern {
    justify-content: center;
  }

  .mode-panel__benefits {
    justify-content: center;
  }
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */

@media (max-width: 640px) {
  .landing-nav {
    padding: 0.875rem 1rem;
  }

  .landing-nav__brand {
    gap: 0.5rem;
  }

  .landing-nav__logo {
    width: 24px;
    height: 24px;
  }

  .landing-nav__name {
    font-size: 0.9375rem;
  }

  .landing-nav__tagline {
    display: none;
  }

  .landing-nav__cta {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  /* Hero modes mobile */
  .hero-modes {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-modes__header {
    padding: 0 1rem;
    margin-bottom: 1rem;
  }

  .hero-modes__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hero-modes__subtitle {
    font-size: 0.875rem;
  }

  .mode-pills {
    gap: 0.375rem;
    padding: 0.25rem;
    margin: 0 1rem 1rem;
    max-width: calc(100% - 2rem);
  }

  .mode-pill {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .mode-pill__dot {
    width: 6px;
    height: 6px;
  }

  .landing-main {
    padding-bottom: 0;
  }

  .mode-panels {
    padding: 0 1rem;
  }

  .mode-panel {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .mode-panel__canvas-area {
    border-radius: 20px;
    max-height: 40vh;
    min-height: 280px;
  }

  .mode-panel__hero-overlay {
    top: 0.75rem;
    right: 0.75rem;
  }

  .mode-panel__hero-cta {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .mode-panel__phase-indicator {
    padding: 0.5rem 1rem;
    bottom: 1rem;
  }

  .mode-panel__phase {
    font-size: 0.8125rem;
  }

  .mode-panel__tag {
    margin-bottom: 1rem;
  }

  .mode-panel__title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .mode-panel__description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .mode-panel__pattern {
    padding: 1rem 1.25rem;
    gap: 0.5rem;
  }

  .pattern-value {
    font-size: 1.125rem;
  }

  .pattern-label {
    font-size: 0.625rem;
  }

  .pattern-divider {
    height: 30px;
  }

  .mode-panel__benefits span {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Features mobile */
  .features {
    padding: 4rem 0;
  }

  .features__container {
    padding: 0 1rem;
  }

  .features__header {
    margin-bottom: 2.5rem;
  }

  .features__title {
    font-size: 1.75rem;
  }

  .features__subtitle {
    font-size: 1rem;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  .feature-card__title {
    font-size: 1rem;
  }

  .feature-card__text {
    font-size: 0.875rem;
  }

  /* Science mobile */
  .science {
    padding: 4rem 0;
  }

  .science__container {
    padding: 0 1rem;
  }

  .science__title {
    font-size: 1.75rem;
  }

  .science__text {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
  }

  .science__stats {
    gap: 1.5rem;
  }

  .science__stat-value {
    font-size: 1.25rem;
  }

  .science__stat-label {
    font-size: 0.6875rem;
  }

  /* Final CTA mobile */
  .final-cta {
    padding: 4rem 1rem;
  }

  .final-cta__title {
    font-size: 1.75rem;
  }

  .final-cta__subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .final-cta__button {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  /* Footer mobile */
  .landing-footer {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
  }

  .landing-footer p {
    font-size: 0.8125rem;
  }

  .landing-footer__cta {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }
}

/* ========================================
   SCROLL BEHAVIOR
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .mode-panel {
    animation: none;
  }
}
