:root {
  --ast-container-width: 1200px;
  --ast-bg: #0b1020;
  --ast-bg-soft: #11182d;
  --ast-card: #121a31;
  --ast-card-soft: #18223f;
  --ast-text: #e9edf8;
  --ast-muted: #a8b2cc;
  --ast-line: rgba(255,255,255,0.12);
  --ast-primary: #5b7cff;
  --ast-primary-strong: #7690ff;
  --ast-shadow: 0 18px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at top, #172443 0, var(--ast-bg) 45%, #080d18 100%); color: var(--ast-text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.ast-container { max-width: var(--ast-container-width); margin: 0 auto; padding: 0 24px; }
.ast-main-content { min-height: 60vh; }
.ast-muted { color: var(--ast-muted); }
.ast-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; }

/* Header */
.ast-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(8,13,24,.72); border-bottom: 1px solid var(--ast-line); }
.ast-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.ast-brand__link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.ast-brand__mark { width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #5b7cff, #7d5cff); color: white; font-weight: 800; box-shadow: var(--ast-shadow); }
.ast-brand__name { display: block; font-size: 17px; font-weight: 700; line-height: 1.1; }
.ast-brand__subtitle { display: block; color: var(--ast-muted); font-size: 12px; margin-top: 2px; }
.ast-nav__menu, .ast-footer__menu { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; align-items: center; }
.ast-nav__menu a, .ast-footer__menu a { text-decoration: none; color: var(--ast-muted); padding: 10px 12px; border-radius: 12px; transition: .2s ease; }
.ast-nav__menu a:hover, .ast-footer__menu a:hover { background: rgba(255,255,255,.06); color: var(--ast-text); }
.ast-header__actions { display: flex; gap: 10px; align-items: center; }
.ast-nav__toggle { display: none; border: 1px solid var(--ast-line); background: rgba(255,255,255,.04); color: var(--ast-text); border-radius: 12px; padding: 8px 12px; }
.ast-mobile-nav { border-top: 1px solid var(--ast-line); background: rgba(8,13,24,.95); }
.ast-mobile-nav__menu { list-style: none; display: grid; gap: 10px; margin: 0; padding: 16px 0 20px; }
.ast-mobile-nav__menu a { display: block; text-decoration: none; background: rgba(255,255,255,.04); border: 1px solid var(--ast-line); padding: 12px 14px; border-radius: 12px; }

/* Buttons */
.ast-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.ast-btn:hover, .wp-block-button__link:hover { transform: translateY(-1px); }
.ast-btn-sm { padding: 8px 12px; font-size: 13px; }
.ast-btn-md { padding: 10px 16px; font-size: 14px; }
.ast-btn-lg { padding: 14px 22px; font-size: 15px; }
.ast-btn-primary, .ast-btn-primary .wp-block-button__link, .wp-block-button.ast-btn-primary .wp-block-button__link { background: linear-gradient(135deg, var(--ast-primary), var(--ast-primary-strong)); color: white; border: 1px solid transparent; }
.ast-btn-ghost, .ast-btn-ghost .wp-block-button__link, .wp-block-button.ast-btn-ghost .wp-block-button__link, .wp-block-button.is-style-outline .wp-block-button__link { background: rgba(255,255,255,.03); color: var(--ast-text); border: 1px solid var(--ast-line); }

/* Sections */
.ast-section, .ast-pattern-section { padding: 88px 0; }
.ast-section--hero { padding-top: 72px; }
.ast-section-title, .ast-section h2, .ast-pattern-section h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.04; margin: 0 0 16px; letter-spacing: -.03em; }
.ast-section-kicker, .ast-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(123,140,255,.28); border-radius: 999px; background: rgba(91,124,255,.1); color: #c8d4ff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ast-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 34px; align-items: center; }
.ast-hero-title { font-size: clamp(42px, 7vw, 76px); line-height: .98; margin: 16px 0 16px; letter-spacing: -.045em; }
.ast-hero-lead { color: var(--ast-muted); font-size: 20px; line-height: 1.7; max-width: 760px; }
.ast-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 20px; }
.ast-hero-trust { color: #93a1c8; font-size: 14px; letter-spacing: .03em; }
.ast-dashboard, .ast-card, .ast-split-boxes > div, .ast-faq-item, .ast-pricing-grid .ast-card, .ast-feature-grid > .wp-block-column > div, .ast-feature-grid > div { border: 1px solid var(--ast-line); background: linear-gradient(180deg, rgba(20,30,56,.94), rgba(13,20,37,.96)); border-radius: 24px; box-shadow: var(--ast-shadow); }
.ast-dashboard { padding: 24px; }
.ast-dash-header { color: #dce4ff; font-weight: 700; margin: 0 0 18px; }
.ast-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.ast-dash-box, .ast-dash-box-wide { padding: 20px; min-height: 120px; }
.ast-dash-box span { display: block; color: var(--ast-muted); font-size: 13px; margin-bottom: 8px; }
.ast-dash-box strong { font-size: 40px; line-height: 1; }
.ast-dash-box-wide { grid-column: 1 / -1; }
.ast-activity { display: grid; gap: 12px; color: var(--ast-muted); }
.ast-activity b { color: #d9e1ff; }
.ast-value-strip { padding-top: 28px; }
.ast-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.ast-value-grid > div { border: 1px solid var(--ast-line); background: rgba(255,255,255,.035); padding: 18px 20px; border-radius: 18px; text-align: center; font-weight: 700; color: #dbe4ff; }
.ast-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.ast-split p, .ast-pattern-section p, .ast-section p, .ast-pattern-section li, .ast-section li { color: var(--ast-muted); font-size: 17px; line-height: 1.72; }
.ast-split-boxes { display: grid; gap: 16px; }
.ast-split-boxes > div, .ast-card, .ast-pricing-grid .ast-card, .ast-feature-grid > div, .ast-feature-grid > .wp-block-column > div { padding: 22px; }
.ast-split-boxes h3, .ast-card h3, .ast-feature-grid h3, .ast-pricing-grid h3 { margin: 0 0 10px; font-size: 22px; }
.ast-showcase .ast-center, .has-text-align-center { text-align: center; }
.ast-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.ast-pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin: 28px 0; }
.ast-card--featured { border-color: rgba(91,124,255,.5); transform: translateY(-6px); }
.ast-final { padding-bottom: 110px; }
.ast-faq-item { padding: 4px 22px; margin-top: 14px; }
.ast-faq-item summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 0; }
.ast-faq-item p { margin-top: 0; }

/* Builder content */
.ast-marketing-builder > * { margin-block-start: 0; margin-block-end: 0; }
.ast-marketing-builder .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: var(--ast-container-width); }
.ast-marketing-builder .alignfull { margin-left: auto; margin-right: auto; }
.ast-marketing-builder .wp-block-columns { gap: 20px; }
.ast-marketing-builder .wp-block-button__link { padding: 14px 22px; }
.ast-marketing-builder .wp-block-details summary { color: var(--ast-text); }
.ast-marketing-builder .ast-card, .ast-marketing-builder .ast-dashboard, .ast-marketing-builder .ast-faq-item { color: var(--ast-text); }

/* Generic content */
.ast-main { padding: 48px 0; }
.ast-prose { color: var(--ast-text); }
.ast-prose a { color: #9db6ff; }

/* Footer */
.ast-footer { border-top: 1px solid var(--ast-line); background: rgba(8,13,24,.82); }
.ast-footer__inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 0; }

/* Mobile */
@media (max-width: 960px) {
  .ast-nav, .ast-header__actions { display: none; }
  .ast-nav__toggle { display: inline-flex; }
  .ast-hero-grid, .ast-split, .ast-feature-grid, .ast-pricing-grid, .ast-value-grid { grid-template-columns: 1fr; }
  .ast-section, .ast-pattern-section { padding: 70px 0; }
  .ast-hero-title { font-size: clamp(38px, 14vw, 58px); }
}

@media (max-width: 640px) {
  .ast-container { padding: 0 18px; }
  .ast-hero-actions { flex-direction: column; align-items: stretch; }
  .ast-btn, .wp-block-button__link { width: 100%; }
  .ast-footer__inner { flex-direction: column; align-items: flex-start; }
  .ast-footer__menu { flex-wrap: wrap; }
}

.ast-marketing-builder-page { padding-bottom: 40px; }
.ast-footer__text { margin-top: 6px; max-width: 320px; }
.ast-footer__actions { display:flex; align-items:center; }
.ast-landing-shell { min-height: 100vh; }


/* Width tools */
.ast-container--wide { max-width: var(--ast-wide-width); }
.ast-container--content { max-width: var(--ast-content-width); }
.ast-container--narrow { max-width: min(720px, var(--ast-content-width)); }

/* Layout tools */
.ast-main { padding: 48px 0; }
.ast-stack > * + * { margin-top: 24px; }
.ast-layout { display: grid; gap: 28px; align-items: start; }
.ast-layout--sidebar-right { grid-template-columns: minmax(0, 1fr) 320px; }
.ast-layout--sidebar-left { grid-template-columns: 320px minmax(0, 1fr); }
.ast-layout--sidebar-left .ast-content-area { order: 2; }
.ast-layout--sidebar-left .ast-sidebar { order: 1; }
.ast-sidebar { padding: 22px; }
.ast-grid { display: grid; gap: 18px; }
.ast-grid--1 { grid-template-columns: 1fr; }
.ast-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ast-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ast-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ast-grid--equal > * { height: 100%; }
.ast-card-style--bordered .ast-card, .ast-card-style--bordered.ast-card { background: transparent; border-width: 1px; }
.ast-card-style--minimal .ast-card, .ast-card-style--minimal.ast-card { background: rgba(255,255,255,.02); box-shadow: none; }
.ast-card-style--glass .ast-card, .ast-card-style--glass.ast-card { background: rgba(255,255,255,.05); backdrop-filter: blur(12px); }

/* Blog tools */
.ast-post-card { display: flex; flex-direction: column; overflow: hidden; }
.ast-post-card__thumb img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }
.ast-post-card__body { display: grid; gap: 12px; }
.ast-post-card__cats a { display: inline-flex; padding: 6px 10px; margin: 0 8px 8px 0; border-radius: 999px; background: rgba(91,124,255,.12); border: 1px solid rgba(123,140,255,.28); text-decoration: none; font-size: 12px; }
.ast-h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.02; margin: 0; letter-spacing: -.04em; }
.ast-h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.08; margin: 0; }
.ast-h3 { font-size: 20px; margin: 0; }
.ast-pagehead { display: grid; gap: 12px; margin-bottom: 10px; }
.ast-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ast-muted); font-size: 14px; }
.ast-link { text-decoration: none; }
.ast-link:hover { color: #c7d4ff; }
.ast-card__actions { margin-top: auto; padding-top: 18px; }
.ast-pagination { padding-top: 26px; }
.ast-article__featured img { display: block; width: 100%; border-radius: 24px; border: 1px solid var(--ast-line); margin-bottom: 28px; }
.ast-related-posts { padding-top: 28px; }

@media (max-width: 1100px) {
  .ast-grid--4, .ast-pricing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ast-layout--sidebar-right, .ast-layout--sidebar-left { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  .ast-grid--2, .ast-grid--3, .ast-grid--4 { grid-template-columns: 1fr; }
  .ast-post-card__thumb img { aspect-ratio: 16/9; }
}


/* EDD widgets */
.ast-edd-widget { position: relative; }
.ast-edd-card { display: grid; gap: 12px; }
.ast-edd-card__badge { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 999px; background: rgba(91,124,255,.14); border: 1px solid rgba(123,140,255,.28); color: #dce4ff; font-size: 12px; font-weight: 700; }
.ast-edd-card__price { font-size: 28px; font-weight: 800; color: #fff; }
.ast-edd-card__features { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: var(--ast-muted); }
.ast-edd-empty { max-width: var(--ast-content-width); margin: 0 auto; }
