:root {
  --ink: #33334d;
  --ink-soft: #5b5b75;
  --bg: #ffffff;
  --bg-alt: #f5f4ff;
  --card: #ffffff;
  --line: #e6e4f5;
  --purple: #6b4fff;
  --blue: #5b8cf5;
  --teal: #3ef0c8;
  --grad: linear-gradient(120deg, var(--teal), var(--blue) 45%, var(--purple));
  --shadow: 0 10px 30px -12px rgba(51, 51, 77, .18);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eeeefa; --ink-soft: #b4b3cc; --bg: #12121c; --bg-alt: #1a1a28;
    --card: #1f1f30; --line: #2d2d44; --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eeeefa; --ink-soft: #b4b3cc; --bg: #12121c; --bg-alt: #1a1a28;
  --card: #1f1f30; --line: #2d2d44; --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--purple); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .8rem/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--purple); margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 0;
  background: var(--grad); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(107, 79, 255, .6);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(107, 79, 255, .7); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-ghost { background: rgba(20, 16, 50, .35); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-light { background: #fff; color: #33334d; box-shadow: 0 8px 24px -8px rgba(0,0,0,.35); }
.link { color: var(--purple); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { height: 34px; width: auto; }
.logo-dark { display: none; align-items: center; gap: 8px; font: 800 1.35rem/1 Archivo, sans-serif; color: var(--ink); }
.logo-dark img { width: 32px; height: 32px; }
.logo-dark i { font-style: italic; }
:root[data-theme="dark"] .logo { display: none; }
:root[data-theme="dark"] .logo-dark { display: flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: flex; }
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-sun circle { fill: currentColor; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; background: #231c5c url(/assets/hero-poster.jpg) center / cover; }
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-video { object-fit: cover; }
.hero-shade { z-index: -1; background: linear-gradient(100deg, rgba(24, 20, 60, .88) 0%, rgba(40, 30, 110, .62) 45%, rgba(40, 30, 110, .15) 100%); }
.hero-content { padding: 110px 0 150px; max-width: 760px; margin-left: max(16px, (100% - 1160px) / 2); }
.hero .eyebrow { color: var(--teal); }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); opacity: .92; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; }
.wave-back { opacity: .9; }
.wave-front { fill: var(--bg); transition: fill .25s; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.1rem; }

.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.about p { color: var(--ink-soft); font-size: 1.1rem; }
.about-mark { margin: 0; justify-self: center; width: min(320px, 70%); filter: drop-shadow(0 30px 40px rgba(107, 79, 255, .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--purple) 45%, var(--line)); }
.card p { color: var(--ink-soft); flex: 1; }
.card-num { font: 800 .85rem/1 Archivo, sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; letter-spacing: .08em; }
.card-cta { background: var(--grad); color: #fff; border: 0; }
.card-cta p { color: rgba(255,255,255,.9); }
.card-cta .btn { background: #fff; color: #33334d; align-self: flex-start; box-shadow: none; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cases-2 { grid-template-columns: repeat(2, 1fr); }
.case { border-radius: var(--radius); padding: 30px; background: var(--bg-alt); border: 1px solid var(--line); position: relative; overflow: hidden; }
.case::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.case-client { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--purple); margin-bottom: .5rem; }
.case > p:not(.case-client) { color: var(--ink-soft); }
.case-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-points li { font-size: .85rem; font-weight: 500; padding: .35em .8em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }

.cta { background: radial-gradient(120% 140% at 0% 0%, #3ef0c8 0%, #5b8cf5 35%, #6b4fff 70%, #3b2bb0 100%); color: #fff; text-align: center; }
.cta-inner { max-width: 780px; }
.cta p { font-size: 1.15rem; opacity: .95; }
.cta .hero-ctas { justify-content: center; margin: 2rem 0 1.5rem; }
.cta-contact a { color: #fff; }

.footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
.footer-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-icon { width: 30px; height: 30px; }
.footer nav { margin-left: auto; display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .cards, .cases { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-mark { width: 200px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .cards, .cases, .cases-2 { grid-template-columns: 1fr; }
  .hero-content { padding: 90px 0 130px; }
  .hero-ctas .btn { width: 100%; }
  .footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
