:root {
  --ml-bg: #f5f7fa;
  --ml-navy: #0b1420;
  --ml-navy-soft: #09111f;
  --ml-blue: #246bff;
  --ml-blue-hover: #1d57db;
  --ml-purple: #7b4dff;
  --ml-green: #22c55e;
  --ml-orange: #ff8a00;
  --ml-cyan: #00b4d8;
  --ml-success: #22c55e;
  --ml-warning: #f59e0b;
  --ml-error: #ef4444;
  --ml-gray: #6b7280;
  --ml-white: #ffffff;
  --ml-radius-sm: 12px;
  --ml-radius-md: 16px;
  --ml-radius-lg: 24px;
  --ml-radius-xl: 32px;
  --ml-shadow-card: 0 18px 40px rgba(11, 20, 32, 0.08);
  --ml-shadow-soft: 0 10px 24px rgba(11, 20, 32, 0.06);
  --ml-container: 1180px;
  --ml-font-sans: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ml-page-bg: var(--ml-bg);
  --ml-surface: #ffffff;
  --ml-surface-soft: #f7f9fc;
  --ml-card: #ffffff;
  --ml-card-soft: #f8fbff;
  --ml-text: #0b1420;
  --ml-muted: #6b7280;
  --ml-border: rgba(11, 20, 32, 0.08);
  --ml-border-strong: rgba(11, 20, 32, 0.14);
  --ml-hero-text: #ffffff;
  --ml-hero-muted: rgba(255, 255, 255, 0.78);
  --ml-button-secondary-bg: rgba(255, 255, 255, 0.02);
  --ml-button-secondary-text: #ffffff;
}

html[data-ml-theme="dark"] {
  --ml-page-bg: #06101c;
  --ml-surface: #08111d;
  --ml-surface-soft: #0d1725;
  --ml-card: #101a29;
  --ml-card-soft: #122033;
  --ml-text: #f4f7fb;
  --ml-muted: #9aa7be;
  --ml-border: rgba(255, 255, 255, 0.08);
  --ml-border-strong: rgba(255, 255, 255, 0.14);
  --ml-shadow-card: 0 24px 48px rgba(0, 0, 0, 0.28);
  --ml-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.22);
  --ml-button-secondary-bg: rgba(255, 255, 255, 0.06);
  --ml-button-secondary-text: #f4f7fb;
}

html {
  color-scheme: light;
}

html[data-ml-theme="dark"] {
  color-scheme: dark;
}

body {
  background: var(--ml-page-bg);
  color: var(--ml-text);
  font-family: var(--ml-font-sans);
  transition: background-color 0.2s ease, color 0.2s ease;
}

body,
button,
input,
select,
textarea {
  font-family: var(--ml-font-sans);
}

a {
  color: var(--ml-blue);
}

a:hover,
a:focus-visible {
  color: var(--ml-blue-hover);
}

body.ml-theme-design-system,
body.ml-theme-design-system .site,
body.ml-theme-design-system .site-content,
body.ml-theme-design-system .content-area,
body.ml-theme-design-system .site-main,
body.ml-theme-design-system article,
body.ml-theme-design-system .entry-content,
body.ml-theme-design-system .wp-site-blocks {
  background-color: transparent;
  color: var(--ml-text);
}

body.ml-theme-design-system input,
body.ml-theme-design-system select,
body.ml-theme-design-system textarea,
body.ml-theme-design-system button:not(.mlp-button):not(.mlp-theme-toggle__button) {
  color: var(--ml-text);
}

body.ml-theme-design-system input,
body.ml-theme-design-system select,
body.ml-theme-design-system textarea {
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-sm);
  background: var(--ml-card);
  box-shadow: var(--ml-shadow-soft);
}

body.ml-theme-design-system table {
  border-color: var(--ml-border);
  background: var(--ml-card);
  color: var(--ml-text);
}

body.ml-theme-design-system th,
body.ml-theme-design-system td {
  border-color: var(--ml-border);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--ml-text);
  font-family: var(--ml-font-sans);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

p,
li,
small {
  color: inherit;
}

.mlp-section {
  padding: 20px 24px 0;
  background: transparent;
}

.mlp-container {
  width: min(100%, var(--ml-container));
  margin: 0 auto;
}

