/* =========================================================================
   SchoolHox — Premium SaaS landing stylesheet (v2)
   Refined indigo + violet palette, bento layout, glass + gradient surfaces
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --indigo-50:  #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;   /* primary */
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;

  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;

  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;   /* accent */
  --amber-600: #d97706;

  --emerald-500: #10b981;
  --emerald-600: #059669;
  --rose-500: #f43f5e;

  /* Surface (warm off-white system) */
  --bg:           #ffffff;
  --bg-soft:      #fafbff;
  --bg-canvas:    #f5f6fb;
  --bg-muted:     #eef0f8;
  --bg-deep:      #0b1020;
  --surface:      #ffffff;
  --border:       #e5e7f0;
  --border-strong:#d1d5e0;

  /* Text */
  --ink:          #0b1020;
  --text:         #11172b;
  --text-muted:   #475069;
  --text-soft:    #6b7385;
  --text-on-dark: #cfd5e6;

  /* Effects */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(15, 16, 32, .05);
  --shadow-sm: 0 4px 12px rgba(15, 16, 32, .06), 0 2px 4px rgba(15, 16, 32, .04);
  --shadow:    0 12px 40px rgba(15, 16, 32, .08), 0 4px 12px rgba(15, 16, 32, .04);
  --shadow-lg: 0 30px 70px rgba(15, 16, 32, .15), 0 10px 22px rgba(15, 16, 32, .08);
  --shadow-brand: 0 20px 50px -10px rgba(99, 102, 241, .45);
  --shadow-amber: 0 14px 36px -10px rgba(245, 158, 11, .55);

  --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #8b5cf6 100%);
  --gradient-brand-soft: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
  --gradient-amber: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --gradient-mesh:
    radial-gradient(60% 50% at 50% 0%, rgba(99, 102, 241, .14) 0%, transparent 70%),
    radial-gradient(50% 40% at 100% 0%, rgba(139, 92, 246, .12) 0%, transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(245, 158, 11, .08) 0%, transparent 70%);
  --gradient-soft: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  --gradient-deep: linear-gradient(160deg, #0b1020 0%, #161a3a 50%, #2a1f5b 100%);

  /* Type */
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 2vw, 1.5rem);
  --section-py: clamp(4rem, 9vw, 7.5rem);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-1: 200ms;
  --dur-2: 360ms;
  --dur-3: 700ms;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo-600); text-decoration: none; transition: color var(--dur-1) var(--ease); }
a:hover { color: var(--indigo-700); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--indigo-300); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.025em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; }
p  { margin: 0 0 1em; color: var(--text-muted); }

::selection { background: var(--indigo-200); color: var(--indigo-900); }

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-py); position: relative; }
.section--canvas { background: var(--bg-canvas); }
.section--soft   { background: var(--gradient-soft); }
.section--mesh   { background: var(--bg); position: relative; }
.section--mesh::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none; z-index: 0;
}
.section--mesh > * { position: relative; z-index: 1; }
.section--dark {
  background: var(--gradient-deep);
  color: var(--text-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, .75); }

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(2.25rem, 4vw, 3.5rem);
}
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { font-size: 1.08rem; color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: linear-gradient(180deg, rgba(99,102,241,.06), rgba(99,102,241,.12));
  color: var(--indigo-700);
  border: 1px solid rgba(99,102,241,.18);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.section--dark .eyebrow {
  background: rgba(255,255,255,.06);
  color: #c7d2fe;
  border-color: rgba(255,255,255,.12);
}
.eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo-500);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(99,102,241,.18); }
  50%      { box-shadow: 0 0 0 8px rgba(99,102,241,.05); }
}

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* gradient text utility */
.grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.grad-amber {
  background: var(--gradient-amber);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--indigo-600);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease),
              box-shadow var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  position: relative;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { color: #fff; box-shadow: 0 22px 60px -10px rgba(99,102,241,.6); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--border-strong);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--bg-canvas); color: var(--ink); box-shadow: var(--shadow-xs); }
.section--dark .btn--ghost {
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.14); }

.btn--inverse {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}
.btn--inverse:hover { color: var(--ink); }

