:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --text: #101522;
  --muted: #5f6878;
  --line: #dfe5ee;
  --accent: #172033;
  --accent-strong: #0d1422;
  --max: 1120px;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { 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;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-strong);
  color: #fff;
  padding: .8rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223, 229, 238, 0.85);
}
.header-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .18em;
  font-size: 1rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .94rem;
}
.nav a:hover,
.nav a:focus-visible { color: var(--text); }

main { display: block; }
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  padding: 96px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 900px;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  max-width: 980px;
}
.lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}
.hero-note {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-weight: 600;
  background: rgba(255,255,255,.62);
  border-radius: 0 14px 14px 0;
}

.assistant-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.assistant-card .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 18px;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #243149;
  box-shadow: 0 0 0 6px rgba(36,49,73,.08);
}
.chat {
  display: grid;
  gap: 12px;
}
.bubble {
  max-width: 90%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: .97rem;
}
.bubble.user {
  justify-self: end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble.strux {
  justify-self: start;
  background: var(--surface-soft);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.section { padding: 64px 0; }
.section-heading {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 34px;
}
.section-heading h2,
.content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -.035em;
  line-height: 1.1;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.step,
.topic,
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step { padding: 24px; min-height: 190px; }
.step-number {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.step h3 {
  margin: 44px 0 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.topic {
  padding: 18px 20px;
  font-weight: 700;
  text-transform: lowercase;
}

.cta-panel {
  background: var(--accent-strong);
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
}
.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.04em;
}
.cta-panel p { margin: 0; color: rgba(255,255,255,.72); max-width: 760px; }

.page-hero { padding: 76px 0 40px; }
.page-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .93rem;
}
.document-wrap {
  width: min(calc(100% - 32px), 900px);
  margin: 0 auto;
  padding: 16px 0 76px;
}
.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow);
}
.content section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.content h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 14px;
}
.content h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}
.content p,
.content li { color: #313a49; }
.content p { margin: 0 0 14px; }
.content ul { padding-left: 1.25rem; }
.content li + li { margin-top: 7px; }
.content a { font-weight: 700; text-underline-offset: 3px; }
.note {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 46px 0;
  background: #eef2f7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
}
.footer-brand {
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 8px;
}
.footer-copy,
.footer-meta { color: var(--muted); font-size: .93rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 18px;
}
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover,
.footer-links a:focus-visible { text-decoration: underline; }
.footer-meta strong { color: var(--text); }

@media (max-width: 900px) {
  .hero-grid,
  .section-heading,
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { padding-top: 72px; }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 64px;
    width: min(calc(100% - 24px), var(--max));
  }
  .nav { gap: 12px; }
  .nav a:not(:last-child) { display: none; }
  .container,
  .document-wrap { width: min(calc(100% - 24px), var(--max)); }
  .hero { padding: 56px 0 40px; }
  .section { padding: 44px 0; }
  .steps,
  .topics { grid-template-columns: 1fr; }
  .step { min-height: 150px; }
  .step h3 { margin-top: 28px; }
  .assistant-card { padding: 16px; border-radius: 22px; }
  .bubble { max-width: 94%; }
  .content { padding: 24px 20px; border-radius: 20px; }
  .page-hero { padding: 54px 0 28px; }
}

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