:root {
  color-scheme: light dark;
  --ink: #0b1023;
  --muted: #55617b;
  --line: #dfe4f0;
  --paper: #fbfcff;
  --soft: #f1f3ff;
  --navy: #0a1436;
  --navy-2: #111f4b;
  --blue: #8fb5ff;
  --cyan: #65dce4;
  --violet: #997cff;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.hero {
  min-height: 620px;
  color: #f8faff;
  background:
    radial-gradient(circle at 72% 42%, rgba(101, 220, 228, .13), transparent 27%),
    radial-gradient(circle at 20% 15%, rgba(153, 124, 255, .17), transparent 28%),
    linear-gradient(135deg, var(--navy), #07102c 64%, #0b173a);
}

.nav,
.hero-grid,
.section,
.footer-inner {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

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

.brand {
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -.02em;
  text-decoration: none;
}

.language {
  display: flex;
  gap: 22px;
  color: #c8d3f4;
  font-size: 14px;
}

.language a {
  text-decoration: none;
  padding: 8px 0 5px;
  border-bottom: 2px solid transparent;
}

.language a[aria-current="page"] {
  color: white;
  border-color: var(--blue);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  gap: 76px;
  align-items: center;
  padding: 74px 0 106px;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-copy p {
  max-width: 620px;
  margin: 30px 0 0;
  color: #c5cee9;
  font-size: clamp(18px, 2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a9c8ff, #7fa8ff);
  color: #07102c;
  font-weight: 720;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(96, 135, 232, .22);
}

.text-link {
  color: #c8d9ff;
  text-underline-offset: 6px;
}

.flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  min-height: 310px;
}

.code-sheet {
  min-height: 246px;
  padding: 28px 24px;
  border: 1px solid rgba(142, 176, 255, .35);
  border-radius: 12px;
  background: rgba(22, 39, 86, .42);
  box-shadow: inset 0 1px rgba(255, 255, 255, .07);
}

.code-sheet.output { border-color: rgba(101, 220, 228, .37); }

.sheet-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aab9e6;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
}

.output .sheet-title { color: #a5edf1; }

.file-icon {
  width: 14px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.code-lines { margin-top: 27px; }

.line {
  height: 7px;
  margin: 12px 0;
  border-radius: 99px;
  background: #6684d9;
  opacity: .78;
}

.output .line { background: #5bd2dd; }
.line:nth-child(2) { width: 74%; }
.line:nth-child(3) { width: 54%; }
.line:nth-child(4) { width: 83%; }
.line:nth-child(5) { width: 64%; }

.bridge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: auto;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 27px;
  box-shadow: 0 0 35px rgba(101, 220, 228, .2);
}

.section { padding: 88px 0; }
.section.compact { padding-block: 74px; }

.section h2 {
  margin: 0 0 42px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

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

.step {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step-number {
  color: #3956a6;
  font-size: 14px;
  font-weight: 760;
}

.step h3 { margin: 10px 0 8px; font-size: 21px; }
.step p { margin: 0; color: var(--muted); }

.split {
  background: linear-gradient(105deg, #eef1ff, #f8f9ff 48%, #effbfc);
  border-block: 1px solid #e2e6f4;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
}

.split-grid > section + section {
  padding-left: 68px;
  border-left: 1px solid #d6dbea;
}

.split h2 { font-size: clamp(29px, 3vw, 38px); margin-bottom: 26px; }

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  color: #34405a;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6388ee;
}

.manual li::before { background: var(--violet); }

.faq { border-top: 1px solid var(--line); }

details { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 46px 22px 4px;
  font-weight: 680;
  position: relative;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 850px; margin: 0 0 23px 4px; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}

.contact-item {
  padding: 26px 0 6px;
  border-top: 1px solid var(--line);
}

.contact-item h3 { margin: 0 0 9px; font-size: 21px; }
.contact-item p { margin: 0; color: var(--muted); }
.contact-item a { color: #244eaa; text-underline-offset: 4px; }

footer { color: #dbe4ff; background: var(--navy); }

.footer-inner {
  min-height: 116px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: #aebde5; font-size: 14px; }

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  color: white;
  text-align: center;
  background: var(--navy);
}

.not-found h1 { font-size: clamp(54px, 10vw, 100px); }
.not-found p { color: #c5cee9; }

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; padding: 48px 0 82px; }
  .flow { max-width: 600px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .split-grid { grid-template-columns: 1fr; gap: 46px; }
  .split-grid > section + section { padding: 46px 0 0; border-left: 0; border-top: 1px solid #d6dbea; }
}

@media (max-width: 560px) {
  .nav, .hero-grid, .section, .footer-inner { width: min(calc(100% - 32px), var(--max)); }
  .nav { min-height: 68px; }
  .hero-grid { padding-top: 42px; }
  h1 { font-size: 46px; }
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .code-sheet { min-height: 202px; }
  .bridge { transform: rotate(90deg); }
  .section { padding-block: 66px; }
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-inner { padding-block: 30px; align-items: flex-start; flex-direction: column; }
}

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