/* Nexus website — all tokens from ../../colors_and_type.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--apex-black); color: var(--apex-text-primary); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--easing-enter), transform 0.65s var(--easing-enter);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ---------- hero entrance (immediate, no scroll trigger) ---------- */
.enter { opacity: 0; transform: translateY(24px); animation: enter 0.6s var(--easing-enter) forwards; }
@keyframes enter { to { opacity: 1; transform: translateY(0); } }
.enter-1 { animation-delay: 80ms; }
.enter-2 { animation-delay: 160ms; }
.enter-3 { animation-delay: 240ms; }
.enter-4 { animation-delay: 320ms; }

/* ---------- lime pulse ---------- */
@keyframes pulse-lime {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.pulse { animation: pulse-lime 2.2s ease-in-out infinite; }

/* ---------- container ---------- */
.container { max-width: var(--grid-max); margin: 0 auto; padding: 0 var(--grid-side-pad); }
@media (max-width: 900px) { .container { padding: 0 40px; } }
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* ====================== NAV ====================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,8,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--apex-border-default);
  transition: background 0.2s, border-color 0.2s;
}
.nav.scrolled { background: rgba(8,8,8,0.94); border-bottom-color: var(--apex-border-hover); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 22px; height: 22px; }
.brand .word { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--apex-text-primary); }
.brand .word .ai { color: var(--apex-lime); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--apex-text-secondary);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--apex-lime);
  transition: width 0.2s var(--easing-default);
}
.nav-links a:hover, .nav-links a.active { color: var(--apex-text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--apex-lime); color: var(--apex-text-inverse); border: none;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.nav-cta:hover  { background: var(--apex-white); }
.nav-cta:active { background: #d4e83a; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--apex-text-primary); transition: transform 0.2s, opacity 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  border-top: 1px solid var(--apex-border-default);
  background: rgba(8,8,8,0.98);
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s var(--easing-default);
}
.mobile-menu.open { max-height: 440px; }
.mobile-menu a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--apex-text-secondary);
  padding: 18px 0; border-bottom: 1px solid var(--apex-border-default);
  display: block;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--apex-text-primary); }
.mobile-menu .mobile-cta { padding: 20px 0; }

@media (max-width: 900px) { .nav-links { display: none; } .hamburger { display: flex; } .mobile-menu { display: flex; } .nav-cta { display: none; } }

/* ====================== HERO ====================== */
.hero { padding: 120px 0 100px; position: relative; overflow: hidden; }
.hero .eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-lime); margin-bottom: 28px; display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--apex-lime); flex-shrink: 0; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 88px; line-height: 1.0; letter-spacing: -0.03em; color: var(--apex-text-primary); margin: 0 0 28px; max-width: 11ch; }
.hero h1 .lime { color: var(--apex-lime); }
.hero .sub { font-family: var(--font-body); font-size: 20px; line-height: 1.6; color: var(--apex-text-secondary); max-width: 56ch; margin: 0 0 40px; }
.hero .ctas { display: flex; gap: 14px; align-items: center; margin-bottom: 80px; flex-wrap: wrap; }
.hero .quote { border-left: 2px solid var(--apex-lime); padding-left: 24px; max-width: 64ch; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.4; color: var(--apex-text-primary); letter-spacing: -0.01em; font-style: italic; margin: 0; }
.hero .quote .by { display: block; font-family: var(--font-mono); font-style: normal; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-text-muted); margin-top: 14px; }

@media (max-width: 900px) { .hero { padding: 80px 0 60px; } .hero h1 { font-size: 56px; } .hero .sub { font-size: 17px; } }
@media (max-width: 600px) { .hero h1 { font-size: 38px; } .hero .sub { font-size: 16px; } }

