/* ============================================================
   SERENDIPIA LEARNING — Stylesheet
   Brand palette: #0E2533 · #024873 · #C89247 · #7EC6F2 · #734402
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0E2533;
  --teal:      #024873;
  --gold:      #C89247;
  --gold-dark: #734402;
  --sky:       #7EC6F2;
  --sky-light: #EAF6FD;
  --cream:     #FDFAF5;
  --white:     #FFFFFF;
  --text:      #1C2B36;
  --text-muted:#5A6F7C;
  --border:    #D6E8F0;
  --section-alt:#F4F8FB;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; }

/* ── SCROLL PROGRESS BAR ── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--sky));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(200,146,71,0.6);
}

/* ── CONTAINER ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 80px 0; }

/* ── TYPOGRAPHY ── */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.5s ease 0.3s;
}
.section-label.visible::after { width: 100%; }

h1 {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}

h2 {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

p { font-size: 1.05rem; color: var(--text-muted); }
strong { color: var(--text); font-weight: 700; }

/* Word-split reveal */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
}
.word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-words.visible .word-inner {
  transform: translateY(0);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shine sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn:hover::after { left: 160%; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,146,71,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* Magnetic button wrapper */
.btn-magnetic { display: inline-block; }

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}

/* ── NAV ── */
#nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(14,37,51,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-100%);
  animation: navSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.4); }

@keyframes navSlideDown {
  to { transform: translateY(0); }
}

#nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img { height: 72px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.nav-menu a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s, opacity 0.2s;
}

.nav-menu a:hover {
  color: var(--white);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { font-size: 0.92rem; padding: 10px 24px; }

/* ── HERO ── */
#hero {
  background: linear-gradient(150deg, #050f17 0%, #0E2533 45%, #024873 100%);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
}

/* Canvas particles */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Morphing background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: var(--sky);
  top: -120px; right: -80px;
  animation-delay: 0s;
  animation-duration: 9s;
}
.hero-orb-2 {
  width: 380px; height: 380px;
  background: var(--gold);
  bottom: -60px; left: -60px;
  opacity: 0.12;
  animation-delay: -4s;
  animation-duration: 11s;
}
.hero-orb-3 {
  width: 260px; height: 260px;
  background: var(--teal);
  top: 40%; left: 40%;
  opacity: 0.1;
  animation-delay: -2s;
  animation-duration: 7s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 15px) scale(0.96); }
  100% { transform: translate(15px, -30px) scale(1.02); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 32px;
  align-items: end;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content { max-width: 500px; padding-bottom: 56px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,146,71,0.15);
  border: 1px solid rgba(200,146,71,0.4);
  color: var(--gold);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}

.hero-tag .tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.6); }
}

#hero h1 {
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
}

.hero-headline-line {
  display: inline-block;
  white-space: nowrap;
}

#hero .subheadline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.9s forwards;
}

#hero .cta-group {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 1.1s forwards;
}

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

/* Hero scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.6s forwards;
  z-index: 2;
}
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero photo */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  overflow: visible;
}

.hero-photo-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  opacity: 0;
  animation: photoEnterRight 1s cubic-bezier(0.16,1,0.3,1) 1s forwards;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.45));
}

.hero-photo-card img {
  width: 100%;
  display: block;
  max-height: 580px;
  object-fit: contain;
  object-position: bottom center;
}

@keyframes photoEnterRight {
  from { opacity: 0; transform: translateX(40px) translateY(16px); }
  to   { opacity: 1; transform: translateX(0) translateY(0); }
}

/* ── PARTNERS SECTION ── */
#partners {
  padding: 64px 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.partners-label::before,
.partners-label::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--border);
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px 80px;
}

.partners-grid img {
  height: 160px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.partners-grid img:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.06);
}

/* ── ANIMATIONS BASE ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* ── PROBLEM ── */
#problem { background: var(--white); }

#problem h2 { margin-bottom: 18px; }
#problem .intro-text { font-size: 1.1rem; max-width: 680px; margin-bottom: 44px; }

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

.pain-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  background: var(--section-alt);
  border-top: 4px solid var(--gold);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  cursor: default;
  will-change: transform;
}
.pain-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 48px rgba(2,72,115,0.14);
  border-top-color: var(--sky);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.card-icon svg { width: 22px; height: 22px; }

/* Light-background sections */
#problem .card-icon {
  background: rgba(2,72,115,0.07);
  border: 1px solid rgba(2,72,115,0.15);
  color: var(--teal);
}
#problem .pain-card:hover .card-icon {
  background: rgba(126,198,242,0.14);
  border-color: rgba(126,198,242,0.4);
  color: var(--sky);
}

