/* ============================================================
   BridgEd — Privacy First Educator Network
   Stylesheet v1.0
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors — drawn from the BridgEd logo */
  --navy:        #14304D;
  --navy-light:  #1E4A73;
  --blue:        #2B7CB9;
  --blue-soft:   #5BA3D9;
  --gold:        #F2A922;
  --gold-light:  #FFD06B;
  --coral:       #E07A5F;
  --coral-soft:  #F4A98C;
  --teal:        #3A8B7A;
  --teal-soft:   #6DBCAD;
  --green:       #4CAF50;
  --red:         #D94F4F;

  /* Neutrals */
  --cream:       #FFF9F1;
  --cream-dark:  #F3EAE0;
  --sand:        #EDE3D6;
  --white:       #FFFFFF;
  --gray-100:    #F7F5F2;
  --gray-200:    #E8E4DF;
  --gray-300:    #C9C3BB;
  --gray-400:    #9B9488;
  --gray-500:    #706A60;
  --gray-600:    #4A453D;
  --gray-700:    #2D2A25;
  --ink:         #1A1720;

  /* Functional */
  --bg:          var(--cream);
  --bg-alt:      var(--gray-100);
  --surface:     var(--white);
  --text:        var(--ink);
  --text-secondary: var(--gray-500);
  --text-muted:  var(--gray-400);
  --border:      var(--gray-200);

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Spacing scale (4-px base) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-8: 32px;  --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 100px;
  --r-circle: 50%;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(20, 48, 77, .04);
  --shadow-sm:  0 2px 8px rgba(20, 48, 77, .06);
  --shadow-md:  0 8px 24px rgba(20, 48, 77, .08);
  --shadow-lg:  0 16px 48px rgba(20, 48, 77, .10);
  --shadow-xl:  0 24px 64px rgba(20, 48, 77, .14);
  --shadow-glow-gold: 0 8px 32px rgba(242, 169, 34, .25);
  --shadow-glow-blue: 0 8px 32px rgba(43, 124, 185, .20);

  /* Transitions */
  --ease-out:   cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --duration-fast: 200ms;
  --duration:    350ms;
  --duration-slow: 600ms;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 820px;
  --nav-height: 76px;
}

/* ---------- Grain texture overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

p { max-width: 64ch; }

.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold  { color: var(--gold); }
.text-coral { color: var(--coral); }
.text-blue  { color: var(--blue); }
.text-teal  { color: var(--teal); }
.text-muted { color: var(--text-secondary); }

.subheading {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--sp-24);
  position: relative;
}

.section--alt {
  background-color: var(--bg-alt);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }
.gap-12 { gap: var(--sp-12); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 32px;
  border-radius: var(--r-pill);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-fast);
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent);
}

.btn:hover::after { opacity: 1; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, #E8941A 100%);
  color: var(--white);
  box-shadow: var(--shadow-glow-gold);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(242, 169, 34, .35);
}

.btn--secondary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  background: var(--navy-light);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

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

.btn--ghost {
  color: var(--navy);
  padding: 10px 20px;
}

.btn--ghost:hover {
  background: rgba(20, 48, 77, .06);
}

.btn--sm {
  padding: 10px 22px;
  font-size: .85rem;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn .arrow {
  transition: transform var(--duration) var(--ease-spring);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease-out);
  border: 1px solid rgba(0,0,0,.03);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  font-size: 1.5rem;
}

.card__icon--blue  { background: linear-gradient(135deg, #E8F4FD, #D0EAFB); color: var(--blue); }
.card__icon--gold  { background: linear-gradient(135deg, #FFF4DB, #FFE8B5); color: var(--gold); }
.card__icon--coral { background: linear-gradient(135deg, #FDECE7, #FBDAD0); color: var(--coral); }
.card__icon--teal  { background: linear-gradient(135deg, #E3F5F1, #C8EBE3); color: var(--teal); }

.card__title {
  margin-bottom: var(--sp-3);
}

.card__text {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.65;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--duration) var(--ease-out);
  background: rgba(255, 249, 241, .65);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
}

.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 12px rgba(20, 48, 77, .07);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav__logo img {
  height: 54px;
  width: auto;
}

.footer__brand .nav__logo img {
  height: 48px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__link {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: var(--sp-2) 0;
  transition: color var(--duration-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--duration) var(--ease-spring);
}

.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { width: 100%; }
.nav__link.active { color: var(--navy); font-weight: 600; }
.nav__link.active::after { width: 100%; }

.nav__cta {
  margin-left: var(--sp-4);
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  z-index: 1010;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav__mobile,
.nav__mobile-backdrop {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--sp-16));
  padding-bottom: var(--sp-24);
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}

.hero__bg-circle--1 {
  width: 600px;
  height: 600px;
  background: var(--gold-light);
  top: -15%;
  right: -8%;
  opacity: .25;
}

.hero__bg-circle--2 {
  width: 400px;
  height: 400px;
  background: var(--blue-soft);
  bottom: 5%;
  left: -5%;
  opacity: .18;
}

.hero__bg-circle--3 {
  width: 250px;
  height: 250px;
  background: var(--coral-soft);
  top: 40%;
  right: 30%;
  opacity: .12;
}

/* Diagonal decorative line */
.hero__bg-line {
  position: absolute;
  width: 300%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .15;
  top: 60%;
  left: -50%;
  transform: rotate(-8deg);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.hero__text {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: linear-gradient(135deg, rgba(242,169,34,.12), rgba(242,169,34,.05));
  border: 1px solid rgba(242,169,34,.25);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--sp-6);
}