/* ====================== BUTTONS ====================== */
.btn-primary {
  background: var(--apex-lime); color: var(--apex-text-inverse); border: none;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.btn-primary:hover  { background: var(--apex-white); }
.btn-primary:active { background: #d4e83a; }

.btn-outline {
  background: transparent; color: var(--apex-text-primary);
  border: 1px solid rgba(245,242,235,0.3);
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 27px; border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover  { background: rgba(245,242,235,0.08); border-color: rgba(245,242,235,0.5); }
.btn-outline:active { background: rgba(245,242,235,0.14); }

.btn-ghost {
  background: transparent; color: var(--apex-text-secondary); border: none;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  padding: 14px 18px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--apex-text-primary); }

/* ====================== STATS STRIP ====================== */
.stats-strip { border-top: 1px solid var(--apex-border-default); border-bottom: 1px solid var(--apex-border-default); padding: 48px 0; background: var(--apex-surface-1); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { display: flex; flex-direction: column; gap: 8px; padding: 0 32px; border-right: 1px solid var(--apex-border-default); }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { border-right: none; }
.stat-item .val { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--apex-lime); }
.stat-item .key { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-text-secondary); }
@media (max-width: 900px) { .stats-row { grid-template-columns: 1fr 1fr; gap: 36px; } .stat-item { border-right: none; padding: 0; } }
@media (max-width: 600px) { .stats-row { grid-template-columns: 1fr; gap: 28px; } }

/* ====================== MARQUEE ====================== */
.marquee { border-top: 1px solid var(--apex-border-default); border-bottom: 1px solid var(--apex-border-default); padding: 28px 0; overflow: hidden; }
.marquee-wrap { display: flex; align-items: center; padding: 0 var(--grid-side-pad); gap: 32px; }
.marquee .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-text-muted); white-space: nowrap; flex-shrink: 0; }
.marquee-track { flex: 1; overflow: hidden; }
.marquee-inner { display: flex; animation: marquee-scroll 30s linear infinite; width: max-content; }
.marquee-inner.paused { animation-play-state: paused; }
.marquee-logo { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--apex-text-secondary); letter-spacing: -0.01em; opacity: 0.55; padding: 0 40px; white-space: nowrap; transition: opacity 0.2s, color 0.2s; cursor: default; }
.marquee-logo:hover { opacity: 1; color: var(--apex-text-primary); }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 900px) { .marquee-wrap { padding: 0 40px; } }
@media (max-width: 600px) { .marquee-wrap { padding: 0 20px; } }

/* ====================== SECTION SHELL ====================== */
.section { padding: 120px 0; }
.section-divider { height: 1px; background: linear-gradient(to right, transparent, var(--apex-border-default) 15%, var(--apex-border-default) 85%, transparent); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; gap: 40px; }
.section-head .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-lime); margin-bottom: 16px; display: inline-block; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 56px; letter-spacing: -0.02em; line-height: 1.05; margin: 0; max-width: 18ch; }
.section-head p { font-family: var(--font-body); font-size: 17px; color: var(--apex-text-secondary); line-height: 1.7; max-width: 42ch; margin: 0; }
@media (max-width: 900px) { .section { padding: 80px 0; } .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; } .section-head h2 { font-size: 38px; } }

/* ====================== FRAMEWORK CARDS ====================== */
.framework-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard {
  background: var(--apex-surface-1);
  border: 1px solid var(--apex-border-default);
  border-left: 3px solid var(--apex-lime);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.fcard:hover { background: #131313; border-color: var(--apex-border-hover); border-left-color: var(--apex-lime); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.fcard .ico { width: 44px; height: 44px; border-radius: 999px; background: rgba(232,255,71,0.1); display: flex; align-items: center; justify-content: center; color: var(--apex-lime); transition: background 0.2s; }
.fcard:hover .ico { background: rgba(232,255,71,0.18); }
.fcard .ico svg { width: 22px; height: 22px; }
.fcard .num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-text-muted); }
.fcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 0; }
.fcard p  { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--apex-text-secondary); margin: 0; }
@media (max-width: 900px) { .framework-grid { grid-template-columns: 1fr; } }

