:root {
  color-scheme: dark;
  --bg: #020706;
  --bg-elevated: rgba(7, 22, 19, 0.82);
  --bg-soft: rgba(13, 36, 31, 0.72);
  --text: #edfdf7;
  --muted: #a4bbb2;
  --faint: rgba(237, 253, 247, 0.1);
  --line: rgba(115, 255, 203, 0.18);
  --emerald: #10b981;
  --emerald-2: #34d399;
  --emerald-3: #047857;
  --cyan: #22d3ee;
  --gold: #f8c35a;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --radius-lg: 18px;
  --max: 1180px;
}

:root.light {
  color-scheme: light;
  --bg: #f6fbf8;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-soft: rgba(230, 249, 241, 0.8);
  --text: #08221b;
  --muted: #456258;
  --faint: rgba(4, 120, 87, 0.11);
  --line: rgba(4, 120, 87, 0.18);
  --shadow: 0 24px 80px rgba(12, 85, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(34, 211, 238, 0.12), transparent 25rem),
    radial-gradient(circle at 60% 70%, rgba(248, 195, 90, 0.08), transparent 22rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

#particle-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 88%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 74px;
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elevated) 86%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(52, 211, 153, 0.6);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.96), rgba(6, 78, 59, 0.96)),
    #064e3b;
  color: #ecfdf5;
  font-weight: 800;
  box-shadow: 0 0 34px rgba(16, 185, 129, 0.35);
}

.brand strong {
  display: block;
  line-height: 1;
  font-size: 1rem;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--faint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--faint);
  color: var(--text);
}

.theme-toggle,
.nav-toggle {
  border: 0;
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}

.toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.24);
}

.toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--emerald-2);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.8);
  transition: transform 200ms ease;
}

:root.light .toggle-thumb {
  transform: translateX(20px);
}

.theme-label {
  min-width: 58px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 99px;
  background: currentColor;
}

.section-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 102px);
  padding: 78px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--emerald-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 650px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--emerald-2), var(--emerald-3));
  color: #ecfdf5;
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.28);
}

.btn.ghost {
  border-color: var(--line);
  background: var(--bg-soft);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin: 0;
}

.hero-metrics div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.hero-metrics dt {
  color: var(--emerald-2);
  font-size: 1.7rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 560px;
}

.orbital-system {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(52, 211, 153, 0.2), transparent 33%),
    radial-gradient(circle at 70% 22%, rgba(34, 211, 238, 0.16), transparent 25%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 70px rgba(16, 185, 129, 0.12),
    0 0 100px rgba(16, 185, 129, 0.16);
}

.core-node {
  position: absolute;
  inset: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  padding: 22px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(7, 22, 19, 0.94), rgba(4, 120, 87, 0.9)),
    var(--bg-elevated);
  color: #ecfdf5;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 58px rgba(52, 211, 153, 0.3);
}

.core-node span {
  color: var(--emerald-2);
  font-size: 0.8rem;
  font-weight: 800;
}

.core-node strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.orbit {
  position: absolute;
  inset: 50%;
  border: 1px dashed rgba(52, 211, 153, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 18s linear infinite;
}

.orbit-one {
  width: 52%;
  height: 52%;
}

.orbit-two {
  width: 76%;
  height: 76%;
  animation-duration: 28s;
  animation-direction: reverse;
}

.orbit-three {
  width: 96%;
  height: 96%;
  border-color: rgba(34, 211, 238, 0.22);
  animation-duration: 36s;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  animation: float 4.8s ease-in-out infinite;
}

.node-a {
  top: 8%;
  left: 42%;
}

.node-b {
  top: 31%;
  right: 4%;
  animation-delay: -1s;
}

.node-c {
  right: 18%;
  bottom: 9%;
  animation-delay: -2s;
}

.node-d {
  bottom: 16%;
  left: 12%;
  animation-delay: -3s;
}

.node-e {
  top: 30%;
  left: 1%;
  animation-delay: -4s;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.trust-strip span,
.stack-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 800;
}

.trust-strip span {
  padding: 11px 16px;
  font-size: 0.88rem;
}

.intro-section,
.services,
.solutions,
.process,
.work,
.stack-section,
.faq,
.contact {
  padding: 72px 0;
}

.section-heading {
  max-width: 810px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.02rem;
}

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

.spotlight,
.service-card,
.engagement-card,
.timeline-item,
.solution-board,
.faq details,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.spotlight {
  min-height: 252px;
  padding: 28px;
}

.spotlight-icon,
.service-icon,
.timeline-item span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.13);
  color: var(--emerald-2);
  font-weight: 800;
}

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

.service-card {
  min-height: 362px;
  padding: 24px;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.service-card:hover {
  border-color: rgba(52, 211, 153, 0.46);
  transform: translateY(-6px);
}

.service-card p {
  margin-bottom: 18px;
}

.service-card ul,
.solution-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.service-card li,
.solution-panel li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.service-card li::before,
.solution-panel li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-2);
  content: "";
}

.solution-board {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 360px;
  overflow: hidden;
}

.solution-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.tab {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
}

.tab.active,
.tab:hover {
  border-color: var(--line);
  background: var(--faint);
  color: var(--text);
}

.solution-panel {
  display: none;
  padding: 34px;
}

.solution-panel.active {
  display: block;
}

.solution-panel h3 {
  font-size: clamp(1.65rem, 3vw, 2.8rem);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  min-height: 260px;
  padding: 22px;
}

.engagement-card {
  min-height: 260px;
  padding: 28px;
}

.engagement-card.featured {
  border-color: rgba(52, 211, 153, 0.55);
  background:
    linear-gradient(145deg, rgba(16, 185, 129, 0.22), rgba(34, 211, 238, 0.08)),
    var(--bg-elevated);
}

.engagement-card h3 {
  font-size: 1.55rem;
}

.engagement-card span {
  display: inline-flex;
  margin-top: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--emerald-2);
  font-size: 0.82rem;
  font-weight: 800;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-cloud span {
  padding: 12px 16px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq details {
  padding: 0 20px;
}

.faq summary {
  min-height: 68px;
  padding: 22px 30px 22px 0;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.faq details p {
  padding-bottom: 22px;
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 34px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 118px;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-lines a,
.contact-lines span {
  display: inline-flex;
  width: fit-content;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

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

.contact-form span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

.contact-form input,
.contact-form select {
  min-height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.contact-form select option {
  color: #08221b;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--emerald-2);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  margin: 40px auto 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

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

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .site-nav {
    position: fixed;
    top: 98px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .theme-toggle {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .engagement-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: calc(100% - 20px);
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
  }

  .brand small,
  .theme-label {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    gap: 24px;
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

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

  .hero-metrics,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

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

  .orbital-system {
    width: min(100%, 350px);
  }

  .core-node {
    width: 136px;
    height: 136px;
  }

  .node {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    font-size: 0.76rem;
  }

  .solution-board {
    grid-template-columns: 1fr;
  }

  .solution-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tab {
    text-align: center;
  }

  .solution-panel {
    padding: 24px;
  }

  .intro-section,
  .services,
  .solutions,
  .process,
  .work,
  .stack-section,
  .faq,
  .contact {
    padding: 54px 0;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .theme-toggle {
    padding: 0 8px;
  }

  .toggle-track {
    width: 40px;
  }

  :root.light .toggle-thumb {
    transform: translateX(16px);
  }

  .hero-metrics div,
  .spotlight,
  .service-card,
  .engagement-card,
  .timeline-item,
  .contact-form {
    padding: 20px;
  }
}
