:root {
  --color-primary: #6d5dfc;
  --color-primary-strong: #5846f5;
  --color-secondary: #12b981;
  --color-text: #18212f;
  --color-muted: #687487;
  --color-bg: #f7f8fc;
  --color-surface: #ffffff;
  --color-border: #e7e9f1;
  --color-soft: #f0efff;
  --color-success: #0a8f62;
  --color-error: #d64242;
  --shadow-sm: 0 8px 24px rgba(29, 35, 55, .06);
  --shadow-md: 0 18px 50px rgba(29, 35, 55, .10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1160px;
}

:root[data-theme="dark"] {
  --color-text: #f4f6fb;
  --color-muted: #aeb7c7;
  --color-bg: #10131a;
  --color-surface: #181d27;
  --color-border: #2a3240;
  --color-soft: #221f46;
  --shadow-sm: none;
  --shadow-md: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; background: var(--color-surface); padding: 10px 14px; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.brand .custom-logo { max-height: 42px; width: auto; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--color-primary), #8f81ff); border-radius: 12px; box-shadow: 0 10px 22px rgba(109,93,252,.25); }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav-list a { color: var(--color-muted); font-weight: 650; font-size: .95rem; }
.nav-list a:hover, .nav-list a:focus-visible { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-select, .theme-toggle { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: 11px; min-height: 40px; }
.language-select { padding: 0 34px 0 12px; }
.theme-toggle { width: 40px; }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 5px 0; background: var(--color-text); }

.hero-section { position: relative; overflow: hidden; padding: 86px 0 72px; text-align: center; }
.hero-inner { position: relative; z-index: 2; max-width: 920px; }
.hero-glow { position: absolute; width: 420px; height: 420px; filter: blur(12px); opacity: .18; border-radius: 50%; pointer-events: none; }
.hero-glow-one { top: -260px; left: -120px; background: #8d7fff; }
.hero-glow-two { top: -230px; right: -120px; background: #39d5a6; }
.eyebrow, .kicker { color: var(--color-primary); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.hero-section h1 { margin: 12px auto 14px; max-width: 780px; font-size: clamp(2.35rem, 5.3vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; }
.hero-copy { max-width: 700px; margin: 0 auto 28px; color: var(--color-muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-legal { max-width: 760px; margin: 18px auto 0; color: var(--color-muted); font-size: .84rem; }
.plugin-notice { margin: 28px auto; max-width: 760px; padding: 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); display: grid; gap: 4px; }

.section { padding: 76px 0; }
.section-muted { background: color-mix(in srgb, var(--color-surface) 55%, var(--color-bg)); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-heading h2 { margin: 8px 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.03em; }
.section-heading p { color: var(--color-muted); margin: 0; }
.steps-grid, .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.info-card, .feature-card, .content-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.info-card, .feature-card { padding: 26px; text-align: left; }
.info-card h3, .feature-card h3 { margin: 12px 0 8px; }
.info-card p, .feature-card p { color: var(--color-muted); margin: 0; font-size: .95rem; }
.step-number { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--color-soft); color: var(--color-primary); border-radius: 13px; font-weight: 850; }
.feature-icon { font-size: 1.5rem; }
.tool-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .18s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border)); }
.tool-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--color-soft); color: var(--color-primary); font-size: 1.3rem; }
.tool-card strong, .tool-card small { display: block; }
.tool-card small { color: var(--color-muted); margin-top: 4px; }
.arrow { font-size: 1.4rem; color: var(--color-primary); }

.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 22px; color: var(--color-text); background: transparent; border: 0; font-weight: 750; }
.faq-answer { padding: 0 22px 20px; color: var(--color-muted); }
.faq-answer p { margin: 0; }

.page-shell { padding: 70px 0; min-height: 60vh; }
.content-card { padding: clamp(24px, 5vw, 48px); }
.content-card h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.entry-content a { color: var(--color-primary); text-decoration: underline; }
.entry-content h2 { margin-top: 1.8em; }
.post-meta { color: var(--color-muted); }
.posts-grid { display: grid; gap: 18px; }

.site-footer { padding: 56px 0 24px; background: var(--color-surface); border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a { display: block; color: var(--color-muted); margin: 8px 0; }
.footer-grid p { color: var(--color-muted); max-width: 360px; }
.footer-brand { font-size: 1.25rem; font-weight: 850; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; gap: 16px; color: var(--color-muted); font-size: .85rem; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-primary) 45%, transparent); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; display: none; top: 72px; left: 16px; right: 16px; padding: 18px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
  .primary-nav.is-open { display: block; }
  .nav-list { display: grid; gap: 5px; }
  .nav-list a { display: block; padding: 10px; }
  .header-actions { padding-top: 12px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-section { padding-top: 58px; }
  .section { padding: 56px 0; }
  .steps-grid, .feature-grid, .tool-cards-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
  .language-select { max-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