/* ====================== PROCESS ====================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--apex-border-default); }
.step { padding: 36px 24px 36px 0; border-right: 1px solid var(--apex-border-default); display: flex; flex-direction: column; gap: 18px; transition: background 0.2s; }
.step:hover { background: rgba(232,255,71,0.02); }
.step:last-child { border-right: none; padding-right: 0; }
.step:not(:first-child) { padding-left: 24px; }
.step .n  { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--apex-lime); }
.step h4  { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; margin: 0; }
.step p   { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--apex-text-secondary); margin: 0; }
.step .when { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--apex-text-muted); margin-top: auto; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; } .step { border-right: none; border-bottom: 1px solid var(--apex-border-default); padding: 28px 0 !important; } .step:last-child { border-bottom: none; } }

/* ====================== CASE STUDIES ====================== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case {
  background: var(--apex-surface-1);
  border: 1px solid var(--apex-border-default);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.case:hover { border-color: var(--apex-border-hover); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.case .tag  { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-text-secondary); }
.case .stat { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.04em; color: var(--apex-lime); }
.case .div  { height: 1px; background: var(--apex-border-default); }
.case .desc { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--apex-text-secondary); }
.case .meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--apex-text-muted); margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.case .meta .read { color: var(--apex-text-primary); display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.case .meta .read svg { transition: transform 0.2s; }
.case .meta .read:hover { color: var(--apex-lime); }
.case .meta .read:hover svg { transform: translate(2px,-2px); }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

/* ====================== TESTIMONIALS ====================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi {
  background: var(--apex-surface-1);
  border: 1px solid var(--apex-border-default);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.testi:hover { border-color: var(--apex-border-hover); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.testi .stars { color: var(--apex-lime); font-size: 13px; letter-spacing: 2px; }
.testi .body { font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; color: var(--apex-text-primary); font-style: italic; flex: 1; margin: 0; }
.testi .person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi .avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--apex-surface-2); border: 1px solid var(--apex-border-default); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--apex-lime); flex-shrink: 0; }
.testi .pname { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--apex-text-primary); }
.testi .prole { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--apex-text-muted); margin-top: 3px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ====================== ABOUT / TEAM ====================== */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team-card {
  background: var(--apex-surface-1);
  border: 1px solid var(--apex-border-default);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { border-color: var(--apex-border-hover); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.team-avatar { width: 80px; height: 80px; border-radius: 999px; background: var(--apex-surface-2); border: 2px solid var(--apex-border-default); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--apex-lime); flex-shrink: 0; }
.team-name  { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 4px; }
.team-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-lime); margin-bottom: 14px; }
.team-bio   { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--apex-text-secondary); margin: 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } .team-card { padding: 28px; gap: 24px; } }
@media (max-width: 600px) { .team-card { grid-template-columns: 1fr; } .team-avatar { width: 64px; height: 64px; font-size: 22px; } }

/* ====================== CTA STRIP ====================== */
.cta-strip { background: var(--apex-surface-1); border-top: 1px solid var(--apex-border-default); border-bottom: 1px solid var(--apex-border-default); padding: 96px 0; }
.cta-row { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.cta-strip h2 { font-family: var(--font-display); font-weight: 700; font-size: 56px; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 20px; max-width: 18ch; }
.cta-strip h2 .lime { color: var(--apex-lime); }
.cta-strip p { font-family: var(--font-body); font-size: 17px; color: var(--apex-text-secondary); line-height: 1.7; max-width: 50ch; margin: 0; }
.cta-strip .right { display: flex; flex-direction: column; gap: 14px; min-width: 280px; }
.cta-strip .accent { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-text-muted); }
@media (max-width: 900px) { .cta-strip { padding: 64px 0; } .cta-strip h2 { font-size: 38px; } .cta-row { grid-template-columns: 1fr; gap: 32px; } }

