:root {
  color-scheme: light;
  --seo-bg: #f5f5f7;
  --seo-panel: rgba(255, 255, 255, 0.66);
  --seo-panel-strong: rgba(255, 255, 255, 0.82);
  --seo-text: #1d1d1f;
  --seo-muted: #667085;
  --seo-soft: #94a3b8;
  --seo-line: rgba(255, 255, 255, 0.78);
  --seo-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
  --seo-green: #34c759;
  --seo-blue: #0071e3;
  --seo-red: #d63b36;
  --seo-violet: #7c3aed;
  --seo-accent: var(--seo-violet);
  --seo-accent-rgb: 124, 58, 237;
  --seo-accent-2-rgb: 244, 114, 182;
}

* {
  box-sizing: border-box;
}

body.seo-page {
  margin: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(var(--seo-accent-rgb), 0.13), transparent 34rem),
    radial-gradient(circle at 82% 7%, rgba(var(--seo-accent-rgb), 0.1), transparent 34rem),
    radial-gradient(circle at 70% 84%, rgba(var(--seo-accent-2-rgb), 0.08), transparent 34rem),
    var(--seo-bg);
  color: var(--seo-text);
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  line-height: 1.55;
  overflow-x: hidden;
}

body.seo-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--seo-accent-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--seo-accent-rgb), 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 68%);
}

body.seo-theme-blue {
  --seo-accent: var(--seo-blue);
  --seo-accent-rgb: 0, 113, 227;
  --seo-accent-2-rgb: 56, 189, 248;
}

body.seo-theme-green {
  --seo-accent: var(--seo-green);
  --seo-accent-rgb: 52, 199, 89;
  --seo-accent-2-rgb: 45, 212, 191;
}

body.seo-theme-red {
  --seo-accent: #ef4444;
  --seo-accent-rgb: 239, 68, 68;
  --seo-accent-2-rgb: 249, 115, 22;
}

body.seo-theme-violet {
  --seo-accent: var(--seo-violet);
  --seo-accent-rgb: 124, 58, 237;
  --seo-accent-2-rgb: 168, 85, 247;
}

.seo-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.seo-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.seo-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  margin: 18px 0 0;
  pointer-events: none;
}

.seo-header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 32px;
  background: rgba(248, 250, 253, 0.48);
  box-shadow: 0 14px 38px rgba(51, 65, 85, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
  pointer-events: auto;
  font-family: Inter, sans-serif;
}

.seo-header-main {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.seo-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.seo-logo {
  color: inherit;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.seo-logo span {
  color: var(--seo-red);
}

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

.seo-nav a,
.seo-footer a,
.seo-breadcrumbs a {
  color: var(--seo-muted);
  text-decoration: none;
}

.seo-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease;
}

.seo-nav a:hover,
.seo-footer a:hover,
.seo-breadcrumbs a:hover {
  color: var(--seo-blue);
  background: rgba(255, 255, 255, 0.72);
}

.seo-header-link,
.seo-lang-switcher summary,
.seo-account-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.seo-header-link {
  min-width: 126px;
  padding: 12px 24px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.84);
  color: #334155;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  font-size: 14px;
  font-weight: 760;
  text-transform: none;
}

.seo-header-link:hover {
  color: var(--seo-blue);
  background: rgba(255, 255, 255, 0.84);
}

.seo-account-menu {
  position: relative;
}

.seo-account-button {
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid #2f73dd;
  background: #2f73dd;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(47, 115, 221, 0.23);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.seo-account-button.is-authenticated {
  width: 58px;
  min-width: 58px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  overflow: hidden;
}

.seo-account-button:hover {
  border-color: #0a68cc;
  background: #0a68cc;
}

.seo-account-button.is-admin {
  border-color: #d73732;
  background: #d73732;
  box-shadow: 0 10px 24px rgba(215, 55, 50, 0.2);
}

.seo-account-button.is-admin:hover {
  border-color: #c52f2b;
  background: #c52f2b;
}

.seo-account-button.is-loading {
  opacity: 0.82;
}

.seo-account-button.is-authenticated [data-seo-account-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.seo-account-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.seo-account-button.is-guest .seo-account-icon {
  display: none;
}

.seo-account-button.is-authenticated .seo-account-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.8;
}

