:root {
  color-scheme: light;
  --md-sys-color-primary: #2f4ca0;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-secondary: #79a857;
  --md-sys-color-tertiary: #38d8ff;
  --md-sys-color-surface: #fbfafe;
  --md-sys-color-surface-container: #f0f2fb;
  --md-sys-color-surface-container-high: #e8ecf7;
  --md-sys-color-on-surface: #111528;
  --md-sys-color-on-surface-variant: #5b6174;
  --md-sys-color-outline: #c8cedd;
  --retro-midnight: #100d2b;
  --retro-indigo: #21194a;
  --retro-cyan: #38d8ff;
  --retro-blue: #6da8ff;
  --retro-violet: #a77bff;
  --retro-silver: #b8c3da;
  --scriptlab-green: #79a857;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --elevation-1: 0 2px 8px rgba(17, 21, 40, 0.08);
  --elevation-2: 0 8px 24px rgba(17, 21, 40, 0.12);
  --elevation-3: 0 18px 48px rgba(17, 21, 40, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfafe 0%, #eef2fb 44%, #fbfafe 100%);
  color: var(--md-sys-color-on-surface);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  color: #ffffff;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-header.is-on-light {
  border-bottom: 1px solid rgba(17, 21, 40, 0.08);
  background: rgba(251, 250, 254, 0.9);
  box-shadow: var(--elevation-1);
  color: var(--md-sys-color-on-surface);
  backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(56, 216, 255, 0.32);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 245, 255, 0.86));
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(167, 123, 255, 0.14),
    0 14px 34px rgba(7, 26, 47, 0.28);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.brand::after {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(56, 216, 255, 0.65);
  border-bottom: 2px solid rgba(56, 216, 255, 0.65);
  content: "";
}

.site-header.is-on-light .brand {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.site-header.is-on-light .brand::after {
  opacity: 0;
}

.brand-logo {
  width: clamp(156px, 17vw, 210px);
  height: auto;
}

.edge-robot {
  position: fixed;
  right: 0;
  top: 22vh;
  isolation: isolate;
  z-index: 4;
  width: min(25vw, 300px);
  min-width: 238px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(56px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.edge-robot::before {
  position: absolute;
  inset: 10% -8% 8% 24%;
  z-index: -1;
  border-radius: 999px 0 0 999px;
  background:
    radial-gradient(circle at 70% 30%, rgba(56, 216, 255, 0.22), transparent 45%),
    radial-gradient(circle at 48% 50%, rgba(16, 13, 43, 0.2), transparent 66%);
  content: "";
  filter: blur(8px);
}

.edge-robot::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 19% 24.8%, rgba(56, 216, 255, 0.92) 0 2.2%, rgba(56, 216, 255, 0.46) 3.8%, transparent 7%),
    radial-gradient(circle at 42.6% 18.5%, rgba(56, 216, 255, 0.9) 0 2.4%, rgba(56, 216, 255, 0.44) 4%, transparent 7.2%);
  content: "";
  filter: blur(1px) drop-shadow(0 0 16px rgba(56, 216, 255, 0.72));
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.edge-robot.is-visible {
  opacity: 0.52;
  transform: translateX(0);
}

.edge-robot.is-visible::before {
  animation: robot-signal-glow 5.8s ease-in-out infinite;
}

.edge-robot.is-visible::after {
  animation: robot-eye-pulse 3.4s ease-in-out infinite;
}

.edge-robot img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 26px 40px rgba(16, 13, 43, 0.3))
    drop-shadow(0 0 22px rgba(56, 216, 255, 0.24));
}

.edge-robot.is-contact-active::after,
.edge-robot.is-sending::after {
  animation: robot-eye-pulse 1.35s ease-in-out infinite;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  font-size: 0.94rem;
  font-weight: 680;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.86;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-header.is-on-light .site-nav a {
  color: #26304a;
}

.site-nav a:hover {
  color: #b8df8f;
  opacity: 1;
}

.site-header.is-on-light .site-nav a:hover {
  color: var(--md-sys-color-primary);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  overflow: hidden;
  background: var(--retro-midnight);
  color: #ffffff;
}

.hero-image,
.hero-shade,
.hero-grid,
.hero-layout {
  grid-area: 1 / 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 94vh;
  object-fit: cover;
}

.hero-shade {
  background:
    radial-gradient(circle at 76% 28%, rgba(167, 123, 255, 0.34), transparent 28%),
    radial-gradient(circle at 58% 68%, rgba(56, 216, 255, 0.2), transparent 24%),
    linear-gradient(90deg, rgba(16, 13, 43, 0.95), rgba(16, 13, 43, 0.72) 52%, rgba(16, 13, 43, 0.28)),
    linear-gradient(0deg, rgba(16, 13, 43, 0.45), rgba(16, 13, 43, 0.1));
}

.hero-grid {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(56, 216, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 216, 255, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 50%, transparent 50%);
  background-size: 44px 44px, 44px 44px, 100% 4px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.9) 46%, transparent 100%);
}

