/*
Theme Name: Coherence 432Hz
Theme URI: https://432hzbreathing.com/
Author: OpenAI
Description: Custom homepage theme for 432hzbreathing.com inspired by the supplied Coherence screenshots.
Version: 1.0.0
Text Domain: coherence-432hz
*/

:root {
  --bg: #050505;
  --panel: #0b0b0d;
  --panel-2: #101014;
  --text: #ffffff;
  --muted: #b8b8c2;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1200px;
  --grad: linear-gradient(90deg, #ff2d20 0%, #b7b500 22%, #16db2e 45%, #0ca9a0 68%, #2155ff 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

body.admin-bar .site-header { top: 32px; }

.site-wrap {
  overflow: hidden;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p,
.hero-copy,
.tech-card p,
.benefit-card p,
.footer-copy,
.video-placeholder-note {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.76);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.logo-orb {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.55), rgba(255,255,255,0.05) 30%, rgba(0,0,0,0.75) 62%),
    var(--grad);
  box-shadow: 0 0 24px rgba(255,255,255,0.09);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  transition: color .2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: #fff;
}

.header-cta {
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform .2s ease, border-color .2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.26);
}

.menu-toggle {
  display: none;
}

.hero {
  padding-top: 72px;
  padding-bottom: 110px;
  text-align: center;
}

.hero .logo-orb {
  margin: 0 auto 26px;
  width: 96px;
  height: 96px;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 26px;
  font-size: 1.1rem;
}

.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.store-badge {
  min-width: 180px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff;
  color: #000;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.store-badge small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  line-height: 1.1;
}

.store-badge span {
  display: block;
  line-height: 1.1;
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.video-frame {
  position: relative;
  background: linear-gradient(180deg, #0c0c10 0%, #09090b 100%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.video-frame::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 32px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(39, 87, 255, 0.22), rgba(0,0,0,0) 30%), #050505;
}

.video-embed iframe,
.video-embed .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.02) 34%, transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.video-placeholder-inner {
  text-align: center;
  padding: 24px;
}

.play-orb {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 24px solid #fff;
  margin-left: 6px;
}

.technique-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
}

.technique-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee 38s linear infinite;
}

.technique-marquee:hover .technique-track {
  animation-play-state: paused;
}

.tech-card {
  width: 220px;
  min-height: 204px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px 26px;
  position: relative;
  overflow: hidden;
}

.tech-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--grad);
}

.tech-icon,
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.tech-icon svg,
.benefit-icon svg {
  width: 34px;
  height: 34px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tech-card h3,
.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.tech-card p,
.benefit-card p {
  margin: 0;
  font-size: 0.95rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.benefit-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 26px;
}

.benefit-icon svg {
  width: 44px;
  height: 44px;
}

.cta-band {
  padding: 1px;
  border-radius: 28px;
  background: var(--grad);
  box-shadow: var(--shadow);
}

.cta-inner {
  background: rgba(10,10,12,0.92);
  border-radius: 27px;
  padding: 54px 38px;
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.cta-inner p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #eef2ff;
  opacity: 0.86;
}

.site-footer {
  padding: 42px 0 54px;
}

.footer-inner {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0 0;
}

.footer-links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 960px) {
  body.admin-bar .site-header { top: 46px; }

  .site-header-inner {
    min-height: 74px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    margin-left: auto;
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    content: '';
    position: relative;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle-lines::before { top: -6px; position: absolute; }
  .menu-toggle-lines::after { top: 6px; position: absolute; }

  .primary-nav {
    width: 100%;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0 8px;
  }

  .header-cta {
    display: none;
  }

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

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding-top: 48px; padding-bottom: 82px; }
  .cta-inner { padding: 40px 22px; }
  .store-badge {
    width: 100%;
    justify-content: center;
  }
  .tech-card {
    width: 190px;
    min-height: 188px;
  }
}
