:root {
  --black: #000000;
  --ink: #101925;
  --soft-ink: #454e5f;
  --muted: #767e94;
  --line: #e7e7e9;
  --paper: #ffffff;
  --ice: #f3f7ff;
  --soft: #f5f5f6;
  --aqua: #1acff6;
  --yellow: #fbb761;
  --purple: #8300ea;
  --blue: #0133ea;
  --red: #ed2f2e;
  --radius: 8px;
  --container: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family:
    Inter, "Inter Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0;
}

body::selection {
  color: var(--black);
  background: var(--aqua);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  isolation: isolate;
  background: var(--paper);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(28px, 4vw, 52px);
  color: #fff;
  background: rgba(0, 0, 0, 0.96);
  transition: min-height 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  min-height: 74px;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 172px;
}

.brand img {
  width: 172px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  justify-content: end;
  gap: clamp(18px, 2.6vw, 34px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 600;
}

.nav a,
.header-phone,
.footer a {
  transition: color 180ms ease, opacity 180ms ease;
}

.nav a:hover,
.header-phone:hover,
.footer a:hover {
  color: var(--aqua);
}

.header-phone {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 132px 0 44px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 42%, rgba(131, 0, 234, 0.24), transparent 32rem),
    linear-gradient(90deg, #000 0%, #000 60%, #050006 100%);
}

.hero-canvas,
.hero-grid,
.hero-noise,
.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-canvas {
  z-index: 0;
  opacity: 0.34;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-grid {
  display: none;
}

.hero-noise {
  z-index: 1;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1.3px);
  background-size: 22px 22px;
  opacity: 0.08;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30vh;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 28%;
  right: -6%;
  width: min(42vw, 620px);
  aspect-ratio: 1;
  z-index: 1;
  border-radius: 42% 58% 62% 38% / 42% 46% 54% 58%;
  background:
    radial-gradient(circle at 58% 48%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72) 18%, transparent 34%),
    radial-gradient(circle at 38% 36%, #ffeafd 0 28%, transparent 52%),
    radial-gradient(circle at 68% 64%, #e7d4ff 0 22%, transparent 55%),
    linear-gradient(135deg, #ff8bf4, #8300ea);
  filter: blur(0.5px) drop-shadow(0 0 74px rgba(131, 0, 234, 0.58));
  animation: fire-blob 11s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-orbit {
  z-index: 1;
  inset: 24% 4vw auto auto;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 35%, rgba(251, 183, 97, 0.32), transparent 6px),
    radial-gradient(circle at 70% 68%, rgba(26, 207, 246, 0.3), transparent 5px),
    conic-gradient(from 90deg, transparent 0 18%, rgba(251, 183, 97, 0.34) 22%, transparent 27% 58%, rgba(131, 0, 234, 0.36) 62%, transparent 68%);
  opacity: 0.85;
  animation: orbit-spin 26s linear infinite;
}

.orbit-b {
  inset: 16% auto auto 4vw;
  width: min(28vw, 390px);
  opacity: 0.48;
  animation-duration: 34s;
  animation-direction: reverse;
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(660px, 1.2fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aqua);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 28px;
  font-size: clamp(56px, 7vw, 100px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--black);
  background: linear-gradient(135deg, var(--aqua), #d1fffa 42%, var(--yellow));
  box-shadow: 0 18px 45px rgba(26, 207, 246, 0.22);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.62);
}

.hero-console {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% 24%;
  height: 190px;
  background: radial-gradient(circle, rgba(131, 0, 234, 0.5), transparent 68%);
  pointer-events: none;
}

.console-top {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.console-top span:nth-child(2) {
  background: var(--yellow);
}

.console-top span:nth-child(3) {
  background: var(--aqua);
}

.console-top strong {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 600;
}

.console-body {
  position: relative;
  padding: 18px;
}

.signal-card {
  position: relative;
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.signal-card.active {
  border-color: rgba(251, 183, 97, 0.55);
  background: linear-gradient(135deg, rgba(251, 183, 97, 0.18), rgba(131, 0, 234, 0.18));
}

.signal-card span,
.code-line b,
.timeline span,
.role-card span,
.result-grid span {
  color: var(--aqua);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.25;
}

.code-line {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.hero-proof {
  position: relative;
  z-index: 4;
  width: var(--container);
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.hero-proof div {
  min-height: 112px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.hero-proof strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
  position: relative;
  color: var(--ink);
}

.intro {
  background: var(--paper);
}

.split,
.team-layout,
.cases-layout,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.section-title h2,
.team-copy h2,
.expertise-head h2,
.contact-copy h2 {
  max-width: 760px;
}

.intro-copy > p,
.team-copy p,
.contact-copy p {
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.7;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.result-grid article,
.domain-grid article,
.objection-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 25, 37, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.result-grid article:hover,
.domain-grid article:hover,
.objection-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(131, 0, 234, 0.28);
  box-shadow: 0 24px 72px rgba(16, 25, 37, 0.12);
}

.result-grid h3 {
  margin: 14px 0 10px;
}

.result-grid p,
.domain-grid li,
.objection-grid p,
.case-list span,
.timeline p,
.terms-grid span {
  color: var(--soft-ink);
  line-height: 1.55;
}

.dark-band {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(131, 0, 234, 0.28), transparent 28rem),
    radial-gradient(circle at 18% 70%, rgba(26, 207, 246, 0.16), transparent 24rem),
    #000;
}

.dark-band .team-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.team-stack {
  min-height: 520px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.team-stack::before {
  content: "";
  position: absolute;
  inset: 13% 8%;
  border: 1px solid rgba(251, 183, 97, 0.26);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131, 0, 234, 0.2), transparent 55%);
  animation: pulse-ring 3s ease-in-out infinite;
}

.role-card {
  min-height: 206px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(0, 0, 0, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

.role-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 24px;
}

.role-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.45;
}

.role-architect,
.role-qa {
  transform: translateY(46px);
}

.expertise {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  background: var(--ice);
}

.expertise-head {
  margin-bottom: 38px;
}

.domain-grid,
.objection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.domain-grid h3,
.objection-grid h3 {
  margin-bottom: 22px;
}

.domain-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.domain-grid li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.terms {
  background: #fff;
}

.terms-panel,
.contact-panel {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  border: 1px solid rgba(131, 0, 234, 0.16);
  background:
    radial-gradient(circle at 80% 0%, rgba(26, 207, 246, 0.22), transparent 24rem),
    radial-gradient(circle at 0% 100%, rgba(251, 183, 97, 0.22), transparent 28rem),
    #f6f7ff;
  box-shadow: 0 26px 80px rgba(16, 25, 37, 0.1);
}

.terms-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
}

.terms-panel h2 {
  font-size: clamp(24px, 2.8vw, 45px);
  line-height: 1.08;
}

@media (min-width: 981px) {
  .terms-panel h2 {
    font-size: clamp(22px, 2.25vw, 36px);
  }
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.terms-grid div {
  min-height: 178px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 25, 37, 0.08);
}

.terms-grid strong {
  display: block;
  margin-bottom: 16px;
  font-size: 26px;
  line-height: 1;
  color: var(--black);
}

.process {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 12% 16%, rgba(131, 0, 234, 0.23), transparent 26rem),
    #000;
}

.process .section-kicker {
  color: var(--yellow);
}

.timeline {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline article {
  min-height: 320px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.055);
  display: flex;
  flex-direction: column;
}

.timeline h3 {
  margin: 28px 0 12px;
}

.timeline p {
  color: rgba(255, 255, 255, 0.64);
}

.timeline strong {
  margin-top: auto;
  color: var(--yellow);
}

.cases {
  background: #fff;
}

.case-list {
  display: grid;
  gap: 10px;
}

.case-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.case-list b {
  color: var(--purple);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.objections {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  background: var(--soft);
}

.contact {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 80% 24%, rgba(131, 0, 234, 0.26), transparent 28rem),
    #000;
}

.contact-panel {
  align-items: stretch;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 84% 12%, rgba(131, 0, 234, 0.35), transparent 24rem),
    radial-gradient(circle at 0% 100%, rgba(26, 207, 246, 0.18), transparent 26rem),
    rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.contact-copy p {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.68);
}

.contact-copy h2 {
  font-size: clamp(24px, 2.8vw, 45px);
  line-height: 1.08;
}

.contact-links {
  margin-top: 28px;
}

.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.contact-links a:hover {
  border-color: rgba(251, 183, 97, 0.56);
}

.lead-form {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.lead-form label span {
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 700;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid #ced3de;
  border-radius: var(--radius);
  color: var(--ink);
  background: #f6f7ff;
  padding: 15px 16px;
  resize: vertical;
  transition: border-color 180ms ease, background 180ms ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--purple);
  background: #fff;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #838da5;
}

.lead-form .btn {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.form-note a {
  color: var(--black);
  border-bottom: 1px solid rgba(131, 0, 234, 0.45);
}

.footer {
  width: 100%;
  margin: 0;
  padding: 36px max(24px, calc((100vw - 1180px) / 2)) 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.6);
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer img {
  width: 146px;
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes fire-blob {
  0% {
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(0.98);
    border-radius: 42% 58% 62% 38% / 42% 46% 54% 58%;
  }
  100% {
    transform: translate3d(-2vw, 1.2vh, 0) rotate(5deg) scale(1.04);
    border-radius: 58% 42% 46% 54% / 54% 44% 56% 46%;
  }
}

@media (max-width: 980px) {
  :root {
    --container: min(100vw - 32px, 760px);
  }

  .site-header {
    min-height: 92px;
    grid-template-columns: 1fr auto;
    padding: 18px 16px;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding-top: 154px;
  }

  .hero::after {
    top: 16%;
    right: -46%;
    width: 92vw;
    opacity: 0.46;
  }

  .hero-inner,
  .split,
  .team-layout,
  .cases-layout,
  .contact-panel,
  .terms-panel {
    grid-template-columns: 1fr;
  }

  .hero-console {
    max-width: 600px;
  }

  .hero-proof,
  .domain-grid,
  .objection-grid,
  .timeline,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .team-stack {
    min-height: 0;
  }

  .role-architect,
  .role-qa {
    transform: none;
  }

  .timeline article {
    min-height: auto;
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer div {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100vw - 28px);
  }

  .brand,
  .brand img,
  .footer img {
    width: 136px;
    min-width: 136px;
  }

  .header-phone {
    font-size: 12px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 60px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .result-grid,
  .team-stack {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .result-grid article,
  .domain-grid article,
  .objection-grid article,
  .terms-grid div,
  .timeline article,
  .lead-form {
    padding: 20px;
  }

  .terms-panel,
  .contact-panel {
    padding: 22px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
