/* ============================================================
   Learning Axis — Global Stylesheet
   ============================================================ */

:root {
  --primary: #0e75bb;
  --primary-dark: #0a5a90;
  --accent: #2f9e8d;
  --accent-2: #5fb246;
  --ink: #0f2233;
  --ink-soft: #33475b;
  --muted: #5f7285;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;
  --bg-tint: #e8f3fb;
  --border: #dce7ef;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 34, 51, .08);
  --shadow-md: 0 8px 24px rgba(15, 34, 51, .10);
  --shadow-lg: 0 20px 50px rgba(14, 117, 187, .20);
  --grad: linear-gradient(135deg, #0b6db5 0%, #2e9e8f 55%, #63b34a 120%);
  --grad-soft: linear-gradient(135deg, #eaf4fb 0%, #eef7ef 60%, #f0f9ec 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 34, 51, .10); }

/* Scroll progress bar (injected by JS) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 200;
  pointer-events: none;
  transition: width .1s linear;
}

/* Scrolling trust-badge ticker above the header */
.topbar {
  background: linear-gradient(90deg, #0b2136, #0f2f47);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.topbar-track { overflow: hidden; padding-right: 38px; }
.topbar-scroll {
  display: inline-flex;
  gap: 44px;
  white-space: nowrap;
  padding: 9px 24px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  animation: tickerScroll 32s linear infinite;
}
.topbar:hover .topbar-scroll { animation-play-state: paused; }
.topbar-scroll span { opacity: .92; }
.topbar-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: #fff;
  font-size: .68rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.topbar-close:hover { background: rgba(255, 255, 255, .26); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  max-width: none;
  width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.brand .logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(14, 117, 187, .30);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.brand:hover .logo-mark { transform: scale(1.06) rotate(-3deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-tag {
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 640px) {
  .brand .logo-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.05rem; }
  .brand-tag { font-size: .5rem; letter-spacing: .18em; }
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(10px, 1.65vw, 24px);
}
.main-nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .9rem;
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).active::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 214, 102, .30), transparent 28%),
    radial-gradient(circle at 14% 18%, rgba(14, 117, 187, .16), transparent 31%),
    linear-gradient(135deg, #f8fbff 0%, #eef8f4 56%, #f7fff0 100%);
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: #a5b4fc; top: -140px; right: -100px; }
.hero::after { width: 360px; height: 360px; background: #67e8f9; bottom: -160px; left: -120px; }

/* Full-width container so hero content aligns with the sections below it.
   Text is constrained per-element (below) rather than shrinking the whole block. */
.hero-inner { position: relative; z-index: 1; }

.home-hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 86px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  align-items: center;
  gap: 54px;
}
.hero-copy { min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  max-width: 720px;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 28px;
}
.hero-proof div {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(220, 231, 239, .85);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.hero-proof strong { display: block; color: var(--ink); font-size: 1.35rem; line-height: 1; }
.hero-proof span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; margin-top: 5px; text-transform: uppercase; }

.hero-showcase {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 34, 51, .94), rgba(14, 117, 187, .88));
  color: #fff;
  box-shadow: 0 30px 70px rgba(14, 117, 187, .28);
  overflow: hidden;
}
.hero-showcase::before {
  content: "";
  position: absolute;
  inset: -80px -40px auto auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(99, 179, 74, .42);
  filter: blur(16px);
}
.showcase-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 12px;
  color: rgba(255, 255, 255, .82);
}
.showcase-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .36);
}
.showcase-top strong { margin-left: auto; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.studio-hero-card {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(10px);
}
.solution-label { display: block; color: rgba(255, 255, 255, .72); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.studio-hero-card strong {
  display: block;
  max-width: 430px;
  margin-top: 8px;
  font-size: clamp(1.25rem, 2.1vw, 1.58rem);
  line-height: 1.22;
  letter-spacing: -.02em;
}
.solution-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.solution-tile {
  min-height: 142px;
  padding: 16px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
}
.solution-tile.featured {
  background: rgba(255, 255, 255, .13);
  color: #fff;
  border-color: rgba(253, 224, 71, .48);
  box-shadow: inset 0 3px 0 #fde047;
}
.solution-tile span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fde047;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.solution-tile.featured span { background: rgba(253, 224, 71, .18); color: #fde047; }
.solution-tile strong { display: block; font-size: .98rem; line-height: 1.24; }
.solution-tile.featured strong { font-size: .98rem; }
.solution-tile p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  line-height: 1.42;
}
.solution-tile.featured p { color: rgba(255, 255, 255, .72); }
.reward-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.reward-row div {
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
}
.reward-row b, .reward-row small { display: block; }
.reward-row small { color: var(--muted); font-weight: 700; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary) !important; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #bfe0f5; }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--bg-tint);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats-band { background: var(--grad); color: #fff; padding: 60px 0; }
.stats-band .grid-4 { text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.stat-label { opacity: .85; font-size: .95rem; }

/* ---------- Launch roadmap ---------- */
.roadmap-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.roadmap-step {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 30px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.roadmap-step::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -38px;
  top: -38px;
  border-radius: 50%;
  background: rgba(14, 117, 187, .10);
}
.roadmap-step:hover {
  transform: translateY(-6px);
  border-color: #bfe0f5;
  box-shadow: var(--shadow-md);
}
.roadmap-step.featured {
  background: linear-gradient(145deg, #102033, #0e75bb);
  color: #fff;
  transform: translateY(-12px);
}
.roadmap-step.featured p, .roadmap-step.featured .step-level { color: rgba(255, 255, 255, .76); }
.step-level {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--primary);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.roadmap-step h3 { margin-top: 44px; font-size: 1.5rem; letter-spacing: -.02em; }
.roadmap-step p { color: var(--muted); margin-top: 10px; }
.progress-track {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 28px;
  height: 9px;
  border-radius: 999px;
  background: rgba(14, 117, 187, .12);
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}
.roadmap-step.featured .progress-track { background: rgba(255, 255, 255, .16); }
.roadmap-step.featured .progress-track span { background: #fde047; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.team-card .role { color: var(--primary); font-weight: 600; font-size: .88rem; margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad);
  border-radius: 22px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.cta-band p { opacity: .9; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: #fff; color: var(--primary) !important; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
}
.contact-card .icon { margin: 0 auto 22px; width: 64px; height: 64px; border-radius: 18px; }
.email-big {
  display: inline-block;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-tint);
  padding: 14px 30px;
  border-radius: 999px;
  margin: 18px 0 8px;
  word-break: break-all;
}
.email-big:hover { background: #d5ebf9; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--grad-soft); padding: 64px 0 48px; }
.legal-hero .container { max-width: 820px; }
.legal-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.legal-hero .updated { color: var(--muted); margin-top: 10px; font-size: .95rem; }

.legal-body { max-width: 820px; margin: 0 auto; padding: 56px 24px 88px; }
.legal-body h2 { font-size: 1.35rem; font-weight: 700; margin: 40px 0 14px; letter-spacing: -.01em; }
.legal-body h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; }
.legal-body p { color: var(--ink-soft); margin-bottom: 14px; }
.legal-body ul, .legal-body ol { color: var(--ink-soft); margin: 0 0 16px 24px; }
.legal-body li { margin-bottom: 8px; }
.legal-body .note {
  background: var(--bg-tint);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
}

/* ---------- Careers ---------- */
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.job-card h3 { margin-bottom: 4px; }
.job-meta { color: var(--muted); font-size: .9rem; }
.tag {
  display: inline-block;
  background: var(--bg-tint);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-right: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 0;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer a { color: #cbd5e1; display: block; margin-bottom: 10px; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.footer-brand .logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; }
.footer-about { color: #94a3b8; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: .85rem;
}
.footer-bottom a { display: inline; margin: 0 0 0 16px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  z-index: 999;
  display: none;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { flex: 1 1 300px; font-size: .88rem; color: var(--ink-soft); margin: 0; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 20px; font-size: .88rem; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -28px) scale(1.08); }
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes navDrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Button shine sweep */
.btn-primary, .cta-band .btn {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .cta-band .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn-primary:hover::before, .cta-band .btn:hover::before { left: 130%; }

/* Card icon micro-animation */
.card .icon { transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .3s; }
.card:hover .icon { transform: scale(1.1) rotate(-5deg); background: var(--grad); color: #fff; }

/* ---------- Gamified landing extras ---------- */

/* Floating glass stat chips in hero (parallax via --px/--py set by JS).
   Confined to a fixed right-side rail so they can never overlap the headline. */
.hero-orbits {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 28px;
  width: 300px;
  pointer-events: none;
  z-index: 1;
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 30px rgba(14, 117, 187, .16);
  border-radius: 14px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: .86rem;
  color: var(--ink);
  white-space: nowrap;
  animation: chipFloat 6s ease-in-out infinite;
  will-change: transform;
}
.float-chip:nth-child(1) { top: 14%; right: 0; animation-delay: 0s; }
.float-chip:nth-child(2) { top: 38%; left: 0; animation-delay: 1.2s; animation-duration: 7s; }
.float-chip:nth-child(3) { top: 60%; right: 8%; animation-delay: .6s; animation-duration: 8s; }
.float-chip:nth-child(4) { top: 82%; left: 10%; animation-delay: 1.8s; animation-duration: 6.6s; }
@keyframes chipFloat {
  0%, 100% { transform: translate(var(--px, 0px), var(--py, 0px)); }
  50% { transform: translate(var(--px, 0px), calc(var(--py, 0px) - 16px)); }
}
@media (max-width: 1280px) { .hero-orbits { display: none; } }

/* Typewriter cursor */
.type-cursor {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 400;
  margin-left: 2px;
  animation: cursorBlink 1s steps(1) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

/* Pulsing glow on hero CTA */
.btn-glow { animation: pulseGlow 2.8s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(14, 117, 187, .28); }
  50% { box-shadow: 0 10px 38px rgba(47, 158, 141, .55); }
}

/* Bouncing scroll hint at hero bottom */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.2rem;
  z-index: 2;
  animation: hintBounce 2s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--accent); }
@keyframes hintBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Section heading underline grows when revealed */
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad);
  margin: 14px auto 0;
  transform: scaleX(0);
  transition: transform .6s .25s cubic-bezier(.22, 1, .36, 1);
}
.section-head.visible h2::after { transform: scaleX(1); }
.no-reveal-underline .section-head h2::after,
.section-head:not(.reveal) h2::after { transform: scaleX(1); }

/* Living gradient on stats band + CTA bands */
.stats-band, .cta-band {
  background-size: 180% 180%;
  animation: gradShift 9s ease-in-out infinite;
}

/* Back-to-top button with progress ring (injected by JS) */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }
.back-top .ring { position: absolute; inset: 3px; transform: rotate(-90deg); }
.back-top .ring circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}
.back-top .arrow { color: var(--primary); font-size: 1.15rem; font-weight: 700; line-height: 1; }
@media (max-width: 640px) { .back-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }

.hero::before { animation: floatBlob 9s ease-in-out infinite; }
.hero::after { animation: floatBlob 12s ease-in-out infinite reverse; }

.hero .badge { animation: fadeUp .7s cubic-bezier(.22, 1, .36, 1) both; }
.hero h1 { animation: fadeUp .7s cubic-bezier(.22, 1, .36, 1) .12s both; }
.hero p.lead { animation: fadeUp .7s cubic-bezier(.22, 1, .36, 1) .24s both; }
.hero .btn-row { animation: fadeUp .7s cubic-bezier(.22, 1, .36, 1) .36s both; }

.hero h1 .grad-text {
  background-size: 200% 200%;
  animation: gradShift 5s ease-in-out infinite;
}

/* Scroll-reveal (elements get .reveal via JS, .visible when scrolled into view) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Leadership (photo avatars) ---------- */
.avatar.avatar-photo {
  width: 128px;
  height: 128px;
  position: relative;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--primary), var(--shadow-md);
}
.avatar-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader-card h3 { font-size: 1.3rem; }
.leader-card .role {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: .82rem;
  margin-bottom: 14px;
}

/* ---------- Testimonials ---------- */
.testi-card .stars { color: #f5a623; letter-spacing: 3px; font-size: .95rem; margin-bottom: 12px; }
.testi-card blockquote { color: var(--ink-soft); font-size: .97rem; font-style: italic; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi-who .avatar { width: 44px; height: 44px; font-size: .95rem; margin: 0; flex-shrink: 0; }
.testi-who .t-name { font-weight: 700; font-size: .92rem; }
.testi-who .t-org { color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* ---------- Feature checklist (ERP spotlight) ---------- */
.check-list { list-style: none; margin: 20px 0 28px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 13px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.spotlight-panel {
  background: var(--grad);
  border-radius: 20px;
  padding: 40px 34px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.spotlight-panel h3 { font-size: 1.25rem; margin-bottom: 18px; }
.spotlight-panel .mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spotlight-panel .mini-card {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  padding: 16px 14px;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .home-hero { min-height: auto; }
  .hero-showcase { max-width: 620px; width: 100%; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-step, .roadmap-step.featured { transform: none; min-height: 230px; }
}

/* Tablet & below: collapse nav into hamburger menu.
   Breakpoint set at 1024px because 7 links + logo get cramped below that. */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-wrap { padding-left: 24px; padding-right: 24px; }
  .main-nav {
    flex: initial;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; animation: navDrop .35s cubic-bezier(.22, 1, .36, 1) both; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--bg-soft); font-size: 1rem; }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .main-nav a.nav-cta { text-align: center; justify-content: center; margin-top: 14px; border-bottom: 0; padding: 12px 22px; }
}

/* Phones */
@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .grid { gap: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-band .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-wrap { height: 64px; }
  .nav-wrap { padding-left: 18px; padding-right: 18px; }
  .main-nav { top: 64px; max-height: calc(100vh - 64px); }
  .brand { font-size: 1.1rem; }

  .hero { padding: 56px 0 64px; }
  .home-hero { padding-top: 34px; padding-bottom: 56px; }
  .hero p.lead { font-size: 1.05rem; }
  .hero-proof { grid-template-columns: 1fr; margin-top: 20px; }
  .hero-showcase { padding: 14px; border-radius: 20px; }
  .studio-hero-card { padding: 18px; }
  .studio-hero-card strong { font-size: 1.45rem; }
  .solution-mosaic { grid-template-columns: 1fr; }
  .solution-tile, .solution-tile.featured { min-height: auto; }
  .solution-tile.featured { grid-row: auto; }
  .reward-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  .card { padding: 26px 22px; }

  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { justify-content: center; text-align: center; }
  .cta-band { padding: 40px 22px; border-radius: 18px; }
  .cta-band .btn { width: 100%; justify-content: center; word-break: break-all; }

  .stat-num { font-size: 1.9rem; }

  .contact-card { padding: 40px 22px; }
  .email-big { font-size: 1.05rem; padding: 12px 20px; }

  .legal-body { padding: 40px 18px 64px; }
  .legal-hero { padding: 48px 0 36px; }

  .job-card { flex-direction: column; align-items: flex-start; }
  .job-card .btn { width: 100%; justify-content: center; }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px 18px;
  }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom a { margin: 0 8px; }

  .spotlight-panel { padding: 28px 20px; }
  .roadmap-step { padding: 26px 22px; }
  .progress-track { left: 22px; right: 22px; }
  .avatar.avatar-photo { width: 108px; height: 108px; }
  .faq-item summary { padding: 15px 16px; }
  .faq-item .faq-a { padding: 0 16px 16px; }
}

/* Very small phones */
@media (max-width: 350px) {
  .hero h1 { font-size: 1.9rem; }
  .stats-band .grid-4 { grid-template-columns: 1fr; }
}