.seo-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 178px;
  padding: 8px;
  border: 1px solid var(--seo-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.seo-account-dropdown[hidden] {
  display: none;
}

.seo-account-dropdown a,
.seo-account-dropdown button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  color: #475569;
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.seo-account-dropdown a:hover,
.seo-account-dropdown button:hover {
  color: #2f73dd;
  background: rgba(239, 246, 255, 0.72);
}

.seo-account-dropdown .seo-account-admin-link:hover {
  color: #d73732;
}

.seo-lang-switcher {
  position: relative;
}

.seo-lang-switcher summary {
  min-width: 0;
  gap: 5px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  text-transform: uppercase;
  font-weight: 850;
  font-size: 13px;
}

.seo-lang-switcher[open] summary {
  border-color: #2f73dd;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 18px rgba(47, 115, 221, 0.12);
}

.seo-lang-switcher summary::-webkit-details-marker {
  display: none;
}

.seo-lang-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.seo-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 130px;
  padding: 6px;
  border: 1px solid var(--seo-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.seo-lang-menu a {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border-radius: 12px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.seo-lang-menu a:hover {
  color: var(--seo-blue);
  background: rgba(0, 113, 227, 0.08);
}

.seo-main {
  flex: 1;
}

.seo-hero {
  padding: 92px 0 54px;
}

.seo-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: center;
}

.seo-breadcrumbs {
  margin-bottom: 26px;
  color: var(--seo-muted);
  font-size: 14px;
  font-weight: 650;
}

.seo-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.seo-breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
  color: #b8c0cf;
}

.seo-breadcrumbs li:last-child::after {
  content: "";
  margin: 0;
}

.seo-back-button {
  position: fixed;
  top: 104px;
  left: max(24px, calc((100vw - 1180px) / 2));
  z-index: 30;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  border: 1px solid var(--seo-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.seo-back-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  color: var(--seo-blue);
}

.seo-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--seo-accent-rgb), 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(var(--seo-accent-rgb), 0.08);
  color: var(--seo-accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seo-h1 {
  max-width: 880px;
  margin: 0 0 24px;
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.seo-lead {
  max-width: 780px;
  margin: 0;
  color: #566176;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 650;
  line-height: 1.36;
}

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

.seo-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid rgba(var(--seo-accent-rgb), 0.22);
  border-radius: 999px;
  background: rgba(var(--seo-accent-rgb), 0.92);
  color: #fff;
  box-shadow: 0 18px 36px rgba(var(--seo-accent-rgb), 0.22);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.seo-primary-link:hover {
  transform: translateY(-2px);
  background: var(--seo-accent);
  box-shadow: 0 22px 44px rgba(var(--seo-accent-rgb), 0.28);
}

.seo-action-note {
  max-width: 520px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 650;
}

.seo-hero-card {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--seo-line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--seo-shadow);
  overflow: hidden;
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
}

.seo-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.seo-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -18% -20%;
  height: 45%;
  background: linear-gradient(to top, rgba(124, 58, 237, 0.16), transparent);
}

.seo-payoff-line {
  position: absolute;
  left: 7%;
  right: 0;
  bottom: 24%;
  height: 45%;
  z-index: 2;
}

.seo-payoff-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.seo-payoff-line path {
  fill: none;
  stroke: var(--seo-violet);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 14px 18px rgba(124, 58, 237, 0.16));
}

.seo-floating-formula {
  position: absolute;
  right: 9%;
  top: 13%;
  z-index: 2;
  color: rgba(124, 58, 237, 0.2);
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-style: italic;
  font-weight: 700;
  white-space: nowrap;
  animation: seoFloat 7s ease-in-out infinite;
}

.seo-floating-formula--small {
  top: 27%;
  right: 14%;
  color: rgba(124, 58, 237, 0.13);
  font-size: clamp(18px, 1.8vw, 26px);
  animation-duration: 8.5s;
}

.seo-hero-icon {
  position: absolute;
  left: 10%;
  top: 12%;
  z-index: 3;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.09);
}

.seo-hero-icon svg {
  width: 48px;
  height: 48px;
}

.seo-hero-copy {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 11%;
  z-index: 4;
}

