:root {
  --bg: #050508;
  --bg-elevated: #0e1018;
  --blue: #5c7cfa;
  --blue-glow: rgba(92, 124, 250, 0.35);
  --pink: #f06292;
  --pink-glow: rgba(240, 98, 146, 0.3);
  --charcoal: #2a2d35;
  --text: #e9ecf5;
  --text-muted: #9aa3b7;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --header-offset: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-offset) + env(safe-area-inset-top, 0px));
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.65) 70%, transparent 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  padding: calc(var(--header-offset) + env(safe-area-inset-top, 0px) + 2rem) 1.5rem 4rem;
  min-height: min(92dvh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: clip;
}

@media (max-width: 899px) {
  .hero {
    /* Stack from top so the block isn’t vertically centered in 92dvh (large gaps above/below) */
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
    padding: calc(var(--header-offset) + env(safe-area-inset-top, 0px) + 1rem) 1.25rem 2rem;
  }

  .site-header__inner {
    padding: 0.65rem 1rem;
  }

  .hero__intro {
    gap: 1.125rem;
  }

  .logo-stage {
    min-height: 0;
  }

  .hero__intro--leaving {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
  }

  .hero--mobile-complete {
    padding-top: calc(var(--header-offset) + env(safe-area-inset-top, 0px) + 0.75rem);
    padding-bottom: 2rem;
  }

  .hero--mobile-complete .hero__copy {
    margin-top: 0;
    animation: fade-up 0.55s ease both;
  }

  .hero--mobile-complete .eyebrow {
    margin-top: 0;
    animation: fade-up 0.45s ease both;
  }

  .hero__content {
    overflow: visible;
  }

  .hero__copy {
    width: 100%;
    max-width: 100%;
    margin-top: 1.75rem;
  }

  .hero__copy h1 {
    font-size: clamp(1.45rem, 6.8vw, 2.15rem);
    line-height: 1.25;
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  .hero__copy .lede {
    max-width: none;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.65;
    overflow-wrap: break-word;
    margin-bottom: 1.2rem;
  }

  .eyebrow {
    letter-spacing: 0.1em;
    font-size: clamp(0.65rem, 2.9vw, 0.78rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .logo-stage.is-ready .logo-stage__walker {
    animation-duration: 1.25s;
  }

  .code-panel {
    overflow: visible;
  }

  .code-panel__body {
    min-height: 0;
    overflow: visible;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .strip__list li {
    width: 100%;
    box-sizing: border-box;
  }

  .strip {
    padding-top: 1rem;
    padding-bottom: 2.25rem;
  }

  .strip__list {
    gap: 0.75rem;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--blue-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 40%, var(--pink-glow), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 60%, rgba(92, 124, 250, 0.12), transparent 45%);
  pointer-events: none;
  contain: strict;
  transform: translateZ(0);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  overflow: visible;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 900px) {
  .hero__intro {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    text-align: left;
    gap: 2.5rem;
  }
}

.logo-stage {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: visible;
  contain: layout style;
}

.logo-stage__walker {
  width: min(340px, 84vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  transform: translate3d(-110vw, 0, 0) rotate(-6deg);
  backface-visibility: hidden;
}

/* Drop-shadows repaint every frame — apply only after the walk-in finishes */
.logo-stage.is-settled .logo-stage__walker {
  filter:
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 12px rgba(82, 113, 255, 0.3))
    drop-shadow(0 0 10px rgba(255, 102, 196, 0.18));
}

.logo-stage.is-ready .logo-stage__walker {
  will-change: transform, opacity;
  animation: logo-walk-in 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .logo-stage__walker {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .code-panel.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    animation: none;
  }

  .hero__copy:not([hidden]) {
    animation: none;
  }
}

@keyframes logo-walk-in {
  0% {
    opacity: 0;
    transform: translate3d(-110vw, 0, 0) rotate(-7deg);
  }
  22% {
    opacity: 1;
    transform: translate3d(-42vw, -4px, 0) rotate(4deg);
  }
  58% {
    transform: translate3d(-10vw, 0, 0) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

.logo-stage__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.code-panel {
  flex: 1 1 420px;
  max-width: 520px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  contain: layout style paint;
}

.code-panel.is-revealing {
  will-change: opacity, transform;
  animation: code-panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.code-panel.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes code-panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.code-panel__chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.code-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d4150;
}

.code-panel__dot:nth-child(1) {
  background: #ff5f57;
}
.code-panel__dot:nth-child(2) {
  background: #febc2e;
}
.code-panel__dot:nth-child(3) {
  background: #28c840;
}

.code-panel__title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.code-panel__body {
  margin: 0;
  padding: 1rem 1.1rem 1.25rem;
  min-height: 11.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #c8d0e8;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero__copy {
  margin-top: 3rem;
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  overflow: visible;
}

.hero__copy:not([hidden]) {
  animation: fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__copy[hidden] {
  display: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 0.75rem;
}

.hero__copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: min(52ch, 100%);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #4a5fd4 45%, #c94b8f 100%);
  box-shadow: 0 8px 28px rgba(92, 124, 250, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(92, 124, 250, 0.45);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
}

.strip {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14, 16, 24, 0.5), var(--bg));
  padding: 2.5rem 1.5rem 3.5rem;
}

.strip__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .strip__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .strip__list strong {
    margin-inline: 0;
  }

  .strip__desc {
    display: block;
    text-align: left;
  }
}

@media (max-width: 899px) {
  .strip__list li {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
  }

  .strip__list strong {
    margin-inline: 0;
    margin-bottom: 0;
  }

  .strip__desc {
    display: block;
    max-width: none;
    width: 100%;
    text-align: center;
    line-height: 1.55;
    overflow-wrap: break-word;
  }
}

.strip__list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.strip__list strong {
  /* Brand gradient (same blue → pink as header); keep stable on mobile WebKit when centered */
  display: inline-block;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  color: var(--blue);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .strip__list strong {
    background: linear-gradient(90deg, var(--blue) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.strip__desc {
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}

.site-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer__copy {
  margin: 0;
}

.site-footer__copy strong {
  font-weight: 700;
  color: var(--text);
}

.modal {
  width: min(520px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  max-height: inherit;
  overflow: auto;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  padding-right: 2.5rem;
}

.modal__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-form .field {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--pink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(92, 124, 250, 0.65);
  box-shadow: 0 0 0 3px rgba(92, 124, 250, 0.2);
}

.field__meta {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.field__error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #ff8a8a;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

.form-status.is-error {
  color: #e53935;
  font-weight: 500;
}

.form-status.is-success {
  font-weight: 600;
  color: var(--blue);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .form-status.is-success {
    color: transparent;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