.hero-grid {
  animation: hero-grid-drift 14s linear infinite;
}

.hero-layout {
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 136px 0 76px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 840px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid rgba(56, 216, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(56, 216, 255, 0.08);
  color: var(--md-sys-color-primary);
  padding: 5px 9px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-panel .eyebrow {
  color: #b8f0ff;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: 5rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.25rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 700px;
  color: rgba(247, 249, 255, 0.86);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 11px 22px;
  font-weight: 740;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--scriptlab-green);
  color: #111b12;
  box-shadow: 0 10px 24px rgba(121, 168, 87, 0.28);
}

.button.secondary {
  border-color: rgba(56, 216, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.section-inner {
  position: relative;
  z-index: 6;
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.band {
  background: var(--md-sys-color-surface);
}

.intro,
.why,
.use-cases,
.contact {
  padding: clamp(58px, 9vw, 108px) 0;
}

.intro-grid,
.why-layout,
.use-case-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.intro p:last-child,
.proof-points p,
.contact-copy > p {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1.08rem;
}

.services,
.service-detail,
.process {
  padding: clamp(58px, 9vw, 108px) 0;
}

.section-heading {
  max-width: 820px;
}

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

.service-card {
  position: relative;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid rgba(200, 206, 221, 0.9);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 242, 251, 0.94));
  padding: 26px;
  backdrop-filter: blur(12px);
  box-shadow: var(--elevation-1);
}

.service-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0 30%, rgba(56, 216, 255, 0.28) 44%, rgba(167, 123, 255, 0.12) 50%, transparent 62%),
    linear-gradient(180deg, transparent, rgba(121, 168, 87, 0.12));
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-120%);
}

.service-card::after {
  position: absolute;
  inset: auto 18px 16px auto;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(56, 216, 255, 0.42);
  border-bottom: 2px solid rgba(56, 216, 255, 0.42);
  content: "";
}

.service-card.featured {
  border-color: rgba(56, 216, 255, 0.45);
  box-shadow: var(--elevation-3);
}

.service-card:hover::before,
.services:hover .service-card::before,
.services.is-in-view .service-card::before {
  animation: service-scan 3.8s ease-in-out infinite;
}

.service-card:nth-child(2)::before {
  animation-delay: 120ms;
}

.service-card:nth-child(3)::before {
  animation-delay: 240ms;
}

.service-card:nth-child(4)::before {
  animation-delay: 360ms;
}

.service-card:nth-child(5)::before {
  animation-delay: 480ms;
}

.service-card:nth-child(6)::before {
  animation-delay: 600ms;
}

.service-card p,
.detail-grid p,
.process-steps p {
  margin-bottom: 0;
  color: var(--md-sys-color-on-surface-variant);
}

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(56, 216, 255, 0.38);
  border-radius: var(--radius-sm);
  background: #e8f4f7;
  color: var(--md-sys-color-primary);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 820;
}

.proof-points ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.proof-points li {
  position: relative;
  padding-left: 26px;
  color: #26304a;
  font-weight: 650;
}

.proof-points li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--scriptlab-green);
  content: "";
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 34px;
}

.detail-grid article,
.process-steps article {
  position: relative;
  border-top: 1px solid var(--md-sys-color-outline);
  padding-top: 20px;
}

.process-steps article::before {
  position: absolute;
  left: 0;
  top: -1px;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--retro-cyan), rgba(167, 123, 255, 0));
  content: "";
  opacity: 0.58;
  transform: scaleX(0.18);
  transform-origin: left;
}

.dark-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(167, 123, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--retro-midnight), var(--retro-indigo));
  color: #ffffff;
}

.dark-panel::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(56, 216, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 216, 255, 0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
}

.dark-panel > .section-inner {
  position: relative;
}

.dark-panel h2 {
  color: #ffffff;
}