.btn--lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.btn--sm { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform var(--dur-2) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 5. Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              padding var(--dur-2) var(--ease),
              backdrop-filter var(--dur-2) var(--ease);
}
.nav.is-scrolled {
  padding: 8px 0;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 10px 30px rgba(15, 16, 32, .06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand img { height: 36px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__menu a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .94rem;
  padding: 9px 14px;
  border-radius: 10px;
  transition: color var(--dur-1), background var(--dur-1);
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--ink); background: var(--bg-canvas); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  align-items: center; justify-content: center;
  color: var(--ink);
}

@media (max-width: 1020px) {
  .nav__menu, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__menu {
    display: flex;
    position: absolute;
    inset: 100% 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__menu a { padding: 12px 14px; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1200px; height: 600px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(99,102,241,.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 56ch; color: var(--text-muted); }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .88rem;
  list-style: none;
  padding-left: 0;
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__meta svg { color: var(--emerald-500); }

.hero__visual {
  position: relative;
  margin-right: -3vw;
}
.hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 30px 60px rgba(99, 102, 241, .25));
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-right: 0; }
}

/* ---------- 7. Trust / logos cloud ---------- */
.trust {
  padding: 2.5rem 0 3rem;
  border-block: 1px solid var(--border);
  background: var(--bg);
}
.trust__label {
  text-align: center;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 18px 36px;
}
@media (max-width: 800px) { .trust__row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .trust__row { grid-template-columns: repeat(2, 1fr); } }
.trust__row span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  color: var(--text-soft);
  letter-spacing: -0.01em;
  text-align: center;
  opacity: .85;
  transition: opacity var(--dur-1), color var(--dur-1);
}
.trust__row span:hover { opacity: 1; color: var(--ink); }

/* ---------- 8. Bento KPI banner ---------- */
.kpi-band {
  background: var(--gradient-deep);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.kpi-band::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,.45) 0%, transparent 60%);
  pointer-events: none;
}
.kpi-band::after {
  content: "";
  position: absolute;
  bottom: -50%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.22) 0%, transparent 60%);
  pointer-events: none;
}
.kpi-band__head { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto 2rem; }
.kpi-band__head h2 { color: #fff; }
.kpi-band__head p  { color: rgba(255,255,255,.78); }
.kpi-grid { gap: 18px; position: relative; z-index: 1; }
.kpi {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: transform var(--dur-2) var(--ease), background var(--dur-2);
}
.kpi:hover { transform: translateY(-4px); background: rgba(255,255,255,.10); }
.kpi__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
}
.kpi__lbl { color: rgba(255,255,255,.78); margin: 10px 0 0; font-weight: 500; font-size: .95rem; }

/* ---------- 9. Feature cards ---------- */
.features { gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(99,102,241,.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-2);
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature:hover::before { opacity: 1; }

.feature__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--indigo-50) 0%, var(--indigo-100) 100%);
  color: var(--indigo-600);
  position: relative;
}
.feature__icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.4));
  pointer-events: none;
}
.feature h3 { margin-bottom: 6px; font-size: 1.08rem; }
.feature p  { font-size: .94rem; margin: 0; color: var(--text-muted); }

/* Tabs */
.tabs {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2.25rem;
}
.tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--dur-1) var(--ease);
}
.tab:hover { color: var(--ink); border-color: var(--border-strong); }
.tab.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- 10. Bento product showcase ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.bento__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento__card h3 { font-size: 1.25rem; }
.bento__card p { font-size: .94rem; }

.bento__card--wide   { grid-column: span 4; }
.bento__card--narrow { grid-column: span 2; }
.bento__card--half   { grid-column: span 3; }
.bento__card--full   { grid-column: span 6; }

.bento__card--feat {
  background: var(--gradient-deep);
  color: #fff;
  border: none;
}
.bento__card--feat h3, .bento__card--feat p { color: #fff; }
.bento__card--feat p { color: rgba(255,255,255,.78); }
.bento__card--feat::after {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,.45) 0%, transparent 60%);
  pointer-events: none;
}

.bento__visual { margin-top: 18px; border-radius: var(--radius); overflow: hidden; }
.bento__visual img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide, .bento__card--narrow, .bento__card--half, .bento__card--full {
    grid-column: span 2;
  }
}

/* ---------- 11. Showcase: product screenshot ---------- */
.showcase-frame {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform var(--dur-3) var(--ease);
}
.showcase-frame img { width: 100%; height: auto; display: block; }
.showcase-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 60%, rgba(99,102,241,.05) 100%);
  pointer-events: none;
}

