:root {
  color-scheme: light;
  --bg-main: #f7f9fd;
  --bg-elevated: #ffffff;
  --bg-sidebar: #061d3d;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --surface-glass-strong: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-muted: #f1f5fb;
  --surface-subtle: #e8eef7;
  --border-soft: rgba(32, 56, 95, 0.12);
  --border-strong: rgba(32, 56, 95, 0.22);
  --text-primary: #07152f;
  --text-secondary: #53647c;
  --text-muted: #7a879c;
  --accent-blue: #0d63f3;
  --accent-blue-strong: #004bd8;
  --accent-yellow: #f5c542;
  --accent-green: #16a66a;
  --accent-red: #df3347;
  --shadow-soft: 0 22px 60px rgba(17, 33, 62, 0.08);
  --shadow-panel: 0 10px 30px rgba(20, 33, 56, 0.07);
  font-size: 16px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-main: #111722;
  --bg-elevated: #182130;
  --bg-sidebar: #061528;
  --surface-glass: rgba(26, 36, 52, 0.76);
  --surface-glass-strong: rgba(28, 39, 56, 0.92);
  --surface-solid: #192231;
  --surface-muted: #202b3d;
  --surface-subtle: #263346;
  --border-soft: rgba(221, 229, 242, 0.12);
  --border-strong: rgba(221, 229, 242, 0.2);
  --text-primary: #edf3ff;
  --text-secondary: #b5c1d6;
  --text-muted: #8793a9;
  --accent-blue: #4f8cff;
  --accent-blue-strong: #74a6ff;
  --accent-yellow: #f0c34a;
  --accent-green: #41c989;
  --accent-red: #ff6678;
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.28);
  --shadow-panel: 0 18px 46px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body.public-page {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(13, 99, 243, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-main) 44%, #eef3fa 100%);
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

[data-theme="dark"] body.public-page {
  background:
    linear-gradient(135deg, rgba(13, 99, 243, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(17, 23, 34, 0.92), rgba(17, 23, 34, 0.98)),
    var(--bg-main);
}

body.public-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(32, 56, 95, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32, 56, 95, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

[data-theme="dark"] body.public-page::before {
  background:
    linear-gradient(90deg, rgba(221, 229, 242, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(221, 229, 242, 0.06) 1px, transparent 1px);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-blue-strong);
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.75rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 850;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 830;
}

h3 {
  font-size: 17px;
  font-weight: 780;
}

.container {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(247, 249, 253, 0.82);
  backdrop-filter: blur(22px);
}

[data-theme="dark"] .site-header {
  background: rgba(17, 23, 34, 0.82);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 780;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #1166ff, #004bd8);
  box-shadow: 0 12px 24px rgba(13, 99, 243, 0.28);
  font-size: 22px;
  font-weight: 850;
}

.logo-text {
  font-size: 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-panel);
}

.main-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--accent-blue);
  background: color-mix(in srgb, var(--accent-blue) 8%, var(--surface-solid));
}

.public-icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-panel);
}

.public-theme-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
}

.public-theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme-choice="light"] .public-theme-toggle [data-theme-choice="light"],
[data-theme-choice="dark"] .public-theme-toggle [data-theme-choice="dark"] {
  color: var(--accent-blue);
  border-color: color-mix(in srgb, var(--accent-blue) 28%, var(--border-soft));
  background: color-mix(in srgb, var(--accent-blue) 8%, var(--surface-solid));
}

.ghost-button,
.cta-button,
.hero-actions .primary,
.hero-actions .secondary,
.section--cta .primary,
.section--cta .secondary,
.register-form .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 760;
  white-space: nowrap;
}

.ghost-button,
.hero-actions .secondary,
.section--cta .secondary {
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  background: var(--surface-solid);
  box-shadow: var(--shadow-panel);
}

.cta-button,
.hero-actions .primary,
.section--cta .primary,
.register-form .primary {
  border: 1px solid var(--accent-blue);
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-strong));
  box-shadow: 0 12px 26px rgba(15, 98, 254, 0.2);
  cursor: pointer;
}

.ghost-button:hover,
.hero-actions .secondary:hover,
.section--cta .secondary:hover,
.cta-button:hover,
.hero-actions .primary:hover,
.section--cta .primary:hover,
.register-form .primary:hover {
  text-decoration: none;
  filter: brightness(1.02);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 180px);
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vh, 104px) 0 clamp(48px, 8vh, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 249, 253, 0.98) 0%, rgba(247, 249, 253, 0.88) 42%, rgba(247, 249, 253, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(13, 99, 243, 0.12)),
    var(--hero-image) right center / min(980px, 70vw) auto no-repeat,
    var(--bg-main);
  border-bottom: 1px solid var(--border-soft);
}

[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(17, 23, 34, 0.98) 0%, rgba(17, 23, 34, 0.9) 42%, rgba(17, 23, 34, 0.3) 100%),
    linear-gradient(180deg, rgba(79, 140, 255, 0.12), rgba(17, 23, 34, 0.18)),
    var(--hero-image) right center / min(980px, 70vw) auto no-repeat,
    var(--bg-main);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg-main));
}

.hero-inner {
  position: relative;
  max-width: 680px;
  margin-left: max((100vw - 1180px) / 2, 20px);
}

.eyebrow,
.section-kicker,
.scope-title,
.meta-label {
  margin: 0 0 12px;
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.lead {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span,
.scope-list li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-panel);
}

