:root {
  color-scheme: light;
  --bg: #f8f9ff;
  --bg-soft: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.85);
  --text: #0f172a;
  --muted: #74819d;
  --muted-strong: #5c6780;
  --border: rgba(150, 165, 195, 0.22);
  --shadow: 0 28px 70px rgba(99, 74, 186, 0.13);
  --shadow-soft: 0 14px 34px rgba(98, 92, 135, 0.12);
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-soft: #efe7ff;
  --green: #10b981;
  --green-dark: #059669;
  --green-soft: #dcfce7;
  --orange: #f97316;
  --orange-soft: #ffedd5;
  --blue: #3b82f6;
  --blue-soft: #dbeafe;
  --navy: #162033;
  --dark-button: #202a3d;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(153, 102, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 32%),
    linear-gradient(180deg, #fbfbff 0%, #f8fbff 52%, #ffffff 100%);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
}

.site-shell {
  position: relative;
  overflow: clip;
}

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

.section {
  padding: 72px 0;
}

.center {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 249, 255, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.site-brand span {
  color: var(--purple);
}

.desktop-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a,
.footer-nav a {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--muted-strong);
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.footer-nav a:hover,
.copier-card a:hover,
.contact-card a:hover {
  color: var(--purple);
}

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

.lang-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(208, 214, 228, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted-strong);
  box-shadow: 0 10px 24px rgba(19, 24, 38, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.lang-button:hover,
.icon-button:hover,
.pricing-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--text);
}

.icon {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon {
  display: none;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-panel {
  display: none;
  width: min(100% - 40px, 360px);
  margin: 0 auto 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.mobile-panel a {
  display: block;
  padding: 12px 6px;
  font-weight: 600;
  color: var(--muted-strong);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.12);
  color: #8b5cf6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.section-badge.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.section-badge.alt {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.hero {
  padding-top: 44px;
  padding-bottom: 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
  gap: 56px;
  align-items: center;
}

.hero-copy h1,
.section-intro h2,
.contact-copy h2,
.legal-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-copy h1 span {
  color: #a78bfa;
}

.hero-lead,
.section-intro p,
.contact-copy p,
.legal-hero p,
.legal-prose p,
.feature-card p,
.copier-card p,
.access-tip p,
.plan-card li,
.footer-grid p {
  color: var(--muted);
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 30px;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.button:hover,
.wide-cta:hover,
.resource-link:hover,
.plan-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6 55%, #6d28d9);
  box-shadow: 0 18px 30px rgba(124, 58, 237, 0.28);
}

.button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(213, 219, 234, 0.96);
  box-shadow: var(--shadow-soft);
}

.button-dark {
  color: #fff;
  background: linear-gradient(135deg, #202a3d, #293446);
  box-shadow: 0 20px 34px rgba(25, 34, 53, 0.22);
}

.button-ghost {
  color: var(--navy);
  background: rgba(243, 246, 253, 0.92);
  border: 1px solid rgba(213, 219, 234, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.button-full {
  width: 100%;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c3cad7;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.visual-card,
.contact-panel,
.legal-card,
.access-tip,
.feature-card,
.resource-card,
.copier-card,
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.visual-card {
  position: absolute;
  inset: 82px 26px 34px 40px;
  padding: 28px;
}

.metric-top,
.metric-summary,
.footer-grid,
.footer-base,
.contact-card,
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metric-chip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-chip small,
.floating-pill small,
.metric-summary small {
  display: block;
  color: #9aa5bd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.metric-chip strong,
.floating-pill strong,
.metric-summary strong {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.metric-summary {
  align-items: flex-end;
  margin: 34px 0 24px;
}

.metric-summary strong {
  font-size: 2rem;
}

.metric-icon,
.icon-chip,
.access-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.pulse-icon {
  color: var(--purple);
  background: rgba(139, 92, 246, 0.14);
}

.card-icon {
  color: var(--blue);
  background: rgba(59, 130, 246, 0.14);
}

.flash-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--green), #22c55e);
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 156px;
}

.chart-bars span {
  flex: 1;
  min-width: 14px;
  height: var(--bar-height);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.92), rgba(196, 181, 253, 0.72));
  animation: pulse-bars 2.4s ease-in-out infinite alternate;
}

.chart-bars span:nth-child(odd) {
  animation-delay: 180ms;
}

.floating-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(222, 227, 238, 0.96);
  box-shadow: 0 18px 44px rgba(31, 35, 50, 0.14);
}

.top-pill {
  top: 40px;
  right: 0;
}

.bottom-pill {
  left: 0;
  bottom: 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-intro.center {
  margin-inline: auto;
}

.section-intro h2,
.contact-copy h2,
.legal-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.section-intro h2 {
  margin-top: 14px;
  margin-bottom: 10px;
}

.feature-grid,
.resource-grid,
.copier-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.copier-card,
.resource-card,
.plan-card {
  padding: 18px;
}

.feature-card h3,
.copier-card h3,
.resource-card h3,
.access-tip h3,
.plan-card .plan-label {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.icon-chip,
.access-tip-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.icon-chip svg,
.access-tip-icon svg {
  width: 24px;
  height: 24px;
}

.icon-chip.violet {
  color: var(--purple);
  background: rgba(139, 92, 246, 0.14);
}

.icon-chip.green-soft {
  color: var(--green);
  background: rgba(16, 185, 129, 0.14);
}

.icon-chip.blue {
  color: var(--blue);
  background: rgba(59, 130, 246, 0.14);
}

.access-tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  margin-bottom: 26px;
}

.access-tip-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  box-shadow: 0 16px 28px rgba(59, 130, 246, 0.24);
}

.access-tip h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.7rem;
}

.text-link {
  color: var(--purple);
  font-weight: 800;
}

.language-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-pills li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(43, 48, 70, 0.12);
}