.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero__title {
  margin-bottom: var(--sp-6);
}

.hero__title .highlight {
  position: relative;
  display: inline;
}

.hero__title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 12px;
  background: var(--gold-light);
  opacity: .4;
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-3deg);
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--sp-10);
  max-width: 480px;
}

/* Email signup form */
.hero__form {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero__form .input-wrap {
  flex: 1;
  position: relative;
}

.hero__form input {
  width: 100%;
  padding: 15px 20px 15px 48px;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--duration-fast);
  outline: none;
}

.hero__form input::placeholder {
  color: var(--gray-400);
}

.hero__form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 124, 185, .12);
}

.hero__form .input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.hero__form-note {
  font-size: .8rem;
  color: var(--text-muted);
}

.hero__form-note svg {
  vertical-align: -2px;
  margin-right: 4px;
}

/* Hero visual (right side) */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-main {
  width: 100%;
  max-width: 520px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero__image-main img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating mini cards around hero image */
.hero__float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  animation: float 6s ease-in-out infinite;
}

.hero__float-card--1 {
  top: 8%;
  left: -12%;
  animation-delay: 0s;
}

.hero__float-card--2 {
  bottom: 15%;
  right: -10%;
  animation-delay: -2s;
}

.hero__float-card--3 {
  bottom: -5%;
  left: 5%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero__float-label {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
}

.hero__float-sublabel {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Decorative dots behind hero image */
.hero__dots {
  position: absolute;
  width: 120px;
  height: 120px;
  z-index: 1;
  opacity: .3;
}

.hero__dots--tr {
  top: -20px;
  right: -20px;
  background-image: radial-gradient(var(--gold) 2px, transparent 2px);
  background-size: 16px 16px;
}

.hero__dots--bl {
  bottom: 20px;
  left: -30px;
  background-image: radial-gradient(var(--blue-soft) 2px, transparent 2px);
  background-size: 16px 16px;
}

/* ---------- Stats / Social proof bar ---------- */
.stats-bar {
  padding-block: var(--sp-12);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  text-align: center;
}

.stats-bar__item {
  padding: var(--sp-4);
}

.stats-bar__number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}

.stats-bar__label {
  font-size: .88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Problem Section ---------- */
.problem {
  position: relative;
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-16);
  align-items: center;
}

.problem__image {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

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

.problem__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 48, 77, .08), transparent);
  pointer-events: none;
}

.problem__text h2 {
  margin-bottom: var(--sp-6);
}

.problem__text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.problem__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  font-size: .95rem;
  color: var(--text-secondary);
}

.problem__list-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-circle);
  background: linear-gradient(135deg, rgba(224, 122, 95, .15), rgba(224, 122, 95, .05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--coral);
}

/* ---------- Features ---------- */
.features {
  position: relative;
}

.features__header {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--sp-16);
}

.features__header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: var(--sp-4);
  margin-inline: auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.feature-card {
  padding: var(--sp-10);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.03);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity var(--duration);
}

.feature-card:nth-child(1)::before { background: linear-gradient(90deg, var(--blue), var(--blue-soft)); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, var(--coral), var(--coral-soft)); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, var(--teal), var(--teal-soft)); }

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.feature-card__title {
  margin-bottom: var(--sp-3);
}

.feature-card__desc {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.7;
}

.feature-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.feature-card__tag {
  font-size: .75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--gray-100);
  color: var(--text-secondary);
}

/* ---------- How It Works ---------- */
.how-it-works {
  position: relative;
}

.how-it-works__header {
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--sp-16);
}

.how-it-works__header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: var(--sp-4);
  margin-inline: auto;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
  position: relative;
}