/* ====================== FOOTER ====================== */
.footer { background: var(--apex-black); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 64px; }
.footer h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-text-muted); margin: 0 0 18px; font-weight: 400; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-family: var(--font-body); font-size: 14px; color: var(--apex-text-secondary); display: inline-block; position: relative; transition: color 0.2s; }
.footer ul a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1px; background: var(--apex-text-primary); transition: width 0.2s var(--easing-default); }
.footer ul a:hover { color: var(--apex-text-primary); }
.footer ul a:hover::after { width: 100%; }
.footer .pitch { font-family: var(--font-body); font-size: 14px; color: var(--apex-text-secondary); line-height: 1.7; max-width: 38ch; margin-top: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--apex-border-default); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-text-muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .footer-bottom { flex-direction: column; gap: 12px; text-align: center; } }

/* ====================== MODAL ====================== */
.modal-scrim { position: fixed; inset: 0; background: rgba(8,8,8,0.68); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.35s; padding: 24px; }
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 480px; background: var(--elev-3-bg); border: 1px solid var(--elev-3-border); border-radius: var(--radius-xl); padding: 36px; transform: translateY(24px) scale(0.98); transition: transform 0.35s var(--easing-enter); }
.modal-scrim.open .modal { transform: translateY(0) scale(1); }
.modal .eye { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--apex-lime); margin-bottom: 16px; }
.modal h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 12px; }
.modal p { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--apex-text-secondary); margin: 0 0 24px; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.modal label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--apex-text-secondary); display: block; margin-bottom: 6px; }
.modal input, .modal textarea { width: 100%; background: var(--apex-surface-2); border: 1px solid var(--apex-border-default); color: var(--apex-text-primary); padding: 12px 14px; border-radius: var(--radius-md); height: 44px; font-family: var(--font-body); font-size: 14px; outline: none; transition: border-color 0.2s; }
.modal input:focus, .modal textarea:focus { border-color: var(--apex-border-focus); }
.modal input.error, .modal textarea.error { border-color: var(--apex-danger); }
.modal textarea { min-height: 88px; height: auto; resize: vertical; }
.field-err { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--apex-danger); margin-top: 5px; display: block; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px; }
.modal-close { background: transparent; color: var(--apex-text-secondary); border: none; font-family: var(--font-body); font-size: 13px; transition: color 0.2s; padding: 0; }
.modal-close:hover { color: var(--apex-text-primary); }
.field-group { margin-bottom: 12px; }

/* ====================== MODAL — EXTRA STATES ====================== */
.modal-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0 8px; }
.modal-success-icon { animation: pop 0.4s var(--easing-enter) both; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.modal-send-err { background: rgba(245,66,66,0.08); border: 1px solid rgba(245,66,66,0.25); border-radius: var(--radius-md); padding: 10px 14px; font-family: var(--font-body); font-size: 13px; color: var(--apex-danger); line-height: 1.6; margin-bottom: 16px; }
.modal-send-err a { color: var(--apex-lime); text-decoration: underline; }

.modal-submit { min-width: 148px; display: flex; align-items: center; justify-content: center; }
.modal-submit:disabled { opacity: 0.7; cursor: not-allowed; background: var(--apex-lime); }

/* loading spinner inside the submit button */
.btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(8,8,8,0.25); border-top-color: #080808; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ====================== TOAST ====================== */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--apex-lime); color: var(--apex-text-inverse); font-family: var(--font-body); font-weight: 700; font-size: 13px; padding: 12px 20px; border-radius: var(--radius-sm); opacity: 0; transition: opacity 0.35s, transform 0.35s; z-index: 200; white-space: nowrap; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ====================== SCROLL TO TOP ====================== */
.scroll-top { position: fixed; bottom: 32px; right: 32px; z-index: 90; width: 44px; height: 44px; background: var(--apex-surface-2); border: 1px solid var(--apex-border-default); border-radius: var(--radius-sm); color: var(--apex-text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s, background 0.2s, border-color 0.2s, color 0.2s; }
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--apex-surface-3); border-color: var(--apex-border-hover); color: var(--apex-text-primary); }
.scroll-top:active { background: var(--apex-surface-3); }