.language-pills li:nth-child(1) {
  background: var(--blue);
}

.language-pills li:nth-child(2) {
  background: #eab308;
}

.language-pills li:nth-child(3) {
  background: #0ea5e9;
}

.resource-grid,
.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.resource-link,
.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.resource-link.green {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.resource-link.neutral {
  color: var(--muted-strong);
  background: rgba(241, 244, 250, 0.92);
}

.resource-link.purple,
.plan-button {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.2);
}

.cta-wrap {
  margin-top: 22px;
}

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

.copier-card a {
  display: inline-block;
  margin-top: 14px;
  color: #a78bfa;
  font-weight: 800;
}

.split-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.wide-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 24px;
  border-radius: 26px;
  color: #fff;
  box-shadow: var(--shadow);
}

.wide-cta strong {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.wide-cta span {
  color: rgba(255, 255, 255, 0.82);
}

.wide-cta-green {
  background: linear-gradient(135deg, #059669, #10b981);
}

.wide-cta-purple {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.pricing-section {
  padding-top: 84px;
}

.pricing-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(232, 237, 246, 0.9);
  border: 1px solid rgba(204, 213, 228, 0.86);
  box-shadow: var(--shadow-soft);
}

.pricing-tab {
  min-width: 124px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.pricing-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  box-shadow: 0 14px 24px rgba(124, 58, 237, 0.2);
}

.pricing-grid {
  margin-top: 28px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-card .plan-tag {
  margin-bottom: 8px;
  color: #a78bfa;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.plan-card .price {
  margin: 0;
  font-size: clamp(3.1rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.plan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.plan-badge {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.plan-badge.monthly {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.12);
}

.plan-badge.cloud {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.12);
}

.plan-badge.premise {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.12);
}

.plan-features {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-features li::before {
  content: "✓";
  color: #8b5cf6;
  font-weight: 900;
}

.plan-spacer {
  flex: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 470px);
  gap: 42px;
  align-items: center;
}

.contact-copy h2 {
  max-width: 12ch;
}

.contact-copy p {
  max-width: 32rem;
  font-size: 1.18rem;
}

.contact-card {
  justify-content: flex-start;
  margin-top: 34px;
}

.contact-card strong,
.contact-card a {
  display: block;
}

.contact-card a {
  color: var(--muted-strong);
  font-weight: 700;
}

.contact-panel {
  padding: 28px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form span {
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(214, 220, 234, 0.96);
  border-radius: 16px;
  background: rgba(245, 247, 252, 0.96);
  color: var(--text);
  padding: 16px 18px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
  background: #fff;
}

.reach-label {
  margin: 24px 0 12px;
  color: #9aa5bd;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
}

.social-pill.telegram {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
}

.social-pill.whatsapp {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.social-pill.teams {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
}

.site-footer {
  padding: 26px 0 42px;
  border-top: 1px solid rgba(218, 224, 236, 0.8);
}

.footer-grid {
  padding-bottom: 26px;
  align-items: flex-start;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-grid p {
  max-width: 28rem;
  margin: 0;
  font-size: 1rem;
}

.footer-base {
  justify-content: flex-start;
  padding-top: 22px;
  border-top: 1px solid rgba(218, 224, 236, 0.8);
}

.footer-base small {
  color: #a0abc2;
  font-weight: 700;
}

.legal-main {
  min-height: calc(100vh - 180px);
}

.legal-hero {
  padding-top: 48px;
  padding-bottom: 12px;
}

.legal-card {
  padding: 36px;
}

.legal-prose {
  max-width: 860px;
}

.legal-prose h2 {
  margin: 30px 0 12px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.legal-prose ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-prose li + li {
  margin-top: 10px;
}

.legal-prose a {
  color: var(--purple);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 640ms ease,
    transform 640ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.theme-dark {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #071223;
  --bg-elevated: rgba(7, 18, 35, 0.78);
  --text: #ecf1ff;
  --muted: #93a2be;
  --muted-strong: #c8d1e5;
  --border: rgba(123, 144, 185, 0.18);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --shadow-soft: 0 14px 34px rgba(2, 6, 23, 0.4);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
    linear-gradient(180deg, #020617 0%, #07101e 100%);
}

body.theme-dark .site-header {
  background: rgba(2, 6, 23, 0.76);
  border-bottom-color: rgba(99, 115, 143, 0.14);
}

body.theme-dark .lang-button,
body.theme-dark .icon-button,
body.theme-dark .visual-card,
body.theme-dark .contact-panel,
body.theme-dark .legal-card,
body.theme-dark .access-tip,
body.theme-dark .feature-card,
body.theme-dark .resource-card,
body.theme-dark .copier-card,
body.theme-dark .plan-card,
body.theme-dark .mobile-panel,
body.theme-dark .floating-pill {
  background: rgba(8, 15, 29, 0.86);
  border-color: rgba(119, 135, 169, 0.16);
}

body.theme-dark .button-secondary,
body.theme-dark .resource-link.neutral,
body.theme-dark .pricing-tabs,
body.theme-dark .contact-form input,
body.theme-dark .contact-form textarea {
  background: rgba(12, 20, 36, 0.96);
  color: var(--muted-strong);
  border-color: rgba(119, 135, 169, 0.16);
}

body.theme-dark .theme-toggle .icon-sun {
  display: none;
}

body.theme-dark .theme-toggle .icon-moon {
  display: block;
}

body.theme-dark .footer-base,
body.theme-dark .site-footer {
  border-color: rgba(119, 135, 169, 0.16);
}

@keyframes pulse-bars {
  from {
    filter: brightness(0.95);
  }

  to {
    filter: brightness(1.08);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .copier-grid,
  .split-cta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .footer-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  body.menu-open .mobile-panel {
    display: block;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-copy h1,
  .section-intro h2,
  .contact-copy h2,
  .legal-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .hero-lead,
  .contact-copy p {
    font-size: 1.05rem;
  }

  .hero-visual {
    min-height: 420px;
  }

  .visual-card {
    inset: 70px 16px 20px;
  }

  .top-pill {
    top: 12px;
    right: 12px;
  }

  .bottom-pill {
    left: 14px;
  }

  .access-tip {
    grid-template-columns: 1fr;
  }

  .field-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .site-brand {
    font-size: 1.65rem;
  }

  .nav-bar {
    min-height: 74px;
  }

  .lang-button {
    display: none;
  }

  .hero-actions,
  .stack-list {
    gap: 12px;
  }

  .button,
  .pricing-tab {
    width: 100%;
  }

  .feature-grid,
  .resource-grid,
  .pricing-grid,
  .copier-grid {
    grid-template-columns: 1fr;
  }

  .pricing-tabs {
    width: 100%;
    flex-direction: column;
  }

  .pricing-tab {
    min-width: 0;
  }

  .visual-card {
    position: relative;
    inset: auto;
  }

  .hero-visual {
    min-height: 0;
    display: grid;
    gap: 14px;
  }

  .floating-pill {
    position: static;
  }

  .metric-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .wide-cta strong {
    font-size: 1.2rem;
  }

  .contact-panel,
  .legal-card {
    padding: 20px;
  }
}

.subpage-hero {
  padding-top: 44px;
  padding-bottom: 24px;
}

.resource-hero,
.signin-layout,
.swagger-layout {
  display: grid;
  gap: 26px;
}

.resource-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 420px);
  align-items: end;
}

.resource-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.9rem, 5.2vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.resource-hero p,
.summary-card p,
.signin-copy p,
.signin-card p,
.content-card p,
.app-nav-item span,
.side-text-list li,
.side-link-list a {
  color: var(--muted);
}

.hero-kpis,
.app-metric-grid,
.summary-grid {
  display: grid;
  gap: 14px;
}

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

.stat-chip,
.metric-tile,
.summary-card,
.compact-card,
.content-card,
.signin-card,
.signin-benefits > * {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.stat-chip,
.metric-tile {
  padding: 18px;
}

.stat-chip small,
.metric-tile small,
.code-label {
  display: block;
  color: #96a3bc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.stat-chip strong,
.metric-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.resource-section {
  padding-top: 24px;
}

.resource-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
  isolation: isolate;
}

.resource-sidebar,
.resource-main,
.swagger-sidebar,
.swagger-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.resource-main,
.swagger-main {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.resource-sidebar,
.swagger-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  z-index: 3;
}

.compact-card,
.content-card,
.signin-card {
  padding: 24px;
  min-width: 0;
}

.compact-card h3,
.content-card h2,
.signin-card h2,
.summary-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.side-link-list,
.side-text-list,
.doc-list,
.endpoint-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-link-list li + li,
.side-text-list li + li,
.doc-list li + li,
.endpoint-list li + li {
  margin-top: 10px;
}

.side-link-list a {
  font-weight: 700;
}

.side-link-list a,
.side-text-list li,
.endpoint-list strong,
.endpoint-list small,
.doc-mini-card p,
.doc-related-item p,
.doc-table td,
.doc-table code,
.code-panel code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.side-link-list a:hover {
  color: var(--purple);
}

.doc-section + .doc-section {
  margin-top: 0;
}

.doc-section p + p {
  margin-top: 12px;
}

.doc-list {
  margin-top: 16px;
}

.doc-overview-card {
  display: grid;
  gap: 20px;
}

.doc-overview-grid,
.doc-related-grid,
.content-grid-two {
  display: grid;
  gap: 16px;
}

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

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

.doc-mini-card,
.doc-related-item {
  border: 1px solid rgba(210, 218, 232, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(241, 245, 255, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.doc-mini-card {
  padding: 18px;
}

.doc-mini-card h3,
.doc-reference-group h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.doc-mini-card p,
.doc-related-item p {
  margin: 0;
  color: var(--muted);
}

.doc-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.doc-list li::before {
  content: "•";
  color: var(--purple);
  font-weight: 900;
}

.code-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(118, 137, 176, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.code-label {
  padding: 14px 18px 0;
}

.code-panel pre {
  margin: 0;
  padding: 14px 18px 18px;
  overflow: auto;
}

.code-panel code {
  color: #e5ecff;
  font-size: 0.92rem;
  line-height: 1.6;
}

.swagger-layout {
  grid-template-columns: 360px minmax(0, 1fr);
  position: relative;
  isolation: isolate;
}

.endpoint-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.endpoint-list strong,
.summary-card span,
.signin-meta a {
  font-weight: 800;
}

.endpoint-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.method-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
}

.method-get {
  background: #0ea5e9;
}

.method-post {
  background: #10b981;
}

.method-patch {
  background: #f59e0b;
}

.method-delete {
  background: #ef4444;
}

.method-ws {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.doc-reference-stack {
  display: grid;
  gap: 22px;
}

.doc-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid rgba(202, 211, 226, 0.54);
  border-radius: 20px;
  background: rgba(252, 253, 255, 0.9);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(202, 211, 226, 0.42);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(244, 247, 253, 0.92);
}

.doc-table td {
  color: var(--muted);
  font-weight: 600;
}

.doc-table tbody tr:last-child td {
  border-bottom: 0;
}

.doc-table code {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.doc-step-list {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.doc-step-list li {
  padding-left: 4px;
}

.doc-step-list li + li {
  margin-top: 10px;
}

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

.doc-related-item {
  display: grid;
  gap: 8px;
  padding: 20px;
  color: inherit;
}

.doc-related-item strong,
.doc-related-item span {
  font-weight: 900;
}

.doc-related-item span {
  color: var(--purple);
}

.explorer-testing-card .doc-action-row {
  margin-top: 18px;
}

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

.summary-card {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.summary-card span {
  color: var(--purple);
}

.signin-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
}

.signin-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.9rem, 5.2vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.signin-benefits {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.signin-card {
  padding: 28px;
}

.demo-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.signin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.signin-meta a {
  color: var(--purple);
}

.app-preview-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.app-preview-nav,
.app-preview-main {
  display: grid;
  gap: 18px;
}

.app-nav-item {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.app-nav-item.is-active {
  border-color: rgba(124, 58, 237, 0.24);
  box-shadow: 0 18px 34px rgba(124, 58, 237, 0.12);
}

.app-nav-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 900;
}

.app-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-table {
  width: 100%;
  border-collapse: collapse;
}

.app-table th,
.app-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(202, 211, 226, 0.42);
  text-align: left;
}

.app-table th {
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.app-table td {
  color: var(--muted);
  font-weight: 700;
}

body.theme-dark .stat-chip,
body.theme-dark .metric-tile,
body.theme-dark .summary-card,
body.theme-dark .compact-card,
body.theme-dark .content-card,
body.theme-dark .signin-card,
body.theme-dark .signin-benefits > *,
body.theme-dark .app-nav-item,
body.theme-dark .doc-mini-card,
body.theme-dark .doc-related-item {
  background: rgba(8, 15, 29, 0.86);
  border-color: rgba(119, 135, 169, 0.16);
}

body.theme-dark .app-table th,
body.theme-dark .app-table td,
body.theme-dark .doc-table th,
body.theme-dark .doc-table td {
  border-bottom-color: rgba(119, 135, 169, 0.16);
}

body.theme-dark .button-ghost {
  color: #e5ecff;
  background: rgba(8, 15, 29, 0.86);
  border-color: rgba(119, 135, 169, 0.16);
}

body.theme-dark .doc-table-wrap {
  border-color: rgba(119, 135, 169, 0.16);
  background: rgba(8, 15, 29, 0.76);
}

body.theme-dark .doc-table th {
  background: rgba(15, 23, 42, 0.92);
}

body.theme-dark .doc-table code {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

@media (max-width: 1120px) {
  .resource-hero,
  .resource-layout,
  .swagger-layout,
  .signin-layout,
  .app-preview-shell {
    grid-template-columns: 1fr;
  }

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

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

  .resource-sidebar,
  .swagger-sidebar {
    position: static;
  }

  .doc-overview-grid,
  .doc-related-grid,
  .content-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-kpis,
  .summary-grid,
  .app-metric-grid,
  .doc-overview-grid,
  .doc-related-grid,
  .content-grid-two {
    grid-template-columns: 1fr;
  }

  .compact-card,
  .content-card,
  .signin-card {
    padding: 20px;
  }

  .endpoint-list li {
    grid-template-columns: 1fr;
  }

  .doc-table th,
  .doc-table td {
    padding: 12px;
  }
}
