:root {
  --bg: #050711;
  --bg-soft: #090d1d;
  --panel: rgba(11, 16, 34, 0.76);
  --panel-strong: rgba(15, 22, 45, 0.92);
  --border: rgba(153, 174, 255, 0.16);
  --border-strong: rgba(153, 174, 255, 0.28);
  --text: #f7f8ff;
  --muted: #a8b0cf;
  --faint: #6f789f;
  --blue: #5d7cff;
  --cyan: #3fe6ff;
  --purple: #9b5cff;
  --green: #37e7a0;
  --gold: #f7b955;
  --danger: #ff6b9a;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 8%, rgba(82, 102, 255, 0.18), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(142, 81, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #050711 0%, #04060d 48%, #070a15 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 149, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 149, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.38;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.orb-one {
  left: -140px;
  top: 160px;
  background: var(--blue);
}

.orb-two {
  right: -160px;
  top: 70px;
  background: var(--purple);
  animation-delay: -3s;
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -24px, 0) scale(1.08); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 76px;
  background: rgba(5, 7, 17, 0.75);
  border-bottom: 1px solid rgba(153, 174, 255, 0.08);
  z-index: -1;
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-text {
  font-weight: 750;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px var(--blue);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 11px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 22px;
}

.section-narrow {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 36px;
  padding-top: 42px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a99cff;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 800;
}

.eyebrow {
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.hero h1 {
  margin: 24px 0 18px;
  max-width: 720px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .91;
  letter-spacing: -.075em;
}

.hero h1 span {
  background: linear-gradient(90deg, #7b8dff, #b16cff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(93,124,255,.28);
}

.button-secondary {
  background: rgba(255, 255, 255, .045);
}

.button-ghost {
  background: transparent;
}

.currently-building {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--faint);
  font-size: 14px;
}

.currently-building a {
  color: #aeb9ff;
}

.currently-building span {
  margin: 0 8px;
  color: #475074;
}

.mini-terminal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(255,255,255,.04);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.portrait-card {
  position: absolute;
  inset: 34px 60px 36px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(155,92,255,.32), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.portrait-placeholder {
  position: relative;
  width: min(68%, 360px);
  aspect-ratio: 1 / 1.2;
  border-radius: 38% 38% 26% 26%;
  display: grid;
  place-items: center;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -.08em;
  color: white;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.18), transparent 22%),
    linear-gradient(145deg, #121a37, #080b18);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 80px rgba(93,124,255,.16), 0 30px 80px rgba(0,0,0,.35);
}

.portrait-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  filter: blur(60px);
  opacity: .42;
}

.portrait-caption {
  position: absolute;
  left: 26px;
  bottom: 24px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(5,7,17,.68);
  backdrop-filter: blur(16px);
}

.portrait-caption strong {
  color: var(--text);
}