/* Connecting line between steps */
.how-it-works__steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--teal));
  opacity: .3;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 64px;
  height: 64px;
  border-radius: var(--r-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.step:nth-child(1) .step__number { background: linear-gradient(135deg, var(--gold), #E8941A); }
.step:nth-child(2) .step__number { background: linear-gradient(135deg, var(--blue), var(--navy-light)); }
.step:nth-child(3) .step__number { background: linear-gradient(135deg, var(--teal), #2A7366); }

.step__title {
  margin-bottom: var(--sp-3);
}

.step__text {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.65;
  max-width: 280px;
  margin-inline: auto;
}

/* ---------- Testimonials ---------- */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials__header {
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--sp-16);
}

.testimonials__header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: var(--sp-4);
  margin-inline: auto;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.03);
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card__quote {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: var(--sp-6);
  position: relative;
  padding-left: var(--sp-5);
  border-left: 3px solid var(--gold-light);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-circle);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}

.testimonial-card__role {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section__box {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3F6B 50%, var(--navy-light) 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-20) var(--sp-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__box::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 34, .15), transparent 70%);
  top: -200px;
  right: -100px;
}

.cta-section__box::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 124, 185, .1), transparent 70%);
  bottom: -100px;
  left: -50px;
}

.cta-section__box h2 {
  color: var(--white);
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.cta-section__box p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
  position: relative;
  z-index: 1;
}

.cta-section__form {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin-inline: auto;
}

.cta-section__form input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: all var(--duration-fast);
}

.cta-section__form input::placeholder {
  color: rgba(255,255,255,.45);
}

.cta-section__form input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.12);
}

/* ---------- Footer ---------- */
.footer {
  padding-block: var(--sp-16) var(--sp-8);
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--border);
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-top: var(--sp-4);
  max-width: 280px;
  line-height: 1.7;
}

.footer__brand .nav__logo {
  margin-bottom: var(--sp-2);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy);
  margin-bottom: var(--sp-5);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__col a {
  font-size: .9rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  font-size: .82rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: var(--sp-4);
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r-circle);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all var(--duration-fast);
}

.footer__social a:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Page Hero (for inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--sp-20));
  padding-bottom: var(--sp-16);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg-alt) 100%);
  z-index: 0;
}

.page-hero__bg::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,169,34,.1), transparent 70%);
  top: -200px;
  right: 10%;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: var(--sp-4);
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-inline: auto;
}

/* ---------- About Page ---------- */
.about-mission {
  position: relative;
}

.about-mission__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.about-mission__image {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-mission__image img {
  width: 100%;
  display: block;
}

.about-mission__text h2 {
  margin-bottom: var(--sp-6);
}

.about-mission__text p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}

/* Values */
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.value-card {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.03);
  transition: all var(--duration) var(--ease-out);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
  font-size: 1.8rem;
}

.value-card__title {
  margin-bottom: var(--sp-3);
}

.value-card__text {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.65;
}

/* ---------- Contact Page ---------- */
.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-info {
  padding: var(--sp-10);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--r-xl);
  color: var(--white);
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.contact-info p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  font-size: .92rem;
}

.contact-info__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-info__detail {
  padding-top: 2px;
}

.contact-info__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}

.contact-info__value {
  color: var(--white);
}

/* Contact Form */
.contact-form {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  margin-bottom: var(--sp-6);
}

.form-group {
  margin-bottom: var(--sp-5);
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--duration-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 124, 185, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-12) var(--sp-8);
}

.form-success.visible {
  display: block;
}

.form-success__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-circle);
  background: linear-gradient(135deg, rgba(74, 175, 80, .15), rgba(74, 175, 80, .05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
  color: var(--green);
  font-size: 2rem;
}

.form-success h3 {
  color: var(--navy);
  margin-bottom: var(--sp-3);
}

.form-success p {
  color: var(--text-secondary);
  margin-inline: auto;
}

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 700px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.faq-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--duration-fast);
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.faq-item__question:hover {
  color: var(--blue);
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-circle);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration);
  font-size: .85rem;
  color: var(--gray-500);
}

.faq-item.open .faq-item__icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration) var(--ease-out);
}

.faq-item__answer-inner {
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 500ms; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Wavy Section Divider ---------- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.wave-divider--flip {
  transform: scaleY(-1);
  margin-bottom: -1px;
  margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-12);
  }

  .hero__text {
    max-width: 600px;
    margin-inline: auto;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__form {
    justify-content: center;
    max-width: 460px;
    margin-inline: auto;
  }

  .hero__form-note {
    text-align: center;
  }

  .hero__visual {
    max-width: 480px;
    margin-inline: auto;
  }

  .hero__float-card--1 { left: -5%; }
  .hero__float-card--2 { right: -5%; }

  .features__grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-inline: auto;
  }

  .problem__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .about-mission__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