.pain-card h3 { margin-bottom: 10px; }
.pain-card p  { font-size: 0.97rem; }

/* ── SOLUTION ── */
#solution {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Animated grid lines */
#solution::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126,198,242,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,198,242,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 64px 64px; }
}

#solution::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,198,242,0.09) 0%, transparent 70%);
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite alternate;
}

#solution .section-label { color: var(--sky); }
#solution h2 { color: var(--white); margin-bottom: 24px; }

.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}

.solution-text {
  display: flex;
  flex-direction: column;
}

.solution-image {
  border-radius: 18px;
  overflow: hidden;
}
.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.solution-intro {
  position: relative;
  z-index: 1;
}
.solution-intro p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.75;
}
.solution-intro p:last-child { margin-bottom: 0; }
.solution-intro p strong { color: var(--sky); }

.solution-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}

.pillar-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--sky);
  border-radius: 14px;
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.3s, transform 0.3s, border-top-color 0.3s;
  cursor: default;
}
.pillar-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-5px);
  border-top-color: var(--gold);
}
.pillar-card:hover .pillar-icon {
  background: rgba(200,146,71,0.14);
  border-color: rgba(200,146,71,0.4);
  color: var(--gold);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(126,198,242,0.1);
  border: 1px solid rgba(126,198,242,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar-card h4 {
  font-size: 0.97rem;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}
.pillar-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.58);
  margin: 0;
  line-height: 1.65;
}

.solution-cta {
  margin-top: 44px;
  position: relative;
  z-index: 1;
}

/* ── SERVICES ── */
#services { background: var(--white); }

#services h2 { margin-bottom: 14px; }
#services .intro-text { font-size: 1.05rem; max-width: 620px; margin-bottom: 44px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line between steps */
.services-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--sky), var(--teal));
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s, width 1.2s ease;
}
.services-grid.visible::before { opacity: 1; }

.service-card {
  background: var(--section-alt);
  border-radius: 14px;
  padding: 32px 24px 28px;
  margin: 0 8px;
  border: 1px solid var(--border);
  border-top: none;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s ease,
              background 0.3s;
  position: relative;
  z-index: 1;
  cursor: default;
}

/* Step number circle on top */
.service-card::before {
  content: attr(data-step);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.service-card:hover::before {
  background: var(--gold);
  color: var(--white);
  transform: translateX(-50%) scale(1.15);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(2,72,115,0.14);
  background: var(--white);
}

.service-step {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,146,71,0.1);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
  margin-top: 4px;
}

.service-card h3 { margin-bottom: 12px; font-size: 1.05rem; }
.service-card p  { font-size: 0.93rem; }

/* ── RESULTS ── */
#results {
  background: linear-gradient(160deg, #024873 0%, #0E2533 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Floating geometric shapes */
#results .geo {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  pointer-events: none;
  animation: geoFloat 12s ease-in-out infinite alternate;
}
.geo-1 { --r: 20deg;  width: 80px;  height: 80px;  top: 10%;    right: 8%;  animation-delay: 0s; }
.geo-2 { --r: -15deg; width: 50px;  height: 50px;  top: 60%;    right: 20%; animation-delay: -3s; }
.geo-3 { --r: 35deg;  width: 120px; height: 120px; bottom: 10%; left: 5%;   animation-delay: -6s; }
.geo-4 { --r: -30deg; width: 40px;  height: 40px;  top: 30%;    left: 15%;  animation-delay: -9s; }

@keyframes geoFloat {
  0%   { transform: rotate(var(--r, 20deg)) translateY(0); }
  100% { transform: rotate(calc(var(--r, 20deg) + 20deg)) translateY(-20px); }
}

#results .section-label { color: var(--gold); }
#results h2 { color: var(--white); max-width: 600px; margin-bottom: 14px; }
#results .intro-text {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 44px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.result-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 30px 26px;
  transition: background 0.3s, border-color 0.3s, transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* Glow on hover */
.result-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(126,198,242,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.result-item:hover::before { opacity: 1; }

.result-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(126,198,242,0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

/* Dark-background sections */
#results .card-icon {
  background: rgba(126,198,242,0.1);
  border: 1px solid rgba(126,198,242,0.22);
  color: var(--sky);
}
#results .result-item:hover .card-icon {
  background: rgba(200,146,71,0.14);
  border-color: rgba(200,146,71,0.4);
  color: var(--gold);
}

.result-item h3 { color: var(--white); margin-bottom: 10px; font-size: 1rem; }
.result-item p  { font-size: 0.9rem; color: rgba(255,255,255,0.65); }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--section-alt); }