/* ---------- 12. Mobile app section (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split__visual img {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(99, 102, 241, .25));
}
.feature-list {
  list-style: none;
  padding: 0; margin: 1.5rem 0 0;
  display: grid;
  gap: 16px;
}
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-list .check {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-list strong { color: var(--ink); display: block; margin-bottom: 2px; }
.feature-list p { margin: 0; font-size: .92rem; color: var(--text-muted); }

/* ---------- 13. Roles ---------- */
.roles { gap: 18px; }
.role {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.role__top {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
}
.role:nth-child(1) .role__top { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.role:nth-child(2) .role__top { background: linear-gradient(135deg, #10b981, #0d9488); }
.role:nth-child(3) .role__top { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.role:nth-child(4) .role__top { background: linear-gradient(135deg, #06b6d4, #6366f1); }
.role h3 { margin-bottom: 0; }
.role > p { margin: 0; }
.role ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.role li {
  font-size: .92rem;
  color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.role li svg { flex-shrink: 0; margin-top: 4px; color: var(--emerald-500); }

/* ---------- 14. Process timeline ---------- */
.process { gap: 18px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--gradient-brand);
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--shadow-brand);
}
.step h3 { margin-bottom: 6px; }

/* ---------- 15. Showcase / clients ---------- */
.showcase { gap: 18px; }
.client-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-canvas);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.client-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.client-card:hover img { transform: scale(1.05); }
.client-card__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(11,16,32,.92) 0%, rgba(11,16,32,0) 100%);
  color: #fff;
}
.client-card__info h3 { color: #fff; font-size: 1.05rem; margin-bottom: 2px; }
.client-card__info span { font-size: .84rem; color: rgba(255,255,255,.78); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 16. Testimonials ---------- */
.testimonials { gap: 18px; }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial::before {
  content: '"';
  position: absolute;
  top: -8px; left: 22px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--indigo-200);
  font-weight: 800;
}

.testimonial p { color: var(--text); margin: 0; position: relative; z-index: 1; line-height: 1.7; }
.testimonial__author {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.testimonial__author strong { display: block; color: var(--ink); }
.testimonial__author span { color: var(--text-soft); font-size: .85rem; }
.testimonial__rating { display: inline-flex; gap: 2px; color: var(--amber-500); }

/* ---------- 17. Pricing ---------- */
.pricing { gap: 18px; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured {
  background: var(--gradient-deep);
  color: #fff; border: none;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(1.02);
}
.plan--featured::after {
  content: "";
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,.3) 0%, transparent 50%);
  pointer-events: none;
}
.plan--featured > * { position: relative; z-index: 1; }
.plan--featured h3, .plan--featured .plan__price strong { color: #fff; }
.plan--featured p, .plan--featured li { color: rgba(255,255,255,.82); }
.plan__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-amber);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-amber);
  z-index: 2;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 0; }
.plan__tagline { margin: 0; font-size: .9rem; color: var(--text-muted); }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan__price span { color: var(--text-soft); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem;
  color: var(--text-muted);
}
.plan li svg { color: var(--emerald-500); flex-shrink: 0; margin-top: 4px; }
.plan--featured li svg { color: #6ee7b7; }
.plan .btn { margin-top: 8px; }

/* ---------- 18. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur-2), border-color var(--dur-2);
}
.faq__item[open] { box-shadow: var(--shadow); border-color: var(--indigo-200); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E");
  background-size: contain;
  transition: transform var(--dur-2);
}
.faq__item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.faq__item p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-muted);
}

/* ---------- 19. CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--gradient-deep);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.4) 0%, transparent 60%);
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 60%);
}
.cta-banner__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}
.cta-banner h2 { color: #fff; margin-bottom: .35em; }
.cta-banner p { color: rgba(255,255,255,.82); margin: 0; font-size: 1.05rem; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 800px) {
  .cta-banner__inner { grid-template-columns: 1fr; }
  .cta-banner__actions { justify-content: flex-start; }
}

/* ---------- 20. Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact__info {
  background: var(--gradient-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
  overflow: hidden;
}
.contact__info::after {
  content: "";
  position: absolute;
  bottom: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.4) 0%, transparent 60%);
  pointer-events: none;
}
.contact__info h3, .contact__info p { color: #fff; position: relative; z-index: 1; }
.contact__info p { color: rgba(255,255,255,.82); margin: 0; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.contact__list li { display: flex; align-items: flex-start; gap: 14px; color: rgba(255,255,255,.95); font-size: .95rem; line-height: 1.55; }
.contact__list li small { color: rgba(255,255,255,.6); font-size: .82rem; }
.contact__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--indigo-300);
}

.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .field--row { grid-template-columns: 1fr; } }
.field__error { color: var(--rose-500); font-size: .8rem; min-height: 1em; }

.form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  display: none;
}
.form-status.is-success { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status.is-error   { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 21. Footer ---------- */
.footer {
  background: #060916;
  color: #cbd5e1;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 400px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(99,102,241,.12) 0%, transparent 70%);
  pointer-events: none;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #94a3b8; font-size: .92rem; }
.footer a:hover { color: #fff; }

.footer__brand { color: #fff; }
.footer__brand p { color: #94a3b8; max-width: 34ch; font-size: .92rem; margin-top: 1rem; }
.footer__brand img { filter: brightness(0) invert(1); height: 32px; width: auto; opacity: .95; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 1.75rem;
  font-size: .85rem;
  color: #64748b;
  position: relative;
}
.socials { display: inline-flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.socials a {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  color: #cbd5e1;
  transition: all var(--dur-1);
}
.socials a:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- 22. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__visual img { animation: none; }
}

/* ---------- 23. Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.flex { display: flex; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; }