@media (max-width: 768px) {
  :root {
    --sp-24: 64px;
    --sp-20: 56px;
    --sp-16: 44px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Mobile nav – LHS slide-out drawer */
  .nav__mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 48, 77, .45);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease-out);
  }

  .nav__mobile-backdrop.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--white);
    z-index: 1001;
    padding: var(--sp-8) var(--sp-6) var(--sp-8);
    box-shadow: 4px 0 24px rgba(20, 48, 77, .15);
    transform: translateX(-100%);
    transition: transform .3s var(--ease-out);
    overflow-y: auto;
  }

  .nav__mobile.open {
    transform: translateX(0);
  }

  .nav__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-8);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--border);
  }

  .nav__mobile-header img {
    height: 40px;
    width: auto;
  }

  .nav__mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
    color: var(--navy);
    border-radius: 8px;
    transition: background .2s;
  }

  .nav__mobile-close:hover {
    background: var(--cream);
  }

  .nav__mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav__mobile-link {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    padding: var(--sp-4) var(--sp-3);
    border-radius: 8px;
    transition: background .2s, color .2s;
    text-decoration: none;
  }

  .nav__mobile-link:hover,
  .nav__mobile-link.active {
    background: var(--cream);
    color: var(--blue);
  }

  .nav__mobile-cta {
    margin-top: auto;
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--sp-12));
  }

  .hero__form {
    flex-direction: column;
  }

  .hero__float-card {
    display: none;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .how-it-works__steps::before {
    display: none;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .values__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .contact-section__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-section__form {
    flex-direction: column;
  }

  .cta-section__box {
    padding: var(--sp-12) var(--sp-8);
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --sp-24: 48px;
    --sp-20: 44px;
    --sp-16: 36px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }

  .feature-card {
    padding: var(--sp-6);
  }

  .hero__image-main {
    border-radius: var(--r-lg);
  }
}

/* ---------- Utility: Screen reader only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Toast notification (for form success) ---------- */
.toast {
  position: fixed;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9000;
  transition: transform var(--duration) var(--ease-spring);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Floating CTA Pill ---------- */
.floating-cta {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  z-index: 8500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.92);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-spring);
}

.floating-cta.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Hide when user is near an existing waitlist section */
.floating-cta.hide-near-form {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.92);
}

/* Collapsed: just the pill button */
.floating-cta__trigger {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  background: linear-gradient(135deg, var(--gold) 0%, #E8941A 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-glow-gold);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  border: none;
}

.floating-cta__trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(242, 169, 34, .4);
}

.floating-cta__trigger .arrow {
  transition: transform var(--duration) var(--ease-spring);
  font-size: 1rem;
}

.floating-cta__trigger:hover .arrow {
  transform: translateX(3px);
}

/* Subtle pulse to draw attention on first appearance */
.floating-cta__trigger {
  animation: cta-pulse 3s ease-in-out 2s 2;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--shadow-glow-gold); }
  50% { box-shadow: 0 8px 40px rgba(242, 169, 34, .45), 0 0 0 6px rgba(242, 169, 34, .12); }
}

/* Expanded: form panel */
.floating-cta__panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 340px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.95);
  transform-origin: bottom right;
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-spring);
  border: 1px solid var(--border);
}

.floating-cta.expanded .floating-cta__trigger {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: scale(.8);
}

.floating-cta.expanded .floating-cta__panel {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.floating-cta__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.floating-cta__panel-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.floating-cta__close {
  width: 30px;
  height: 30px;
  border-radius: var(--r-circle);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  color: var(--gray-500);
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.floating-cta__close:hover {
  background: var(--gray-200);
  color: var(--navy);
}

.floating-cta__panel-text {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.floating-cta__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.floating-cta__form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: all var(--duration-fast);
}

.floating-cta__form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 124, 185, .1);
}

.floating-cta__form input::placeholder {
  color: var(--gray-400);
}

.floating-cta__form .btn {
  width: 100%;
}

.floating-cta__note {
  font-size: .73rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--sp-1);
}

/* Success state inside the panel */
.floating-cta__success {
  display: none;
  text-align: center;
  padding: var(--sp-4) 0;
}

.floating-cta__success.visible {
  display: block;
}

.floating-cta__success-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-circle);
  background: linear-gradient(135deg, rgba(74,175,80,.15), rgba(74,175,80,.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
  color: var(--green);
}

.floating-cta__success p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive: adjust position on mobile */
@media (max-width: 480px) {
  .floating-cta {
    right: var(--sp-4);
    bottom: var(--sp-4);
  }

  .floating-cta__panel {
    width: calc(100vw - 32px);
    right: 0;
  }

  .floating-cta__trigger {
    padding: 12px 20px;
    font-size: .84rem;
  }
}

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 44px;
  height: 44px;
  border-radius: var(--r-circle);
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all var(--duration) var(--ease-out);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

/* ---------- Loading animation ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Custom cursor (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--navy);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform .15s var(--ease-out),
                background .15s,
                border-color .15s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 0;
  }

  .custom-cursor.visible {
    opacity: 1;
  }

  .custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.6);
    background: rgba(242, 169, 34, .2);
    border-color: var(--gold);
  }
}