.mlp-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(36, 107, 255, 0.28);
  border-radius: 999px;
  background: rgba(36, 107, 255, 0.08);
  color: var(--ml-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mlp-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 88%, rgba(36, 107, 255, 0.24), transparent 22%),
    radial-gradient(circle at 92% 72%, rgba(123, 77, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #08111d 0%, #0b1420 100%);
  color: var(--ml-hero-text);
}

.mlp-hero::after {
  content: "";
  position: absolute;
  inset: auto 10% 0 auto;
  width: 48%;
  height: 220px;
  background: radial-gradient(circle, rgba(36, 107, 255, 0.34) 0%, rgba(36, 107, 255, 0.08) 26%, transparent 62%);
  filter: blur(14px);
  pointer-events: none;
}

.mlp-hero .mlp-container {
  position: relative;
  z-index: 1;
}

.mlp-hero h1,
.mlp-hero h2,
.mlp-hero h3,
.mlp-hero p,
.mlp-hero li,
.mlp-hero a {
  color: inherit;
}

.mlp-hero-card {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ml-radius-xl);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.mlp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.mlp-button-primary {
  background: linear-gradient(180deg, #3d88ff 0%, #246bff 100%);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 14px 28px rgba(36, 107, 255, 0.24);
}

.mlp-button-primary:hover,
.mlp-button-primary:focus-visible {
  background: linear-gradient(180deg, #3478ef 0%, #1d57db 100%);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.mlp-button-secondary {
  background: var(--ml-button-secondary-bg);
  border-color: var(--ml-border-strong);
  color: var(--ml-button-secondary-text);
}

.mlp-button-secondary:hover,
.mlp-button-secondary:focus-visible {
  color: var(--ml-button-secondary-text) !important;
  -webkit-text-fill-color: var(--ml-button-secondary-text);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-ml-theme="light"] .mlp-button-secondary,
body.ml-theme-effective-light .mlp-button-secondary {
  background: #ffffff;
  color: var(--ml-text);
  border-color: rgba(36, 107, 255, 0.22);
}

html[data-ml-theme="light"] .mlp-button-secondary:hover,
html[data-ml-theme="light"] .mlp-button-secondary:focus-visible,
body.ml-theme-effective-light .mlp-button-secondary:hover,
body.ml-theme-effective-light .mlp-button-secondary:focus-visible {
  color: var(--ml-text) !important;
  -webkit-text-fill-color: var(--ml-text);
  background: rgba(36, 107, 255, 0.06);
  border-color: rgba(36, 107, 255, 0.28);
}

.mlp-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--ml-border);
  border-radius: 24px;
  background: var(--ml-card);
  box-shadow: var(--ml-shadow-card);
}

.mlp-product-card,
.mlp-resource-card {
  height: 100%;
}

.mlp-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 28px rgba(0, 0, 0, 0.16);
}

.mlp-workflow {
  display: grid;
  gap: 16px;
}

.mlp-footer {
  margin-top: 20px;
  padding: 26px 24px 34px;
  background: var(--ml-surface);
  border-top: 1px solid var(--ml-border);
}

.mlp-theme-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ml-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--ml-shadow-soft);
  backdrop-filter: blur(12px);
}

html[data-ml-theme="dark"] .mlp-theme-toggle,
body.ml-theme-effective-dark .mlp-theme-toggle {
  background: rgba(16, 26, 41, 0.78);
}

.mlp-theme-toggle__button {
  min-height: 34px;
  min-width: 76px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ml-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mlp-theme-toggle__button:hover,
.mlp-theme-toggle__button:focus-visible {
  color: var(--ml-text);
}

.mlp-theme-toggle__button[aria-pressed="true"] {
  background: rgba(36, 107, 255, 0.1);
  color: var(--ml-text);
  box-shadow: inset 0 0 0 1px rgba(36, 107, 255, 0.2);
}

html[data-ml-theme="dark"] .mlp-theme-toggle__button[aria-pressed="true"] {
  color: #ffffff;
  background: rgba(36, 107, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(36, 107, 255, 0.42);
}

.mlp-rich-text {
  max-width: 760px;
}

.mlp-grid {
  display: grid;
  gap: 24px;
}

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

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

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

@media (max-width: 1180px) {
  .mlp-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .mlp-grid--3,
  .mlp-grid--2 {
    grid-template-columns: 1fr;
  }

  .mlp-theme-toggle {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .mlp-section,
  .mlp-hero,
  .mlp-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mlp-grid--4,
  .mlp-grid--3,
  .mlp-grid--2 {
    grid-template-columns: 1fr;
  }

  .mlp-button {
    width: 100%;
  }
}
