:root {
  --bg: #08111f;
  --bg-soft: #0d1a2b;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f7fbff;
  --muted: #a8b6c8;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #33d3a6;
  --accent-strong: #7ce4ff;
  --warning: #f3c969;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(51, 211, 166, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(124, 228, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, #08111f 0%, #0a1321 48%, #08111f 100%);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 17, 31, 0.82);
  backdrop-filter: blur(18px);
}

.nav,
.hero-grid,
.section,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #06111c;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 30px rgba(51, 211, 166, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.nav-contact {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(124, 228, 255, 0.35);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(124, 228, 255, 0.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle:hover {
  border-color: rgba(124, 228, 255, 0.7);
  background: rgba(124, 228, 255, 0.14);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(3.5rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero-title {
  max-width: 720px;
  margin-bottom: 16px;
  color: #dce8f6;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #06111c;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  min-width: 0;
}

.workflow-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(13, 26, 43, 0.84);
  box-shadow: var(--shadow);
}

.workflow-panel::before {
  position: absolute;
  inset: 54px 34px 104px;
  z-index: -1;
  border-left: 1px dashed rgba(124, 228, 255, 0.45);
  content: "";
}

.panel-header {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.panel-header span:first-child {
  background: var(--accent);
}

.flow-line {
  display: grid;
  gap: 14px;
}

.flow-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 10, 18, 0.42);
}

.flow-card.active {
  border-color: rgba(51, 211, 166, 0.55);
  background: rgba(51, 211, 166, 0.1);
}

.node-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  color: #06111c;
  background: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.flow-card p,
.feature-card p,
.use-case-list p,
.roadmap-item p,
.footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.metric-row div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.section {
  padding: 88px 0;
}

.alt-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.compact {
  margin-bottom: 30px;
}

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

.feature-card,
.roadmap-item {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card span,
.roadmap-item span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.use-case-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.use-case-list article {
  min-height: 190px;
  padding: 24px;
  background: #0b1727;
}

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

.roadmap-item.current {
  border-color: rgba(51, 211, 166, 0.55);
  background: rgba(51, 211, 166, 0.1);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-grid {
    gap: 38px;
  }

  .use-case-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav,
  .hero-grid,
  .section,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 17, 31, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
  }

  .nav-contact {
    border: 0;
    background: transparent;
  }

  .language-toggle {
    width: 100%;
    justify-content: flex-start;
    margin-top: 6px;
  }

  .hero {
    padding: 56px 0 54px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .workflow-panel {
    padding: 14px;
  }

  .metric-row,
  .use-case-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .alt-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .footer {
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
