:root {
  --bg-dark: #050508;
  --bg-panel: #0f0f16;
  --bg-panel-strong: #141421;
  --primary: #00f3ff;
  --primary-glow: rgba(0, 243, 255, 0.35);
  --primary-dim: rgba(0, 243, 255, 0.1);
  --accent: #5a00ff;
  --accent-glow: rgba(90, 0, 255, 0.35);
  --accent-dim: rgba(90, 0, 255, 0.1);
  --text-main: #f2f3f6;
  --text-muted: #9aa0b5;
  --text-subtle: #6f7486;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1240px;
  --header-height: 88px;
  --shadow-soft: 0 18px 60px rgba(3, 8, 20, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(90, 0, 255, 0.24), transparent 58%),
    radial-gradient(circle at 88% 72%, rgba(0, 243, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #050508 0%, #07070c 60%, #050508 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section.compact {
  padding: 64px 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 720px;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.03em;
}

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

.text-subtle {
  color: var(--text-subtle);
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 243, 255, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card strong {
  color: #fff;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-number {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-subtle);
  margin-bottom: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero .badge {
  margin-bottom: 24px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.result-green {
  color: #98f7d0;
  border-color: rgba(152, 247, 208, 0.4);
  background: rgba(42, 168, 120, 0.15);
}

.result-yellow {
  color: #ffe4a8;
  border-color: rgba(255, 228, 168, 0.4);
  background: rgba(171, 126, 24, 0.2);
}

.result-red {
  color: #ffb3b3;
  border-color: rgba(255, 179, 179, 0.4);
  background: rgba(171, 40, 40, 0.18);
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-score {
  display: grid;
  gap: 10px;
}

.result-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.result-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 243, 255, 0.3), rgba(0, 243, 255, 0.8));
  transition: width 0.4s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: #020205;
  border-color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border-color: rgba(0, 243, 255, 0.4);
  color: var(--primary);
  background: rgba(0, 243, 255, 0.05);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(0, 243, 255, 0.12);
}

.btn-mono {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.nav-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.3rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
  image-rendering: auto;
}

.logo-mark {
  width: 12px;
  height: 12px;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  transform: rotate(45deg);
}

.nav-list {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.nav-cta {
  border: 1px solid rgba(0, 243, 255, 0.4);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.nav-cta:hover {
  background: rgba(0, 243, 255, 0.12);
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-main);
  margin: 6px 0;
}

.hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.05;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
}

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

.hero-panel {
  background: rgba(15, 15, 22, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.hero-panel ul {
  display: grid;
  gap: 16px;
  color: var(--text-muted);
}

.hero-panel strong {
  color: #fff;
}

.page-header {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 48px;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
}

.subtle-link {
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel {
  background: rgba(15, 15, 22, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.panel.accent {
  border-color: rgba(90, 0, 255, 0.3);
  background: rgba(20, 10, 35, 0.6);
}

.stack {
  display: grid;
  gap: 20px;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.feature-item strong {
  color: #fff;
}

.number-list {
  display: grid;
  gap: 14px;
}

.number-item {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}

.number-item span {
  color: var(--primary);
  font-weight: 600;
}

.tech-list {
  display: grid;
  gap: 12px;
}

.tech-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.stats {
  display: grid;
  gap: 16px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.callout {
  border: 1px solid rgba(0, 243, 255, 0.3);
  background: rgba(0, 243, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
}

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

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

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.7);
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.1);
}

label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

#formStatus {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

#formStatus[data-variant='error'] {
  color: #ffb3b3;
}

#formStatus[data-variant='success'] {
  color: #9bf0d5;
}

#quickStatus,
#expressStatus {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

#quickStatus[data-variant='error'],
#expressStatus[data-variant='error'] {
  color: #ffb3b3;
}

#quickStatus[data-variant='success'],
#expressStatus[data-variant='success'] {
  color: #9bf0d5;
}

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

.checkbox-grid label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox-grid input {
  width: auto;
  margin-top: 4px;
}
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 4px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: #08080d;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 32px;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
}

.ambient-orb {
  position: fixed;
  inset: auto;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  animation: float 18s ease-in-out infinite;
}

.orb-primary {
  width: 50vw;
  height: 50vw;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.orb-secondary {
  width: 40vw;
  height: 40vw;
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 40px); }
}

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

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-list {
    position: fixed;
    top: var(--header-height);
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 8, 0.95);
    border-left: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    width: min(260px, 80vw);
    height: calc(100vh - var(--header-height));
  }

  body.nav-open .nav-list {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .page-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
