﻿:root {
  --bg: #060a12;
  --surface: #0d1422;
  --surface-2: #0b1220;
  --border: #162338;
  --text: #eaf2ff;
  --muted: #9bb0d0;
  --accent: #2ea8ff;
  --accent-2: #0b5cff;
  --success: #31d0aa;
  --shadow: rgba(4, 9, 18, 0.6);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #2ea8ff #060a12;
  scrollbar-width: thin;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(46, 168, 255, 0.16), transparent 60%),
    radial-gradient(1000px 500px at 90% 10%, rgba(11, 92, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(10, 15, 25, 0.9), rgba(6, 10, 18, 1));
  min-height: 100vh;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

a:hover { color: #ffffff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #060a12; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#0b5cff, #2ea8ff);
  border-radius: 10px;
  border: 2px solid #060a12;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#2ea8ff, #0b5cff);
}

.container {
  width: min(var(--maxw), 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #06111f;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(11, 18, 32, 0.8);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -30px var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1324;
  display: grid;
  place-items: center;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 16px;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.nav-toggle:hover { border-color: rgba(46, 168, 255, 0.6); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #05101f;
  box-shadow: 0 12px 30px -20px rgba(46, 168, 255, 0.8);
}

.btn.primary:hover { opacity: 0.95; transform: translateY(-1px); }

.btn.ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn.ghost:hover { border-color: rgba(46, 168, 255, 0.6); }

.nav-cta.btn {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.section {
  padding: 72px 0;
}

.section-tight { padding: 48px 0; }

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  padding: 64px 0 40px;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw + 1.2rem, 3.4rem);
  line-height: 1.12;
  margin: 18px 0 0;
}

.hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card {
  background: rgba(10, 16, 28, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 40px -32px var(--shadow);
}

.card-title { 
  font-weight: 600; 
  color: white;
}

.card-muted { color: var(--muted); font-size: 14px; }

.stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
}

.surface {
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.section-title {
  font-size: clamp(1.6rem, 1vw + 1.4rem, 2.2rem);
  margin: 0;
}

.section-desc {
  color: var(--muted);
  margin-top: 8px;
}

.process-step {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.process-step span {
  color: var(--muted);
  font-size: 12px;
}

.cases-grid {
  display: grid;
  gap: 22px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 340px));
  justify-content: start;
  align-items: stretch;
}

.case-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 22px 20px;
  min-height: 248px;
  height: 100%;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(46, 168, 255, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(15, 24, 39, 0.98), rgba(7, 12, 21, 0.94));
  border: 1px solid rgba(46, 168, 255, 0.16);
  box-shadow: 0 28px 60px -40px rgba(0, 0, 0, 0.85);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.case-card::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -50%;
  width: min(280px, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 92, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.case-card > * {
  position: relative;
  z-index: 1;
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 168, 255, 0.38);
  box-shadow: 0 34px 70px -42px rgba(0, 0, 0, 0.9);
}

.case-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.case-card__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.case-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 168, 255, 0.2);
  background: rgba(46, 168, 255, 0.14);
  color: #d7efff;
  font-size: 0.78rem;
  white-space: nowrap;
}

.case-card__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: none;
}

.case-card__desc {
  margin: 0;
  max-width: 24ch;
  color: var(--text);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.case-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.case-card__button {
  width: fit-content;
  min-width: 0;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.1;
}

.case-card__output {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}

.link-accent { color: var(--accent); }

.form-grid {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.input,
.select,
.textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(22, 35, 56, 0.9);
  background: rgba(6, 10, 18, 0.65);
  color: var(--text);
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.textarea { resize: none; }

.input:focus,
.select:focus,
.textarea:focus { border-color: rgba(46, 168, 255, 0.6); box-shadow: 0 0 0 2px rgba(46, 168, 255, 0.2); }

.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.select option { background: #0b1220; color: var(--text); }

.input::placeholder,
.textarea::placeholder { color: rgba(155, 176, 208, 0.65); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
}

.consent a { color: var(--accent); }
.consent a:hover { color: #ffffff; }

.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer small,
.footer .muted { color: var(--muted); }

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(6, 10, 18, 0.85);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.toast.is-visible { opacity: 1; }

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

.hidden { display: none !important; }

.hero-note { margin-top: 16px; }

.hero-ideal { margin-top: 26px; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1200px) {
  .grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; }
}

@media (max-width: 860px) {
  .grid.cols-4 { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .brand-row { width: 100%; justify-content: space-between; }
  .brand { width: auto; }
  .nav-actions { width: 100%; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
  }
  .nav-links.is-open {
    max-height: 320px;
    opacity: 1;
    padding-top: 6px;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 32px 0; }
  .hero { padding-top: 40px; }
  .nav { padding: 12px; }
  .btn { width: 100%; }
  .nav-links { width: 100%; justify-content: center; }
  .nav-actions { flex-direction: column; gap: 8px; align-items: center; }
  .nav-toggle { width: auto; align-self: center; }
  .card { padding: 16px; }
  .surface { padding: 20px; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card { border-radius: 20px; padding: 20px 18px; min-height: auto; }
  .case-card__badge { min-width: 0; }
  .case-card__desc,
  .case-card__title { max-width: none; }
}