.use-case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.use-case-list span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(56, 216, 255, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  color: #eef8ff;
  padding: 10px 14px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(167, 123, 255, 0.08);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.process-steps article::before {
  animation: process-signal 3.8s ease-in-out infinite;
}

.process-steps article:nth-child(2)::before {
  animation-delay: 180ms;
}

.process-steps article:nth-child(3)::before {
  animation-delay: 360ms;
}

.process-steps article:nth-child(4)::before {
  animation-delay: 540ms;
}

.process-steps article:nth-child(5)::before {
  animation-delay: 720ms;
}

.process-steps article:nth-child(6)::before {
  animation-delay: 900ms;
}

.process-steps span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--md-sys-color-primary);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 820;
}

.contact h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.contact-notes {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.contact-notes div {
  border-left: 4px solid var(--scriptlab-green);
  padding-left: 16px;
}

.contact-notes dt {
  margin-bottom: 4px;
  font-weight: 780;
}

.contact-notes dd {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(200, 206, 221, 0.92);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--elevation-3);
}

.contact-form::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(56, 216, 255, 0.14) 48%, transparent 62%),
    radial-gradient(circle at 88% 14%, rgba(167, 123, 255, 0.12), transparent 24%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-112%);
}

.contact-form.is-active {
  border-color: rgba(56, 216, 255, 0.56);
  box-shadow:
    var(--elevation-3),
    0 0 0 1px rgba(56, 216, 255, 0.16),
    0 0 32px rgba(56, 216, 255, 0.12);
}

.contact-form.is-active::before,
.contact-form.is-sending::before {
  animation: form-signal-scan 2.6s ease-in-out infinite;
}

.contact-form.is-sent {
  border-color: rgba(121, 168, 87, 0.62);
  animation: form-sent-pulse 1.1s ease-out;
}

.contact-form > * {
  position: relative;
  z-index: 1;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #26304a;
  font-size: 0.92rem;
  font-weight: 720;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--radius-sm);
  background: #fbfcff;
  color: var(--md-sys-color-on-surface);
  font: inherit;
  font-weight: 500;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--retro-cyan);
  outline: 3px solid rgba(56, 216, 255, 0.18);
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 540;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-submit {
  width: fit-content;
}

.form-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--md-sys-color-primary);
  font-weight: 720;
}

@keyframes robot-signal-glow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.04);
  }
}

@keyframes hero-grid-drift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 44px 44px, 44px 44px, 0 18px;
  }
}

@keyframes robot-eye-pulse {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.045);
  }
}

@keyframes service-scan {
  0%,
  62%,
  100% {
    opacity: 0;
    transform: translateX(-120%);
  }

  72% {
    opacity: 1;
  }

  88% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes process-signal {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(0.18);
  }

  48% {
    opacity: 0.88;
    transform: scaleX(1);
  }
}

@keyframes form-signal-scan {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-112%);
  }

  36% {
    opacity: 1;
  }

  70% {
    opacity: 0;
    transform: translateX(112%);
  }
}

@keyframes form-sent-pulse {
  0% {
    box-shadow:
      var(--elevation-3),
      0 0 0 0 rgba(121, 168, 87, 0.36);
  }

  100% {
    box-shadow:
      var(--elevation-3),
      0 0 0 16px rgba(121, 168, 87, 0);
  }
}

html.motion-reduced *,
html.motion-reduced *::before,
html.motion-reduced *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 1ms !important;
}

html.motion-reduced .edge-robot.is-visible::after {
  animation: none !important;
  opacity: 0.56;
  transform: none;
}

html.motion-reduced .edge-robot.is-contact-active::after,
html.motion-reduced .edge-robot.is-sending::after {
  opacity: 0.76;
}

.site-footer {
  background: var(--retro-midnight);
  color: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.footer-inner p {
  margin: 0;
  font-weight: 760;
}

.footer-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .edge-robot {
    width: 248px;
    min-width: 0;
    right: -28px;
    top: 28vh;
    opacity: 0;
  }

  .intro-grid,
  .why-layout,
  .use-case-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-image {
    min-height: 94vh;
  }

  .hero-shade {
    background:
      radial-gradient(circle at 70% 20%, rgba(167, 123, 255, 0.28), transparent 34%),
      linear-gradient(0deg, rgba(16, 13, 43, 0.94), rgba(16, 13, 43, 0.42));
  }

  .hero-grid {
    mask-image: linear-gradient(0deg, #000 0%, transparent 100%);
  }

  .hero-layout {
    width: min(100% - 32px, 640px);
    padding: 152px 0 42px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .edge-robot {
    display: none;
  }

  .service-grid,
  .detail-grid,
  .process-steps,
  .field-row {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .button,
  .form-submit {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