.seo-hero-copy strong {
  display: block;
  margin-bottom: 12px;
  color: var(--seo-text);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.seo-hero-copy span {
  display: block;
  max-width: 420px;
  color: #4b5567;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 750;
  line-height: 1.35;
}

.seo-section {
  padding: 42px 0;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.seo-card,
.seo-cta,
.seo-faq,
.seo-disclaimer {
  background: var(--seo-panel);
  border: 1px solid var(--seo-line);
  border-radius: 32px;
  box-shadow: var(--seo-shadow);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.seo-card {
  min-height: 245px;
  padding: 32px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.seo-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.8);
}

.seo-card h2,
.seo-card h3,
.seo-faq h2,
.seo-cta h2 {
  margin-top: 0;
  letter-spacing: -0.045em;
  color: var(--seo-text);
}

.seo-card h2,
.seo-faq h2,
.seo-cta h2 {
  font-size: 28px;
  line-height: 1.08;
}

.seo-card p,
.seo-faq p,
.seo-disclaimer p,
.seo-cta p {
  color: var(--seo-muted);
  font-size: 16px;
}

.seo-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px;
  background:
    radial-gradient(circle at 85% 20%, rgba(var(--seo-accent-rgb), 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.7);
}

.seo-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.seo-resource-card {
  display: block;
  min-height: 132px;
  padding: 24px;
  border: 1px solid rgba(var(--seo-accent-rgb), 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.seo-resource-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(var(--seo-accent-rgb), 0.32);
}

.seo-resource-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--seo-text);
  font-size: 20px;
  letter-spacing: -0.035em;
}

.seo-resource-card span {
  display: block;
  color: var(--seo-muted);
  font-size: 15px;
  font-weight: 650;
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--seo-blue);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 18px 36px rgba(0, 113, 227, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-button:hover {
  transform: translateY(-2px);
  background: var(--seo-blue);
  box-shadow: 0 22px 44px rgba(0, 113, 227, 0.28);
}

.seo-faq {
  padding: 38px;
}

.seo-faq details {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 20px 0;
}

.seo-faq details:first-of-type {
  border-top: 0;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--seo-text);
}

.seo-disclaimer {
  padding: 26px 30px;
  margin: 24px 0 64px;
  background: rgba(255, 255, 255, 0.48);
}

.seo-disclaimer p {
  margin: 0;
  font-size: 14px;
}

.seo-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.48);
}

.seo-footer__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #94a3b8;
}

.seo-404 {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 190px);
  text-align: center;
}

.seo-404__box {
  max-width: 680px;
  padding: 56px 28px;
}

.seo-404__code {
  margin: 0 0 12px;
  color: var(--seo-blue);
  font-size: 96px;
  line-height: 1;
  font-weight: 900;
}

@keyframes seoFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@media (max-width: 980px) {
  .seo-hero__layout {
    grid-template-columns: 1fr;
  }

  .seo-hero-card {
    min-height: 420px;
  }

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

  .seo-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .seo-container {
    width: min(100% - 28px, 1180px);
  }

  .seo-header {
    top: 12px;
    margin-top: 12px;
  }

  .seo-header__inner,
  .seo-footer__inner,
  .seo-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-header-main,
  .seo-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .seo-header-main {
    gap: 12px;
  }

  .seo-header-actions {
    justify-content: flex-start;
  }

  .seo-header__inner {
    min-height: 0;
    padding: 14px;
    border-radius: 24px;
  }

  .seo-back-button {
    top: 98px;
    left: 14px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .seo-nav {
    gap: 6px;
  }

  .seo-nav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .seo-hero {
    padding: 72px 0 28px;
  }

  .seo-section {
    padding: 24px 0;
  }

  .seo-h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .seo-lead {
    font-size: 20px;
  }

  .seo-hero-card {
    min-height: 380px;
    border-radius: 28px;
  }

  .seo-hero-icon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
  }

  .seo-hero-icon svg {
    width: 40px;
    height: 40px;
  }

  .seo-floating-formula {
    right: 6%;
    top: 16%;
    font-size: 20px;
  }

  .seo-floating-formula--small {
    top: 29%;
    right: 8%;
    font-size: 17px;
  }

  .seo-hero-copy strong {
    font-size: 34px;
  }

  .seo-hero-copy span {
    font-size: 19px;
  }

  .seo-card,
  .seo-cta,
  .seo-faq {
    border-radius: 26px;
    padding: 26px;
  }
}
