/* ============================================================
   The Holosync Solution — Main Stylesheet
   Retheme by editing the custom properties in :root
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --color-primary:       #1E4E8C;
  --color-primary-dark:  #153870;
  --color-primary-light: #2D6BB5;
  --color-secondary:     #5B2D8E;
  --color-accent:        #48BFE3;
  --color-dark:          #0F172A;
  --color-dark-mid:      #1E293B;
  --color-text:          #1E293B;
  --color-text-muted:    #64748B;
  --color-text-light:    #94A3B8;
  --color-bg:            #FFFFFF;
  --color-bg-alt:        #F8FAFF;
  --color-bg-dark:       #0F172A;
  --color-border:        #E2E8F0;
  --color-white:         #FFFFFF;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --max-width:    1100px;
  --nav-height:   70px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);

  --transition: 0.25s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-dark-mid);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem);  font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section       { padding: var(--space-lg) 0; }
.section--alt  { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-white); }

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-md);
}
.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.section--dark .section__label  { color: var(--color-accent); }
.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}
.section--dark .section__subtitle { color: var(--color-text-light); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  line-height: 1.2;
}
.nav__logo span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
}
.nav__links a:hover,
.nav__links a.active { color: var(--color-primary); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
  }
  .nav__links.open { display: flex; }
  .nav__links a { display: block; padding: 0.8rem 1.5rem; }
}

/* ── Hero (home) ─────────────────────────────────────────────── */
.hero {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(30,78,140,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(91,45,142,0.35) 0%, transparent 50%);
  pointer-events: none;
}
.hero__content { position: relative; max-width: 700px; }
.hero__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--color-white); margin-bottom: 1.25rem; }
.hero__text {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Page Hero (interior pages) ──────────────────────────────── */
.page-hero {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--space-lg) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(30,78,140,0.45) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero__content { position: relative; max-width: 680px; margin: 0 auto; }
.page-hero h1    { color: var(--color-white); margin-bottom: 1rem; }
.page-hero__text { font-size: 1.12rem; color: rgba(255,255,255,0.8); line-height: 1.7; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1.4;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ── Cards ───────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-dark-mid);
  font-family: var(--font-heading);
}
.card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Benefits Grid ───────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.benefit-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.benefit-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.15rem;
  line-height: 1;
}
.benefit-item__body {}
.benefit-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark-mid);
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
}
.benefit-item__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Process Steps ───────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { text-align: center; }
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.step__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-dark-mid);
  font-family: var(--font-heading);
}
.step__text { font-size: 0.92rem; color: var(--color-text-muted); line-height: 1.6; }

/* ── Brainwave State Cards ───────────────────────────────────── */
.brainwave-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.brainwave-card {
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  color: white;
}
.brainwave-card--beta  { background: linear-gradient(135deg,#2563EB,#3B82F6); }
.brainwave-card--alpha { background: linear-gradient(135deg,#7C3AED,#A78BFA); }
.brainwave-card--theta { background: linear-gradient(135deg,#0D9488,#2DD4BF); }
.brainwave-card--delta { background: linear-gradient(135deg,#1E3A8A,#2D5BE3); }
.brainwave-card__freq  {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}
.brainwave-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.brainwave-card__desc {
  font-size: 0.88rem;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
}

/* ── Two-Column Layout ───────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}
.two-col__visual {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  color: white;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.two-col__visual-icon { font-size: 4rem; margin-bottom: 1rem; line-height: 1; }
.two-col__visual h3   { color: white; font-size: 1.3rem; margin-bottom: 0.5rem; }
.two-col__visual p    { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin: 0; }

/* ── Quote Section ───────────────────────────────────────────── */
.quote-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  padding: var(--space-lg) 0;
  text-align: center;
}
blockquote { max-width: 780px; margin: 0 auto; }
blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
blockquote cite {
  font-size: 0.9rem;
  font-style: normal;
  opacity: 0.82;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Stats Row ───────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat__number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: 1;
}
.stat__label {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  background: var(--color-bg-alt);
  padding: var(--space-lg) 0;
  text-align: center;
}
.cta-section h2  { margin-bottom: 1rem; }
.cta-section p   { color: var(--color-text-muted); max-width: 540px; margin: 0 auto 2rem; }
.cta-actions     { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FAQ Accordion ───────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark-mid);
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-style: normal;
  transition: transform var(--transition), background var(--transition), color var(--transition);
  color: var(--color-primary);
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.97rem;
}
.faq-item.open .faq-answer { display: block; }
.faq-category-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark-mid);
  margin: 2.5rem 0 0.5rem;
  max-width: 800px;
}
.faq-category-title:first-child { margin-top: 0; }

/* ── About Page ──────────────────────────────────────────────── */
.mission-box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.mission-box h3 { color: white; margin-bottom: 1rem; }
.mission-box p  { color: rgba(255,255,255,0.88); line-height: 1.7; margin: 0; }

.timeline { max-width: 680px; }
.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}
.timeline-content h4 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--color-dark-mid); }
.timeline-content p  { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }

/* ── Privacy Policy ──────────────────────────────────────────── */
.policy-content { max-width: 800px; margin: 0 auto; }
.policy-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content ul, .policy-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content li { margin-bottom: 0.4rem; color: var(--color-text-muted); }
.policy-content p  { color: var(--color-text-muted); }
.policy-meta      { font-size: 0.88rem; color: var(--color-text-light); margin-bottom: 2rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--space-md);
}
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}
.footer__tagline { font-size: 0.9rem; line-height: 1.65; margin: 0; }
.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer__legal a:hover { color: white; }

/* ── 404 Page ────────────────────────────────────────────────── */
.page-404 {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) 1.5rem;
  background: var(--color-bg-dark);
  color: white;
}
.page-404__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 1rem;
}
.page-404 h1 { color: white; margin-bottom: 1rem; }
.page-404 p  { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.1rem; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-center   { text-align: center; }
.text-muted    { color: var(--color-text-muted); }
.mt-sm         { margin-top: var(--space-sm); }
.mt-md         { margin-top: var(--space-md); }
.mb-sm         { margin-bottom: var(--space-sm); }
.mb-md         { margin-bottom: var(--space-md); }
.divider       { border: none; border-top: 1px solid var(--color-border); margin: var(--space-md) 0; }

/* ── Responsive Tweaks ───────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --space-lg: 3rem; --space-xl: 4rem; }
  .hero__actions { flex-direction: column; }
  .btn { text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}
