:root {
  --bg: #05090b;
  --bg-2: #0a1417;
  --surface: rgba(16, 34, 38, 0.72);
  --surface-solid: #102226;
  --line: rgba(126, 214, 196, 0.14);
  --line-strong: rgba(62, 224, 184, 0.38);
  --text: #eef8f4;
  --muted: #8eaaa4;
  --accent: #3ee0b8;
  --accent-deep: #1bb892;
  --accent-2: #d7b16a;
  --danger: #e07a6e;
  --ok: #7ee0b5;
  --ink: #06241d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --font: "Figtree", "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Figtree", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  isolation: isolate;
}

::selection {
  background: rgba(62, 224, 184, 0.28);
  color: var(--text);
}

img {
  max-width: 100%;
}

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(980px 520px at 88% -8%, rgba(62, 224, 184, 0.16), transparent 58%),
    radial-gradient(720px 480px at -8% 18%, rgba(215, 177, 106, 0.09), transparent 52%),
    radial-gradient(900px 700px at 50% 110%, rgba(62, 224, 184, 0.06), transparent 55%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.orb-a {
  width: 340px;
  height: 340px;
  right: 8%;
  top: 90px;
  background: radial-gradient(circle, rgba(62, 224, 184, 0.35), transparent 70%);
  animation: drift 18s ease-in-out infinite;
}

.orb-b {
  width: 280px;
  height: 280px;
  left: -40px;
  top: 38%;
  background: radial-gradient(circle, rgba(215, 177, 106, 0.22), transparent 70%);
  animation: drift 22s ease-in-out infinite reverse;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 214, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 214, 196, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 78%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(5, 9, 11, 0.62);
  border-bottom: 1px solid transparent;
}

.site-nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 224, 184, 0.55), rgba(215, 177, 106, 0.4), transparent);
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 9, 11, 0.82);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.18rem;
}

.brand svg {
  display: block;
  filter: drop-shadow(0 0 12px rgba(62, 224, 184, 0.35));
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(180deg, #62ecd0 0%, var(--accent) 48%, var(--accent-deep) 100%);
  color: var(--ink);
  box-shadow:
    0 10px 28px rgba(62, 224, 184, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.btn-primary:hover,
.nav-cta:hover {
  box-shadow: 0 14px 32px rgba(62, 224, 184, 0.32);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(62, 224, 184, 0.06);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  padding: 84px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin: 0 0 16px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.55rem, 5.2vw, 4.55rem);
  max-width: 14ch;
}

.accent-text {
  background: linear-gradient(115deg, #7af0d0 10%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 32px 0 22px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 224, 184, 0.12);
}

.hero-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(62, 224, 184, 0.1), transparent 42%),
    rgba(10, 22, 26, 0.78);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.hero-glow {
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 160px;
  background: radial-gradient(circle, rgba(62, 224, 184, 0.22), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.live {
  display: inline-flex;
  align-items: center;
}

.chip-mini {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 11, 0.45);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(62, 224, 184, 0.15);
  display: inline-block;
  margin-right: 8px;
  animation: pulse 1.8s ease-out infinite;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  background: rgba(5, 9, 11, 0.5);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 108px;
}

.stat b {
  display: block;
  font-size: 1.45rem;
  font-family: var(--display);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  color: var(--accent);
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-ai b {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-progress {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.bar {
  margin-top: 8px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-2));
  animation: load 2.4s ease-in-out infinite;
}

section {
  padding: 84px 0;
  scroll-margin-top: 88px;
}

.section-head {
  margin-bottom: 36px;
}

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

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
    rgba(13, 28, 32, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 224, 184, 0.45), transparent);
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
  background: rgba(62, 224, 184, 0.08);
  border: 1px solid rgba(62, 224, 184, 0.18);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-index,
.step-num {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.step-num {
  font-size: 1.7rem;
  letter-spacing: -0.06em;
  font-family: var(--display);
  color: rgba(62, 224, 184, 0.85);
}

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--muted);
  margin: 0;
}

.quote-section {
  padding-top: 24px;
}

.quote-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(22, 48, 54, 0.85), rgba(10, 22, 26, 0.92));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quote-form h2 {
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0 16px;
}

.service-chip {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 9, 11, 0.32);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.service-chip:hover {
  border-color: var(--line-strong);
}

.service-chip:has(input:checked) {
  border-color: var(--line-strong);
  background: rgba(62, 224, 184, 0.1);
  box-shadow: inset 0 0 0 1px rgba(62, 224, 184, 0.08);
}

.service-chip small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.service-chip:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(62, 224, 184, 0.12);
}

.service-chip input {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
}

.chip-check {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 9, 11, 0.5);
  position: relative;
}

.service-chip:has(input:checked) .chip-check {
  background: var(--accent);
  border-color: var(--accent);
}

.service-chip:has(input:checked) .chip-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: 2px solid var(--ink);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 11, 0.62);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(62, 224, 184, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn.is-loading::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.quote-output {
  background:
    linear-gradient(180deg, rgba(62, 224, 184, 0.04), transparent 18%),
    #071416;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.quote-output::before {
  content: "S";
  position: absolute;
  right: -8px;
  bottom: -28px;
  font-family: var(--display);
  font-size: 11rem;
  line-height: 1;
  color: rgba(62, 224, 184, 0.045);
  pointer-events: none;
}

.quote-output .label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 14px;
}

#aiOutputText {
  flex: 1;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-y: auto;
  max-height: 520px;
  font-family: var(--mono);
  position: relative;
}

#aiOutputText.is-placeholder {
  color: var(--muted);
  font-family: var(--font);
}

#aiStatus {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

#aiStatus[data-tone="ok"] {
  color: var(--ok);
}

#aiStatus[data-tone="warn"],
#aiStatus[data-tone="error"] {
  color: var(--accent-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: start;
}

.contact-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.contact-points li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 224, 184, 0.12);
}

.contact-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%),
    rgba(13, 28, 32, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feedback {
  margin-top: 12px;
  color: var(--ok);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 0 0 8px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 40px;
  font-size: 0.9rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 224, 184, 0.45);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(62, 224, 184, 0);
  }
}

@keyframes load {
  0% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(170%);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -24px);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .quote-shell,
  .steps,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    background: rgba(13, 28, 32, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(16px);
  }

  body.nav-open .nav-links a::after {
    display: none;
  }

  body.nav-open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: 268px;
    right: 32px;
  }

  .hero {
    padding-top: 40px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
