:root {
  color-scheme: dark;
  --background: #10151d;
  --surface: #151a22;
  --surface-raised: #1a212b;
  --surface-accent: #1d3043;
  --border: #303b49;
  --border-strong: #3f78aa;
  --text: #e8edf5;
  --text-strong: #f4f7fb;
  --text-muted: #aebaca;
  --accent: #79a8d8;
  --accent-strong: #4b8bc2;
  --focus: #9ac8f3;
  --max-width: 1160px;
  --shadow: 0 24px 70px rgb(0 0 0 / 28%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 4%, rgb(63 120 170 / 16%), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #b7dcff;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.35rem;
  background: var(--text-strong);
  color: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus {
  color: var(--background);
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(63 120 170 / 22%);
  background: rgb(16 21 29 / 88%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-strong);
  font-weight: 720;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

.header-actions,
.primary-nav,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 1.5rem;
}

.primary-nav {
  gap: 1.25rem;
}

.primary-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--text-strong);
}

.language-switcher {
  gap: 0.45rem;
  color: #637386;
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.language-switcher a {
  color: var(--text-muted);
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  color: var(--text-strong);
}

.hero {
  padding: 7rem 0 4.5rem;
  text-align: center;
}

.hero-copy {
  max-width: 900px;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--text-strong);
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  margin-right: auto;
  margin-bottom: 1.4rem;
  margin-left: auto;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--accent);
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.hero-lead {
  max-width: 780px;
  margin: 0 auto 1rem;
  color: #d5deea;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.hero-summary,
.section-intro,
.feature-card p,
.security-card p,
.author-card p {
  color: var(--text-muted);
}

.hero-summary {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border: 1px solid #526174;
  border-radius: 0.45rem;
  background: #252e3a;
  color: var(--text-strong);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
  background: #303b49;
  color: #fff;
}

.button-primary {
  border-color: var(--accent-strong);
  background: #27669a;
}

.button-primary:hover {
  background: #3078b2;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.5rem;
  margin: 2.2rem 0 0;
  padding: 0;
  color: #bdc8d5;
  font-size: 0.92rem;
  list-style: none;
}

.trust-list li::before {
  margin-right: 0.45rem;
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.product-preview {
  max-width: 100%;
  margin: 4.25rem auto 0;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #0c1118;
  box-shadow: var(--shadow);
}

.product-preview img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.product-preview figcaption {
  padding: 0.65rem 0.5rem 0.1rem;
  color: #8796a8;
  font-size: 0.8rem;
  text-align: left;
}

.section {
  padding: 5.5rem 0;
}

.section-quiet {
  border-top: 1px solid rgb(48 59 73 / 70%);
  border-bottom: 1px solid rgb(48 59 73 / 70%);
  background: rgb(21 26 34 / 72%);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-intro {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.two-column {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.two-column .section-heading {
  margin-bottom: 0;
}

.prose-panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface-raised);
}

.prose-panel p:last-child {
  margin-bottom: 0;
}

.feature-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card,
.security-card {
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-raised);
}

.feature-card p,
.security-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.feature-number {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 750;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 2.3rem 0;
  padding: 1.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.7rem;
  background: var(--surface-accent);
}

.workflow-step {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.workflow-arrow {
  color: var(--accent);
  font-size: 1.2rem;
}

.workflow-note {
  max-width: 810px;
  margin-bottom: 0;
  color: var(--text-muted);
}

.security-grid {
  grid-template-columns: repeat(3, 1fr);
}

.security-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
}

.license-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #1d3043, #172432);
}

.license-panel h2,
.license-panel p {
  margin-bottom: 0.45rem;
}

.license-panel p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.author-card {
  max-width: 760px;
  padding-left: 1.4rem;
  border-left: 3px solid var(--border-strong);
}

.author-card .author-name {
  margin-bottom: 0.3rem;
  color: var(--text-strong);
  font-size: 1.2rem;
  font-weight: 720;
}

.site-footer {
  padding: 2.3rem 0;
  border-top: 1px solid var(--border);
  color: #8e9cac;
  font-size: 0.86rem;
}

.footer-inner,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-inner {
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: #aab7c6;
}

@media (max-width: 920px) {
  .primary-nav {
    display: none;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

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

  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: auto;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand span {
    display: none;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .feature-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .license-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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