.floating-card {
  position: absolute;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(9, 13, 29, .82);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.card-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.workflow-card {
  top: 52px;
  right: 2px;
  width: 260px;
  padding: 18px;
}

.node-row {
  display: flex;
  align-items: center;
  margin-top: 16px;
}

.node {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

.node.blue { background: rgba(93,124,255,.18); color: #aeb9ff; }
.node.green { background: rgba(55,231,160,.14); color: #7dffd0; }
.node.purple { background: rgba(155,92,255,.18); color: #d2b8ff; }

.line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.workflow-card p,
.progress-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.progress-card {
  left: 0;
  top: 240px;
  width: 190px;
  padding: 18px;
}

.progress-card strong {
  display: block;
  margin-top: 10px;
  font-size: 44px;
  line-height: 1;
}

.bars {
  height: 52px;
  margin-top: 15px;
  display: flex;
  align-items: end;
  gap: 9px;
}

.bars span {
  flex: 1;
  border-radius: 99px 99px 3px 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: .88;
}

.code-card {
  right: 54px;
  bottom: 88px;
  width: min(330px, 80%);
  padding: 16px;
}

.code-card pre {
  margin: 0;
  overflow: auto;
}

.code-card code {
  color: #d8e1ff;
  font-size: 12px;
}

.identity-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.identity-strip article {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--border);
}

.identity-strip article:last-child {
  border-right: 0;
}

.icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(93,124,255,.14);
  color: #b8c3ff;
}

.identity-strip h3,
.capability-card h3,
.project-card h3,
.process-line h3,
.panel h2 {
  margin: 0;
}

.identity-strip p,
.capability-card p,
.project-card p,
.process-line p,
.panel p,
.section-heading p {
  color: var(--muted);
}

.identity-strip h3 {
  font-size: 15px;
}

.identity-strip p {
  margin: 6px 0 0;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.75fr 1.65fr;
  gap: 48px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 120px;
}

.section-heading h2 {
  margin: 12px 0 0;
  max-width: 680px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.055em;
}

.section-heading p {
  max-width: 560px;
  font-size: 16px;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.text-link {
  color: #acb7ff;
  white-space: nowrap;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.capability-card,
.project-card,
.panel,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: 0 20px 70px rgba(0,0,0,.18);
}

.capability-card {
  min-height: 270px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.capability-card::after,
.panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% 35%;
  height: 180px;
  background: radial-gradient(circle, rgba(93,124,255,.22), transparent 70%);
  pointer-events: none;
}

.capability-card:hover,
.project-card:hover,
.panel:hover {
  border-color: var(--border-strong);
}

.card-number {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #aeb9ff;
  font-size: 12px;
  font-weight: 800;
}

.capability-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 16px;
  background: rgba(93,124,255,.16);
  color: #bdc7ff;
  font-size: 24px;
}

.capability-icon.green { background: rgba(55,231,160,.12); color: #91ffd8; }
.capability-icon.purple { background: rgba(155,92,255,.18); color: #d5bdff; }
.capability-icon.gold { background: rgba(247,185,85,.14); color: #ffd38a; }

.capability-card a,
.project-card a {
  display: inline-flex;
  margin-top: 10px;
  color: #aeb9ff;
  font-weight: 650;
  font-size: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
}

.project-image {
  height: 178px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(93,124,255,.28), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.015));
  border-bottom: 1px solid var(--border);
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 18px;
}

.dashboard-preview span:nth-child(1) {
  grid-row: 1 / 4;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}
.dashboard-preview span:nth-child(2),
.dashboard-preview span:nth-child(3) {
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.content-preview {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 60% 20%, rgba(255,107,154,.24), transparent 30%),
    linear-gradient(145deg, rgba(93,124,255,.15), rgba(255,255,255,.02));
}

.play {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--border-strong);
}

.product-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
}
.product-preview span {
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.brand-preview {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(247,185,85,.24), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.brand-preview span {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
}

.project-content {
  padding: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}

.tags span {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.process-section {
  padding-top: 46px;
}

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.process-line::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 34px;
  border-top: 1px dashed rgba(153,174,255,.34);
}

.process-line article {
  position: relative;
  text-align: center;
  padding-top: 0;
}

.process-line span {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 0%, rgba(93,124,255,.28), transparent 55%),
    rgba(9,13,29,.94);
  color: #aeb9ff;
  font-weight: 800;
}

.process-line p {
  max-width: 130px;
  margin: 7px auto 0;
  font-size: 13px;
}

.three-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 34px;
}

.panel {
  position: relative;
  min-height: 390px;
  padding: 30px;
  overflow: hidden;
}

.panel h2 {
  margin-top: 12px;
  font-size: 30px;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.panel ul {
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.panel li {
  margin: 10px 0;
}

.panel li::before {
  content: "✦";
  color: var(--cyan);
  margin-right: 10px;
}

.service-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.service-list a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mini-stats {
  display: grid;
  gap: 10px;
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.mini-stats span::before {
  content: "•";
  color: var(--blue);
  margin-right: 10px;
}

.contact-section {
  padding-top: 42px;
}

.contact-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  padding: 34px;
  background:
    radial-gradient(circle at 80% 0%, rgba(93,124,255,.17), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.contact-card h2 {
  margin: 14px 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.06em;
}

.contact-card p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(5,7,17,.7);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(93,124,255,.12);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 12px;
  color: var(--faint) !important;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 22px 44px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 3px 0 0;
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (max-width: 1040px) {
  .hero,
  .split-section,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .portrait-card {
    inset: 20px;
  }

  .identity-strip,
  .project-grid,
  .three-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .identity-strip article:nth-child(2) {
    border-right: 0;
  }

  .identity-strip article:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .process-line {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-line::before {
    display: none;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-inline: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    background: rgba(9,13,29,.96);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
    border-radius: 12px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 6px;
  }

  .section {
    padding: 58px 16px;
  }

  .section-narrow {
    padding-inline: 16px;
  }

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

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .currently-building {
    align-items: start;
  }

  .currently-building p {
    margin: 0;
  }

  .hero-visual {
    min-height: 500px;
  }

  .portrait-card {
    inset: 46px 0 40px;
  }

  .workflow-card {
    right: 0;
    top: 0;
    width: 220px;
  }

  .progress-card {
    left: 0;
    top: 260px;
    width: 168px;
  }

  .code-card {
    right: 0;
    bottom: 12px;
  }

  .portrait-caption {
    flex-direction: column;
  }

  .identity-strip,
  .capability-grid,
  .project-grid,
  .three-panel,
  .process-line {
    grid-template-columns: 1fr;
  }

  .identity-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .identity-strip article:last-child {
    border-bottom: 0;
  }

  .row-heading {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