.main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section--intro {
  background: var(--bg-main);
}

.section--media {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--surface-muted), var(--bg-main));
}

.section--cta {
  padding-bottom: clamp(72px, 9vw, 110px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-blue) 12%, transparent), transparent 44%),
    var(--bg-main);
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.intro-grid,
.media-grid,
.compliance-grid,
.registration-layout,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.intro-grid p,
.media-copy p,
.compliance-grid p,
.feature-card p,
.card-grid p,
.assurance-list p,
.form-card p,
.info-card p,
.legal-text p,
.legal-text li {
  color: var(--text-secondary);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-green) 14%, transparent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card-grid article,
.feature-card,
.assurance-list article,
.form-card,
.info-card,
.scope-panel,
.cta-panel {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.card-grid article {
  min-height: 230px;
  padding: 20px;
}

.card-grid--compact article {
  min-height: auto;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-strong));
  font-size: 13px;
  font-weight: 820;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-left: 1px solid var(--border-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 22px 24px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-blue) 12%, var(--bg-main));
}

.timeline h3 {
  margin-bottom: 5px;
}

.product-shot {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.product-shot img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.compliance-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.assurance-list {
  display: grid;
  gap: 14px;
}

.assurance-list article {
  padding: 18px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
}

.cta-panel h2 {
  max-width: 700px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.cta-note,
.hero-note,
.meta,
.footer-text,
.footer-meta {
  color: var(--text-muted);
}

.scope-panel {
  padding: 18px;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0;
  list-style: none;
}

.scope-string,
.app-meta code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.app-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.app-meta div {
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-solid);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 44px 0 28px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-solid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-title {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 780;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.footer-meta {
  margin: 30px 0 0;
  text-align: center;
  font-size: 12px;
}

.legal-text ul {
  padding-left: 20px;
}

.legal-text li {
  margin-bottom: 8px;
}

.form-card,
.info-card {
  padding: 24px;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text-secondary);
  font-weight: 700;
}

.register-form input,
.register-form textarea,
.register-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text-primary);
  background: var(--surface-solid);
  font: inherit;
}

.register-form input:focus,
.register-form textarea:focus,
.register-form select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-blue) 58%, var(--border-soft));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-blue) 14%, transparent);
}

.policy-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.policy-check input {
  width: auto;
  margin-top: 4px;
}

.alert {
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 8px;
}

.alert-success {
  color: var(--accent-green);
  border: 1px solid rgba(22, 166, 106, 0.32);
  background: color-mix(in srgb, var(--accent-green) 12%, var(--surface-solid));
}

.alert-error {
  color: var(--accent-red);
  border: 1px solid rgba(223, 51, 71, 0.32);
  background: color-mix(in srgb, var(--accent-red) 12%, var(--surface-solid));
}

.alert ul {
  margin: 6px 0 0;
}

.sub-hero {
  padding: clamp(56px, 8vw, 92px) 0 36px;
  border-bottom: 1px solid var(--border-soft);
  background:
    linear-gradient(135deg, rgba(13, 99, 243, 0.1), transparent 36%),
    var(--bg-main);
}

.legal {
  background: var(--bg-main);
}

.login-flow h2 {
  margin-top: 32px;
}

.text-link {
  color: var(--accent-blue);
  font-weight: 760;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  width: auto;
  height: auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent-blue);
}

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

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

  .hero {
    background:
      linear-gradient(90deg, rgba(247, 249, 253, 0.98), rgba(247, 249, 253, 0.82)),
      var(--hero-image) right bottom / min(760px, 86vw) auto no-repeat,
      var(--bg-main);
  }

  [data-theme="dark"] .hero {
    background:
      linear-gradient(90deg, rgba(17, 23, 34, 0.98), rgba(17, 23, 34, 0.86)),
      var(--hero-image) right bottom / min(760px, 86vw) auto no-repeat,
      var(--bg-main);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 32px), 1180px);
  }

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

  .header-actions {
    gap: 8px;
  }

  .cta-button,
  .ghost-button {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: calc(100svh - 170px);
    padding: 60px 0 52px;
    background:
      linear-gradient(180deg, rgba(247, 249, 253, 0.96) 0%, rgba(247, 249, 253, 0.9) 100%),
      var(--hero-image) center bottom / min(620px, 96vw) auto no-repeat,
      var(--bg-main);
  }

  [data-theme="dark"] .hero {
    background:
      linear-gradient(180deg, rgba(17, 23, 34, 0.97) 0%, rgba(17, 23, 34, 0.9) 100%),
      var(--hero-image) center bottom / min(620px, 96vw) auto no-repeat,
      var(--bg-main);
  }

  .hero-inner {
    margin-left: auto;
  }

  .lead {
    font-size: 16px;
  }

  .intro-grid,
  .media-grid,
  .compliance-grid,
  .registration-layout,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .card-grid article {
    min-height: auto;
  }

  .product-shot {
    order: -1;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .logo-text {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-meta span {
    width: 100%;
  }

  .hero-actions .primary,
  .hero-actions .secondary,
  .section--cta .primary,
  .section--cta .secondary {
    width: 100%;
  }

  .public-theme-toggle {
    gap: 2px;
  }

  .public-theme-toggle button {
    width: 34px;
    height: 34px;
  }
}