#testimonials h2 { margin-bottom: 14px; }
#testimonials .intro-text { font-size: 1.05rem; max-width: 600px; margin-bottom: 44px; }

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

.testimonial-card {
  background: var(--white);
  border-radius: 14px;
  padding: 34px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
  will-change: transform;
}
.testimonial-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 24px 56px rgba(0,0,0,0.1);
}

.testimonial-quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
  margin-bottom: 8px;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}
.testimonial-card:hover .testimonial-quote-mark { opacity: 0.9; transform: scale(1.1); }

.testimonial-card .quote {
  font-size: 0.98rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sky-light);
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover .author-avatar {
  border-color: var(--gold);
  transform: scale(1.1);
}

.author-name { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.author-role { font-size: 0.82rem; color: var(--text-muted); margin-top: 1px; }

.placeholder-note {
  margin-top: 36px;
  background: #FFF8E7;
  border: 2px dashed #E8C46A;
  border-radius: 10px;
  padding: 18px 24px;
  font-size: 0.88rem;
  color: #7A5C00;
  font-style: italic;
}

/* ── TEAM ── */
#team {
  padding: 88px 0;
  background: var(--white);
}

#team h2 { margin-bottom: 48px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.team-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.team-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.team-links a:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: #fdf8f0;
}

.team-links a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── FINAL CTA ── */
#cta {
  background: var(--navy);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated rings */
.cta-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(200,146,71,0.15);
  transform: translate(-50%, -50%);
  animation: ctaRing 4s ease-in-out infinite;
  pointer-events: none;
}
.cta-ring-1 { width: 400px; height: 400px; animation-delay: 0s; }
.cta-ring-2 { width: 640px; height: 640px; animation-delay: -1.3s; }
.cta-ring-3 { width: 900px; height: 900px; animation-delay: -2.6s; }

@keyframes ctaRing {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(200,146,71,0.12) 0%, transparent 70%);
  pointer-events: none;
}

#cta .container { position: relative; z-index: 1; }
#cta h2 { color: var(--white); max-width: 720px; margin: 0 auto 20px; }
#cta .cta-body {
  color: rgba(255,255,255,0.7);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto;
}

#cta .cta-group { justify-content: center; margin-top: 32px; }

#cta .btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-size: 1.05rem;
  padding: 18px 40px;
}
#cta .btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  box-shadow: 0 12px 36px rgba(200,146,71,0.4);
}

#cta .btn-secondary {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
  padding: 18px 40px;
  font-size: 1.05rem;
}
#cta .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* ── FOOTER ── */
footer {
  background: #050E14;
  color: rgba(255,255,255,0.45);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo img { height: 64px; opacity: 0.65; transition: opacity 0.3s; }
.footer-logo:hover img { opacity: 1; }
.footer-copy { font-size: 0.88rem; text-align: center; }
.footer-copy a { color: var(--sky); text-decoration: none; transition: color 0.2s; }
.footer-copy a:hover { color: var(--gold); }

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV BACKDROP ── */
#mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 20, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 188;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ── MOBILE NAV PANEL ── */
#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 100vw);
  background: rgba(8, 22, 34, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 190;
  display: flex;
  flex-direction: column;
  padding: 110px 36px 48px;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
}
#mobile-nav.open {
  transform: translateX(0);
}

#mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
}

#mobile-nav nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, padding-left 0.25s cubic-bezier(0.16,1,0.3,1);
  display: block;
}
#mobile-nav nav a:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
#mobile-nav nav a:hover {
  color: var(--white);
  padding-left: 10px;
}

.mobile-nav-cta {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 15px 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .services-grid::before { display: none; }
  .results-grid   { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-visual    { display: none; }
  .solution-layout { grid-template-columns: 1fr; gap: 40px; }
  .solution-pillars { grid-template-columns: repeat(2, 1fr); }
  #hero {
    padding: 58px 0 40px;
  }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .container { padding: 0 24px; }
  .nav-logo img { height: 56px; }

  .pain-grid  { grid-template-columns: 1fr; }
  .solution-layout { grid-template-columns: 1fr; gap: 32px; }
  .solution-pillars { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 48px 0; }
  .results-grid  { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  #hero { padding: 48px 0 36px; min-height: auto; align-items: flex-start; }
  #hero h1 { margin-bottom: 16px; }
  #hero .subheadline { font-size: 1.03rem; line-height: 1.6; }
  .scroll-hint { display: none; }

  .cta-group { flex-direction: column; align-items: stretch; text-align: center; }
  .btn { justify-content: center; }

  .footer-inner { flex-direction: column; text-align: center; }

  .cta-ring-2, .cta-ring-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
