:root {
  color-scheme: light;
  --bg: #07111f;
  --card: #101d33;
  --card-light: #152641;
  --primary: #52d6ff;
  --secondary: #a78bfa;
  --accent: #2dd4bf;
  --text: #eef6ff;
  --muted: #b6c6d8;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(82, 214, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.18), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  color: #d9f7ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 31, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #06101d;
  font-weight: 900;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 58px 0 42px;
}

.hero-simple {
  max-width: 840px;
  padding: 58px 0 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(82, 214, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 12vw, 4rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.8rem, 8vw, 2.7rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.15rem;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #03101b;
  box-shadow: 0 16px 36px rgba(45, 212, 191, 0.26);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.dashboard-card,
.panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(16, 29, 51, 0.78);
  box-shadow: var(--shadow);
}

.dashboard-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
}

.pulse::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.12);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.metric {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card-light);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 180px;
  margin-top: 24px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.bar {
  flex: 1;
  min-width: 20px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: 0.9;
}

.section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 540px;
  padding: 46px 0;
}

.section-header {
  display: block;
  margin-bottom: 26px;
}

.section-header p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.cards-two {
  grid-template-columns: 1fr;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(16, 29, 51, 0.7);
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: rgba(82, 214, 255, 0.12);
  color: var(--primary);
  font-weight: 800;
}

.card p,
.panel p,
.panel li,
.legal p,
.legal li {
  color: var(--muted);
}

.card p {
  margin: 12px 0 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}

.project {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(16, 29, 51, 0.94), rgba(21, 38, 65, 0.78));
  box-shadow: var(--shadow);
}

.project ul,
.panel ul,
.legal ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.code-box {
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #06101d;
  color: #d9f7ff;
  font-size: 0.9rem;
}

.code-box code {
  white-space: pre-wrap;
}

.event-log {
  min-height: 76px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.94rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #06101d;
  font-weight: 900;
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
}

.link-list a::after {
  content: ">";
  color: var(--primary);
}

.setup-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 18px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--muted);
}

.compact-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(16, 29, 51, 0.7);
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--text);
  background: rgba(82, 214, 255, 0.08);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table code {
  word-break: break-word;
}

.funnel-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: funnel;
}

.funnel-list li {
  position: relative;
  padding: 18px 18px 18px 68px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.funnel-list li::before {
  counter-increment: funnel;
  content: counter(funnel);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #06101d;
  font-weight: 900;
}

.funnel-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.legal {
  max-width: 900px;
  padding-bottom: 70px;
}

.legal section {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.notice {
  padding: 18px 20px;
  border: 1px solid rgba(82, 214, 255, 0.24);
  border-radius: 18px;
  background: rgba(82, 214, 255, 0.08);
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(16, 29, 51, 0.74);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(82, 214, 255, 0.12);
  color: var(--primary);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__content {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(6, 16, 29, 0.97);
  box-shadow: var(--shadow);
}

.cookie-banner__intro h2 {
  font-size: 1.45rem;
}

.cookie-banner__intro p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cookie-banner__form {
  display: grid;
  gap: 12px;
}

.cookie-banner__choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.cookie-banner__choice input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.cookie-banner__choice strong,
.cookie-banner__choice small {
  display: block;
}

.cookie-banner__choice small {
  margin-top: 4px;
  color: var(--muted);
}

.cookie-banner__details {
  color: var(--muted);
}

.cookie-banner__details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
}

.cookie-banner__cookie-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-manage-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(6, 16, 29, 0.9);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 54px auto 0;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--text);
}

@media (min-width: 540px) {
  .button {
    width: auto;
  }

  .cookie-banner__actions {
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (min-width: 681px) {
  .nav {
    flex-direction: column;
  }

  .nav-links {
    gap: 18px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 901px) {
  .nav {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 36px;
    padding: 84px 0 60px;
  }

  .hero-simple {
    padding: 84px 0 34px;
  }

  h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    letter-spacing: -0.06em;
  }

  h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
  }

  .section {
    padding: 62px 0;
  }

  .section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
  }

  .section-header p {
    margin: 0;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-banner {
    left: auto;
    width: min(680px, calc(100% - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .section {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
}
