:root {
  --ink: #070b14;
  --ink-2: #0c1220;
  --panel: #111827;
  --line: rgba(148, 163, 184, 0.14);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #f8fafc;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --warm: #f59e0b;
  --glow: rgba(45, 212, 191, 0.18);
  --font: "Sora", system-ui, sans-serif;
  --display: "Instrument Sans", "Sora", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(45, 212, 191, 0.35);
  color: #fff;
}

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

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

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(800px 480px at 88% 8%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(700px 500px at 50% 100%, rgba(245, 158, 11, 0.06), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0a1020 50%, #070b14 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes drawLine {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.nav-shell {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 60;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav-shell.is-scrolled {
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #042f2e;
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 16px 48px rgba(45, 212, 191, 0.35);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--line);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.05;
}

.gradient-text {
  background: linear-gradient(120deg, #5eead4 0%, #38bdf8 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(12, 18, 32, 0.92));
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), transparent 40%);
  pointer-events: none;
}

.panel-hover {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.panel-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.45);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  padding: 1rem 0;
  animation: marquee 28s linear infinite;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marquee-track span {
  white-space: nowrap;
}

.product-visual {
  animation: floatY 6s ease-in-out infinite;
}

.api-line {
  opacity: 0;
  transform: translateX(12px);
}

.api-line.is-visible {
  animation: apiIn 0.55s ease forwards;
}

@keyframes apiIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.1rem 1.25rem;
  border-radius: 1.15rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  display: none;
}

.cookie-banner.is-open {
  display: block;
  animation: cookieIn 0.45s ease;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(7, 11, 20, 0.72);
  color: #f8fafc;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  text-align: left;
}

.form-status.is-success {
  display: block;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #5eead4;
}

.form-status.is-error {
  display: block;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-bg::after,
  .eyebrow-dot,
  .product-visual,
  .marquee-track,
  .hero-orb {
    animation: none !important;
  }
}
