:root {
  --bg: #f5f7fb;
  --bg-strong: radial-gradient(circle at top left, rgba(63, 94, 251, 0.12), transparent 28%), linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  --surface: rgba(255, 255, 255, 0.86);
  --text: #152033;
  --muted: #58657a;
  --line: rgba(21, 32, 51, 0.1);
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #0f172a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-lg: 28px;
  --container: 1120px;
  --nav-height: 76px;
  --font-stack: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #08111f;
  --bg-strong: radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 24%), linear-gradient(180deg, #0a1324 0%, #08111f 100%);
  --surface: rgba(15, 23, 42, 0.72);
  --text: #edf3ff;
  --muted: #a6b4c9;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #7cb4ff;
  --primary-strong: #4f8df5;
  --accent: #f8fbff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-stack);
  color: var(--text);
  background: var(--bg-strong);
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

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

.narrow-content {
  width: min(100%, 760px);
}

.container.narrow-content {
  width: min(calc(100% - 32px), 760px);
}

.section {
  padding: 40px 0 72px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(235, 241, 255, 0.7));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] .section-alt {
  background: linear-gradient(180deg, rgba(19, 34, 61, 0.92), rgba(10, 25, 49, 0.96));
  border-top: 1px solid rgba(124, 180, 255, 0.18);
  border-bottom: 1px solid rgba(124, 180, 255, 0.18);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.hero h1 {
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero-home {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-grid,
.two-column {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero-tagline {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--muted);
}

.hero-text,
.hero-note,
.section-heading p,
.page-hero p,
.feature-card p,
.step-card p,
.news-card p,
.post-content p,
.contact-card p,
.faq-card p,
.legal-copy p,
.legal-copy li {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
}

html[data-theme="dark"] .button-secondary {
  background: rgba(15, 23, 42, 0.78);
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.surface-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.hero-panel,
.feature-card,
.step-card,
.news-card,
.post-content,
.contact-card,
.faq-card,
.legal-copy {
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.86rem;
}

.hero-points {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.hero-points li + li {
  margin-top: 12px;
}

.card-grid,
.steps-grid,
.news-grid,
.stack {
  display: grid;
  gap: 20px;
}

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

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

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

.feature-card h3,
.step-card h3,
.news-card h2,
.contact-card h2,
.faq-card h2,
.legal-copy h2 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.step-index,
.meta-line {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
}

.page-shell {
  padding-bottom: 40px;
}

.confirmation-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 0;
}

.confirmation-section {
  width: 100%;
}

.confirmation-card {
  padding: 40px 32px;
  text-align: center;
}

.reset-card {
  text-align: left;
}

.confirmation-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.confirmation-lead {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--text);
  font-weight: 600;
}

.reset-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.form-label {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.form-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

html[data-theme="dark"] .form-input {
  background: rgba(15, 23, 42, 0.82);
}

.feedback-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-weight: 600;
}

.feedback-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.feedback-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

html[data-theme="dark"] .feedback-success {
  color: #86efac;
}

html[data-theme="dark"] .feedback-error {
  color: #fca5a5;
}

.is-hidden {
  display: none;
}

.page-hero {
  padding: 34px 0 24px;
}

.page-hero .container {
  padding-top: 14px;
}

.post-content p + p,
.legal-copy p + p,
.legal-copy h2 + p,
.legal-copy ul,
.news-card .text-link {
  margin-top: 14px;
}

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

.stack {
  align-items: start;
}

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

details:first-of-type {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--primary);
}

details[open] summary::after {
  content: "-";
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.84);
  border-bottom: 1px solid rgba(21, 32, 51, 0.06);
}

html[data-theme="dark"] .site-header {
  background: rgba(8, 17, 31, 0.84);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-height);
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-wordmark {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #123b82 0%, #2563eb 45%, #64c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .brand-wordmark {
  background: linear-gradient(135deg, #dce9ff 0%, #93c5fd 42%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .menu-toggle {
  background: rgba(15, 23, 42, 0.78);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.nav-list a[aria-current="page"] {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.site-footer {
  padding: 22px 0 36px;
  border-top: 1px solid rgba(21, 32, 51, 0.08);
  margin-top: auto;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-copy a {
  color: var(--primary);
  font-weight: 600;
}

.contact-action {
  margin-top: 26px;
  display: block;
}

.contact-card p + .contact-action {
  margin-top: 32px;
}

.scroll-top-button {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 90;
  min-width: 56px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  box-shadow: var(--shadow);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease, background-color 160ms ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  background: #ffffff;
}

html[data-theme="dark"] .scroll-top-button {
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
}

html[data-theme="dark"] .nav-list {
  background: rgba(8, 17, 31, 0.96);
}

@media (max-width: 960px) {
  .hero-grid,
  .two-column,
  .card-grid,
  .steps-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-home {
    min-height: auto;
    padding-top: 12px;
  }
}

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

  .container.narrow-content {
    width: min(calc(100% - 36px), 760px);
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: relative;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .site-nav.is-open .nav-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list a {
    width: 100%;
  }

  .section {
    padding: 28px 0 56px;
  }

  .hero {
    padding: 18px 0 44px;
  }

  .page-shell {
    padding-bottom: 28px;
  }

  .confirmation-shell {
    padding: 28px 0;
  }

  .confirmation-card {
    padding: 28px 22px;
  }

  .page-hero {
    padding: 22px 0 18px;
  }

  .page-hero .container {
    padding-top: 4px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .section-heading h2,
  .page-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .button-secondary,
  .button-primary {
    min-height: 50px;
  }

  .hero-panel,
  .feature-card,
  .step-card,
  .news-card,
  .post-content,
  .contact-card,
  .faq-card,
  .legal-copy,
  .confirmation-card {
    padding: 20px;
  }

  .site-header {
    padding: 10px 0;
  }

  .site-header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark,
  .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark {
    font-size: 1.35rem;
  }

  .theme-toggle,
  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .nav-list {
    left: auto;
    right: 0;
    width: min(280px, calc(100vw - 36px));
  }

  .news-card h2 {
    line-height: 1.2;
  }

  .post-content p + p,
  .legal-copy p + p,
  .legal-copy h2 + p,
  .legal-copy ul,
  .news-card .text-link {
    margin-top: 12px;
  }

  .scroll-top-button {
    right: 18px;
    bottom: 20px;
    min-width: 52px;
    min-height: 52px;
    padding: 0 16px;
  }
}

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

  .container.narrow-content {
    width: min(calc(100% - 40px), 760px);
  }

  .hero-copy,
  .section-heading {
    max-width: none;
  }

  .hero-panel,
  .feature-card,
  .step-card,
  .news-card,
  .post-content,
  .contact-card,
  .faq-card,
  .legal-copy,
  .confirmation-card {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-points {
    margin-top: 16px;
    padding-left: 16px;
  }

  .footer-nav,
  .site-footer-inner {
    gap: 12px;
  }
}
