/* ───────────────────────────────────────────────────────
   Better Brains — Splash Page Styles
   ─────────────────────────────────────────────────────── */

/* ── Reset & Base ──────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f8f9fc;
  --color-bg-card: #ffffff;
  --color-text: #1e1b3a;
  --color-text-muted: #6b6b8d;
  --color-primary: #4f46e5;
  --color-primary-light: #818cf8;
  --color-primary-dark: #3730a3;
  --color-accent: #7c3aed;
  --color-glow: rgba(99, 102, 241, .12);
  --color-glow-strong: rgba(99, 102, 241, .25);
  --color-border: rgba(99, 102, 241, .1);
  --color-border-card: rgba(99, 102, 241, .08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-card: 0 1px 3px rgba(30, 27, 58, .04), 0 8px 32px rgba(79, 70, 229, .06);
  --shadow-card-hover: 0 4px 12px rgba(30, 27, 58, .06), 0 16px 48px rgba(79, 70, 229, .1);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, .15), 0 0 120px rgba(124, 58, 237, .08);

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 600;
  color: var(--color-primary-dark);
}


/* ── Ambient background glows ──────────────────────── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: glowFadeIn 2s ease forwards;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(99, 102, 241, .1) 0%, transparent 70%);
  animation-delay: .5s;
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, .08) 0%, transparent 70%);
  animation-delay: 1s;
}

@keyframes glowFadeIn {
  to { opacity: 1; }
}


/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 2rem;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Hero content ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(124, 58, 237, .06));
  border: 1px solid var(--color-border);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.75rem;
  color: var(--color-text);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  max-width: 520px;
  line-height: 1.75;
}

.hero__highlight {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  max-width: 500px;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.hero__highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15em;
  bottom: .15em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.hero__body {
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__body p {
  margin-bottom: .75rem;
}

.hero__bold {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.05rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  border-radius: 100px;
  transition: transform .35s var(--ease-spring), box-shadow .35s ease;
  box-shadow: 0 4px 20px rgba(79, 70, 229, .25);
}

.hero__cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(79, 70, 229, .35);
}

.hero__cta-icon {
  display: flex;
}


/* ── Hero visual / Neural canvas ── */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.brain-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
}

#neuralCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.brain-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .12) 0%, transparent 70%);
  filter: blur(40px);
  animation: brainGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes brainGlow {
  0% { opacity: .5; transform: scale(.95); }
  100% { opacity: 1; transform: scale(1.05); }
}


/* ── CONTACT CARDS ─────────────────────────────────── */
.contact {
  position: relative;
  z-index: 1;
  padding: 0 2rem 5rem;
}

.contact__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem 2.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition:
    transform .4s var(--ease-spring),
    box-shadow .4s ease,
    border-color .4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, .03), rgba(124, 58, 237, .02));
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(99, 102, 241, .15);
}

.card:hover::before {
  opacity: 1;
}

.card__icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(124, 58, 237, .06));
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  transition: background .35s ease, transform .35s var(--ease-spring);
}

.card:hover .card__icon-wrap {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  transform: scale(1.08);
}

.card__icon {
  width: 24px;
  height: 24px;
}

.card__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .35rem;
  letter-spacing: -.01em;
  position: relative;
}

.card__subtitle {
  font-size: .875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card__contact {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(79, 70, 229, .06);
  transition: background .3s ease;
}

.card:hover .card__contact {
  background: rgba(79, 70, 229, .12);
}


/* ── FOOTER ────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .25rem;
  letter-spacing: -.01em;
}

.footer__status {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}

.footer__email {
  display: inline-block;
  font-size: .9rem;
  color: var(--color-text-muted);
  transition: color .3s ease;
  margin-bottom: .75rem;
}

.footer__email:hover {
  color: var(--color-primary);
}

.footer__micro {
  font-size: .8rem;
  color: var(--color-text-muted);
  opacity: .7;
  font-style: italic;
}


/* ── ANIMATIONS ────────────────────────────────────── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .8s var(--ease-out-expo) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── Scroll-triggered animations ───────────────────── */
.anim-scroll {
  opacity: 0;
  transform: translateY(28px);
  animation: none;
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}

.anim-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-scroll--visible.card:nth-child(2) {
  transition-delay: .12s;
}

.anim-scroll--visible.card:nth-child(3) {
  transition-delay: .24s;
}


/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero__lead,
  .hero__body,
  .hero__highlight {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__highlight {
    padding-left: 0;
  }

  .hero__highlight::before {
    display: none;
  }

  .hero__cta {
    margin: 0 auto;
  }

  .hero__content {
    order: 1;
  }

  .hero__visual {
    order: 0;
  }

  .brain-container {
    max-width: 360px;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }
}

@media (max-width: 700px) {
  .contact__inner {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1.25rem 2rem;
  }

  .contact {
    padding: 1rem 1.25rem 3rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .brain-container {
    max-width: 280px;
  }

  .card {
    padding: 2rem 1.5rem;
  }
}
