/*
Theme Name: AutoFlow AI Marketplace
Theme URI: https://example.com/autoflow-ai-marketplace
Author: AutoFlow
Author URI: https://example.com
Description: Reference-matched dark SaaS marketplace for AI automation programs, with editable AI Tool content, membership pricing, protected downloads, responsive navigation, search filters, and Elementor-compatible shortcodes.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autoflow-download-center
*/

:root {
  --bg: #020711;
  --bg-soft: #06111f;
  --panel: rgba(8, 20, 38, 0.76);
  --panel-strong: rgba(11, 27, 51, 0.92);
  --line: rgba(90, 142, 255, 0.22);
  --line-strong: rgba(105, 126, 255, 0.52);
  --text: #f6fbff;
  --muted: #92a3bd;
  --muted-2: #657894;
  --blue: #3278ff;
  --violet: #694cff;
  --cyan: #2cecff;
  --green: #26d9a0;
  --amber: #ffb325;
  --danger: #ff5d72;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 48% 12%, rgba(50, 120, 255, 0.2), transparent 34%),
    radial-gradient(circle at 86% 28%, rgba(105, 76, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #020711 0%, #03101f 52%, #020711 100%);
  color: var(--text);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(73, 129, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 129, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
  z-index: -1;
}

img,
svg {
  max-width: 100%;
}

svg {
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(93, 142, 255, 0.14);
  background: rgba(2, 7, 17, 0.78);
  backdrop-filter: blur(22px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #fff;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--blue) 56%, var(--cyan));
  color: #fff;
  box-shadow: 0 0 22px rgba(75, 98, 255, 0.62);
  font-weight: 900;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  min-width: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #cfdaeb;
  font-size: 14px;
  font-weight: 700;
}

.primary-menu a {
  position: relative;
  display: inline-flex;
  padding: 10px 0;
  white-space: nowrap;
}

.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  transition: transform 180ms ease;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
  color: #fff;
}

.primary-menu a:hover::after,
.primary-menu a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.login-link {
  color: #d9e5ff;
  font-size: 14px;
  font-weight: 800;
}

.button,
.wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(139, 163, 255, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, #673dff 0%, #2f7dff 100%);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(61, 108, 255, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(44, 236, 255, 0.76);
  box-shadow: 0 0 40px rgba(61, 108, 255, 0.62), 0 0 20px rgba(44, 236, 255, 0.18);
}

.button-small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.button-ghost {
  background: rgba(10, 28, 55, 0.72);
  border-color: rgba(82, 126, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 20px rgba(45, 105, 255, 0.12);
}

.hero {
  position: relative;
  padding: 84px 0 54px;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(8px);
}

.hero-glow-a {
  left: -12%;
  top: 8%;
  width: 58%;
  height: 48%;
  background: radial-gradient(ellipse at center, rgba(44, 236, 255, 0.16), transparent 68%);
}

.hero-glow-b {
  right: -10%;
  bottom: 2%;
  width: 54%;
  height: 54%;
  background: radial-gradient(ellipse at center, rgba(105, 76, 255, 0.2), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(79, 132, 255, 0.36);
  border-radius: 8px;
  background: rgba(32, 89, 255, 0.14);
  color: #96bbff;
  font-size: 14px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: 58px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 span {
  display: inline-block;
  background: linear-gradient(90deg, #dffaff 0%, #5fb0ff 44%, #6e5bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(64, 124, 255, 0.24);
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 28px;
  color: #a8bad2;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.hero-stats div {
  min-width: 0;
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.hero-stats span {
  display: block;
  color: #91a3bd;
  font-size: 13px;
}

.hero-dashboard {
  position: relative;
  min-height: 410px;
  padding: 16px;
  border: 1px solid rgba(89, 137, 255, 0.44);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(10, 26, 52, 0.9), rgba(5, 14, 30, 0.82));
  box-shadow: var(--shadow), 0 0 60px rgba(46, 112, 255, 0.18);
  overflow: hidden;
}

.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 42%);
  pointer-events: none;
}

.dashboard-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  color: #dbe8ff;
  font-size: 13px;
}

.dashboard-top span:last-child {
  margin-left: auto;
  color: #8094b6;
}

.brand-dot {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  font-size: 12px;
  font-weight: 900;
}

.dashboard-layout {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
}

.dashboard-side {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 12px;
}

.dashboard-side span {
  height: 30px;
  border-radius: 8px;
  background: rgba(112, 138, 174, 0.12);
}

.dashboard-side .active {
  background: linear-gradient(90deg, var(--violet), var(--blue));
  box-shadow: 0 0 24px rgba(80, 111, 255, 0.5);
}

.dashboard-main {
  min-width: 0;
}

.dashboard-title {
  margin-bottom: 16px;
}

.dashboard-title small,
.metric-row span {
  display: block;
  color: #8194b5;
}

.dashboard-title strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric-row div {
  padding: 14px;
  border: 1px solid rgba(80, 124, 220, 0.18);
  border-radius: 8px;
  background: rgba(3, 12, 27, 0.48);
}

.metric-row strong {
  display: block;
  margin-top: 6px;
  color: #f7fbff;
  font-size: 24px;
}

.metric-row em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
}

.chart-panel {
  height: 112px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(80, 124, 220, 0.18);
  border-radius: 8px;
  background: rgba(3, 12, 27, 0.36);
}

.chart-panel span {
  flex: 1;
  min-width: 8px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 18px rgba(44, 236, 255, 0.28);
}

.chart-panel span:nth-child(1) { height: 38%; }
.chart-panel span:nth-child(2) { height: 72%; }
.chart-panel span:nth-child(3) { height: 48%; }
.chart-panel span:nth-child(4) { height: 84%; }
.chart-panel span:nth-child(5) { height: 52%; }
.chart-panel span:nth-child(6) { height: 66%; }
.chart-panel span:nth-child(7) { height: 42%; }
.chart-panel span:nth-child(8) { height: 76%; }

.task-list {
  display: grid;
  gap: 10px;
}

.task-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(80, 124, 220, 0.16);
  border-radius: 8px;
  background: rgba(4, 13, 29, 0.48);
  color: #c9d8ef;
  font-size: 13px;
}

.task-list span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.task-list b {
  margin-left: auto;
  color: var(--green);
  font-size: 12px;
}

.neon-platform {
  position: absolute;
  left: 18%;
  right: 12%;
  bottom: -34px;
  height: 86px;
  border: 2px solid rgba(70, 133, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(60, 124, 255, 0.8), inset 0 0 28px rgba(44, 236, 255, 0.42);
}

.feature-strip {
  padding: 10px 0 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(93, 142, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 23, 43, 0.72);
  box-shadow: 0 0 50px rgba(49, 114, 255, 0.08);
  backdrop-filter: blur(18px);
}

.feature-grid div {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  align-items: center;
}

.feature-grid span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(50, 120, 255, 0.16);
  color: var(--cyan);
}

.feature-grid svg {
  width: 24px;
  height: 24px;
}

.feature-grid strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.feature-grid p {
  grid-column: 2;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 44px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h1,
.section-head h2,
.custom-panel h2,
.pricing-title h2,
.help-section h2,
.tool-hero h1,
.doc-card h2,
.bottom-download h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-head p,
.pricing-title p,
.help-section p,
.custom-panel p,
.bottom-download p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  color: #75a3ff;
  font-size: 14px;
  font-weight: 900;
}

.autoflow-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.tool-card {
  position: relative;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(89, 137, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(10, 26, 49, 0.88), rgba(5, 16, 33, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 236, 255, 0.11), transparent 42%, rgba(105, 76, 255, 0.12));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.tool-card:hover,
.tool-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(44, 236, 255, 0.62);
  box-shadow: 0 0 38px rgba(48, 116, 255, 0.26), 0 18px 46px rgba(0, 0, 0, 0.32);
}

.tool-card:hover::before,
.tool-card:focus-within::before {
  opacity: 1;
}

.tool-card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.tool-icon,
.single-tool-icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 0 28px rgba(65, 115, 255, 0.42);
}

.tool-icon svg,
.single-tool-icon svg {
  width: 28px;
  height: 28px;
}

.tool-icon-send { background: linear-gradient(135deg, #16b7ff, #2d65ff); }
.tool-icon-pen { background: linear-gradient(135deg, #8067ff, #413cff); }
.tool-icon-chart { background: linear-gradient(135deg, #5e78ff, #325cff); }
.tool-icon-bot { background: linear-gradient(135deg, #25dca2, #118f75); }
.tool-icon-bag { background: linear-gradient(135deg, #ff8730, #ff4b12); }
.tool-icon-file { background: linear-gradient(135deg, #c65aff, #8135d8); }
.tool-icon-social { background: linear-gradient(135deg, #22d75a, #00a840); }
.tool-icon-image { background: linear-gradient(135deg, #9b54ff, #6128ff); }

.tool-card-body {
  position: relative;
  z-index: 2;
}

.tool-card h3 {
  margin: 18px 0 8px;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
}

.tool-card p {
  min-height: 48px;
  margin: 0;
  color: #9baec9;
  font-size: 13px;
}

.tool-card-foot {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  color: #96a9c4;
  font-size: 13px;
}

.tool-rating {
  color: var(--amber);
  font-weight: 900;
}

.tool-downloads {
  color: #9db1cb;
}

.tool-button {
  margin-left: auto;
  min-width: 64px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 135, 255, 0.38);
  border-radius: 8px;
  background: rgba(42, 91, 190, 0.4);
  color: #fff;
  font-weight: 900;
}

.empty-market,
.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.custom-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 34px 40px;
  border: 1px solid rgba(90, 142, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(10, 29, 56, 0.92), rgba(5, 13, 28, 0.86));
  box-shadow: 0 0 60px rgba(49, 114, 255, 0.12);
}

.custom-panel h2 span {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff32cf, var(--violet));
  font-size: 12px;
  vertical-align: middle;
}

.custom-panel ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  color: #cbd8eb;
  font-size: 14px;
}

.custom-panel li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--cyan);
}

.custom-visual {
  position: relative;
  min-height: 190px;
}

.custom-visual span {
  position: absolute;
  width: 96px;
  height: 58px;
  border: 1px solid rgba(87, 135, 255, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(45, 116, 255, 0.52), rgba(105, 76, 255, 0.34));
  box-shadow: 0 0 30px rgba(67, 116, 255, 0.36);
  transform: skewY(-10deg);
}

.custom-visual span:nth-child(1) { left: 20px; top: 34px; }
.custom-visual span:nth-child(2) { left: 135px; top: 16px; }
.custom-visual span:nth-child(3) { left: 100px; top: 104px; }
.custom-visual span:nth-child(4) { left: 224px; top: 82px; }

.custom-points {
  display: grid;
  gap: 18px;
}

.custom-points p {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid rgba(82, 132, 255, 0.62);
}

.custom-points strong {
  display: block;
  color: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(90, 142, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 22, 42, 0.7);
}

.pricing-title,
.price-card {
  padding: 24px;
  border-radius: 8px;
}

.price-card {
  border: 1px solid rgba(90, 142, 255, 0.16);
  background: rgba(4, 14, 31, 0.72);
}

.price-card.featured {
  border-color: rgba(109, 92, 255, 0.78);
  box-shadow: 0 0 30px rgba(83, 94, 255, 0.26);
}

.price-card span {
  display: block;
  color: #dfe9ff;
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.price-card small {
  color: #9cb0cc;
  font-size: 15px;
}

.price-card p {
  min-height: 46px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.price-card a {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(80, 124, 220, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 900;
}

.price-card.featured a {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 0 24px rgba(64, 112, 255, 0.34);
}

.help-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.help-card {
  padding: 24px;
  border: 1px solid rgba(90, 142, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 22, 42, 0.72);
}

.help-card strong,
.help-card code {
  display: block;
  color: #fff;
  font-weight: 900;
}

.help-card code {
  margin-top: 10px;
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
}

.site-footer {
  margin-top: 36px;
  padding: 48px 0 24px;
  border-top: 1px solid rgba(90, 142, 255, 0.14);
  background: rgba(2, 7, 17, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
  gap: 36px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand p {
  max-width: 260px;
  color: var(--muted);
}

.footer-subscribe {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.footer-subscribe input {
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(90, 142, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 20, 38, 0.82);
  color: #fff;
}

.footer-subscribe button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  cursor: pointer;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(90, 142, 255, 0.14);
  color: #687b99;
  text-align: center;
  font-size: 13px;
}

.tool-hero {
  padding: 72px 0 38px;
  background: radial-gradient(circle at 70% 10%, rgba(76, 100, 255, 0.2), transparent 36%);
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: #8fb4ff;
  font-weight: 900;
}

.single-tool-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
}

.single-tool-icon svg {
  width: 36px;
  height: 36px;
}

.tool-hero h1 {
  font-size: 46px;
}

.tool-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.tool-badges span {
  padding: 8px 12px;
  border: 1px solid rgba(90, 142, 255, 0.2);
  border-radius: 8px;
  background: rgba(9, 24, 45, 0.72);
  color: #cde0ff;
  font-size: 13px;
  font-weight: 900;
}

.download-panel,
.doc-card,
.bottom-download {
  border: 1px solid rgba(90, 142, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 22, 42, 0.78);
  box-shadow: 0 0 40px rgba(49, 114, 255, 0.1);
}

.download-panel {
  position: sticky;
  top: 96px;
  padding: 26px;
}

.download-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.download-panel p,
.download-panel small {
  color: var(--muted);
}

.download-button {
  width: 100%;
  margin: 12px 0;
}

.notice {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(255, 179, 37, 0.38);
  border-radius: 8px;
  background: rgba(255, 179, 37, 0.1);
  color: #ffd58a;
}

.tool-content-grid {
  display: grid;
  gap: 22px;
}

.doc-card {
  padding: 30px;
}

.entry-content {
  color: #c7d6eb;
}

.entry-content p:first-child {
  margin-top: 0;
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 52px;
  padding: 14px 16px 14px 64px;
  border: 1px solid rgba(90, 142, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.44);
  color: #d8e5f6;
  counter-increment: steps;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  font-weight: 900;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.feature-list div {
  display: flex;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(90, 142, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.44);
  color: #d8e5f6;
}

.feature-list span {
  color: var(--green);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-list details {
  border: 1px solid rgba(90, 142, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 10, 23, 0.44);
  color: #d8e5f6;
}

.faq-list summary {
  cursor: pointer;
  padding: 16px;
  color: #fff;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.bottom-download {
  margin-bottom: 54px;
  padding: 34px;
  text-align: center;
}

.archive-hero {
  padding-top: 72px;
}

.archive-list {
  display: grid;
  gap: 20px;
  padding: 64px 0;
}

.content-card h1 {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .primary-menu {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .tool-hero-grid,
  .custom-panel,
  .pricing-grid,
  .help-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    max-width: 760px;
  }

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

  .download-panel {
    position: static;
  }
}

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

  .hero {
    padding-top: 46px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero h1,
  .tool-hero h1 {
    font-size: 36px;
  }

  .hero-stats,
  .autoflow-market-grid,
  .feature-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    display: none;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    padding: 20px;
  }

  .feature-grid div {
    grid-template-columns: 44px 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-panel,
  .pricing-grid {
    padding: 22px;
  }

  .custom-panel ul {
    grid-template-columns: 1fr;
  }

  .custom-visual {
    display: none;
  }

  .tool-card {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .header-actions,
  .hero-actions,
  .tool-badges {
    width: 100%;
  }

  .header-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .hero h1,
  .tool-hero h1 {
    font-size: 31px;
  }

  .doc-card,
  .bottom-download {
    padding: 22px;
  }
}

/* Reference-fidelity layer: AutoFlow marketplace homepage, v3. */
:root {
  --max: 1332px;
  --header-height: 66px;
}

[hidden] {
  display: none !important;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background:
    radial-gradient(circle at 48% 10%, rgba(26, 91, 210, 0.18), transparent 30%),
    radial-gradient(circle at 86% 29%, rgba(75, 52, 205, 0.13), transparent 26%),
    linear-gradient(180deg, #020814 0%, #020b18 46%, #020713 100%);
  font-size: 15px;
}

body::before {
  opacity: 0.42;
  background-size: 54px 54px;
}

.site-header {
  min-height: var(--header-height);
  border-bottom-color: rgba(67, 111, 204, 0.08);
  background: rgba(2, 8, 20, 0.88);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(2, 8, 20, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.header-inner {
  min-height: var(--header-height);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
}

.brand {
  gap: 7px;
  font-size: 15px;
}

.brand-mark {
  width: 27px;
  height: 27px;
  color: #7258ff;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(75, 93, 255, 0.7));
}

.primary-menu {
  gap: clamp(14px, 1.6vw, 25px);
  font-size: 12px;
}

.primary-menu a {
  padding: 22px 0;
}

.primary-menu li:first-child a::after {
  transform: scaleX(1);
}

.header-actions {
  gap: 12px;
}

.header-search {
  width: 194px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(93, 142, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 18, 37, 0.64);
  color: #71839e;
  font-size: 11px;
}

.header-search:hover,
.header-search:focus-visible {
  border-color: rgba(87, 137, 255, 0.48);
  color: #c9d8f0;
}

.login-link {
  font-size: 12px;
}

.button-small {
  min-height: 34px;
  padding: 0 17px;
  font-size: 12px;
}

.menu-toggle {
  display: none;
}

.hero {
  padding: 38px 0 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(570px, 1.08fr);
  gap: 48px;
}

.eyebrow {
  min-height: 26px;
  margin-bottom: 19px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
}

.hero h1 {
  max-width: none;
  font-size: clamp(40px, 3.65vw, 52px);
  line-height: 1.14;
  white-space: nowrap;
}

.hero-copy > p {
  max-width: 560px;
  margin: 18px 0 23px;
  color: #9eaec4;
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  gap: 14px;
}

.hero-actions .button {
  min-height: 42px;
  padding: 0 28px;
  border-radius: 7px;
  font-size: 13px;
}

.hero-actions .button small {
  position: absolute;
  right: -10px;
  top: -9px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #6f40ff;
  color: #fff;
  font-size: 8px;
  line-height: 1.5;
}

.hero-stats {
  gap: 14px;
  margin-top: 31px;
}

.hero-stats div {
  position: relative;
  padding-left: 26px;
}

.hero-stats .stat-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(35, 105, 238, 0.15);
  color: #4c91ff;
  font-size: 9px;
}

.hero-stats strong {
  font-size: 17px;
}

.hero-stats div > span:last-child {
  margin-top: 1px;
  font-size: 11px;
}

.hero-dashboard {
  min-height: 360px;
  padding: 0;
  border-radius: 17px;
  overflow: visible;
  transform: perspective(1300px) rotateY(-0.6deg);
}

.hero-dashboard::before {
  border-radius: inherit;
  overflow: hidden;
}

.dashboard-top {
  height: 43px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(81, 126, 214, 0.12);
  font-size: 10px;
}

.dashboard-user {
  font-size: 9px;
}

.brand-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 9px;
}

.dashboard-layout {
  grid-template-columns: 92px 1fr;
  gap: 0;
  min-height: 316px;
}

.dashboard-side {
  gap: 3px;
  padding: 10px 10px;
  border-right: 1px solid rgba(81, 126, 214, 0.1);
}

.dashboard-side span {
  height: 31px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #7e90ae;
  font-size: 9px;
}

.dashboard-main {
  padding: 13px 14px 16px;
}

.dashboard-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dashboard-title small {
  font-size: 9px;
}

.dashboard-title strong {
  font-size: 12px;
}

.dashboard-title button {
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(95, 142, 255, 0.35);
  border-radius: 6px;
  background: linear-gradient(135deg, #6a49ff, #277cff);
  color: #fff;
  font-size: 8px;
}

.metric-row {
  gap: 9px;
}

.metric-row div {
  min-width: 0;
  padding: 9px 11px 7px;
  border-radius: 7px;
}

.metric-row span,
.metric-row em {
  font-size: 8px;
}

.metric-row strong {
  margin-top: 2px;
  font-size: 18px;
}

.metric-row strong small {
  color: inherit;
  font-size: 10px;
}

.dashboard-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(142px, 0.78fr);
  gap: 9px;
  margin-top: 9px;
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f85a6;
  font-size: 8px;
}

.panel-label strong {
  color: #dbe7fa;
}

.chart-panel {
  height: 138px;
  display: block;
  margin: 0;
  padding: 11px 11px 6px;
  border-radius: 7px;
}

.chart-panel svg {
  width: 100%;
  height: 100px;
  margin-top: 5px;
  overflow: visible;
}

.chart-panel .panel-label span {
  width: auto;
  height: auto;
  flex: none;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.chart-grid-line {
  fill: none;
  stroke: rgba(105, 139, 196, 0.12);
  stroke-width: 1;
}

.chart-fill {
  fill: url(#af-chart-fill);
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: #287cff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(38, 128, 255, 0.7));
}

.task-list {
  display: block;
  min-width: 0;
  height: 138px;
  padding: 11px;
  border: 1px solid rgba(80, 124, 220, 0.18);
  border-radius: 7px;
  background: rgba(3, 12, 27, 0.36);
}

.task-list .panel-label {
  padding: 0 0 6px;
  border: 0;
  background: transparent;
}

.task-list p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 5px 0;
  color: #b8c8df;
  font-size: 8px;
}

.task-list p span {
  width: auto;
  height: auto;
  color: #4b83ff;
  background: transparent;
  box-shadow: none;
}

.task-list p b {
  margin-left: auto;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(35, 213, 156, 0.15);
  color: #45d7aa;
  font-size: 7px;
}

.task-list p b.running {
  background: rgba(89, 92, 255, 0.18);
  color: #8e8cff;
}

.task-list p b.failed {
  background: rgba(255, 93, 114, 0.15);
  color: #ff8292;
}

.neon-platform {
  left: 8%;
  right: 5%;
  bottom: -48px;
  height: 66px;
  border-color: #297cff;
  background: radial-gradient(ellipse at center, rgba(37, 120, 255, 0.2), transparent 68%);
  box-shadow: 0 0 22px rgba(46, 111, 255, 0.92), inset 0 0 22px rgba(44, 236, 255, 0.5);
}

.neon-platform::before,
.neon-platform::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 10px -48px -18px;
  border-bottom: 1px solid rgba(47, 110, 255, 0.25);
}

.neon-platform::after {
  inset: 18px -86px -34px;
  opacity: 0.45;
}

.feature-strip {
  position: relative;
  z-index: 3;
  padding: 28px 0 14px;
}

.feature-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 22px 31px;
}

.feature-grid div {
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  padding: 0 20px;
  border-right: 1px solid rgba(77, 116, 185, 0.1);
}

.feature-grid div:first-child {
  padding-left: 0;
}

.feature-grid div:last-child {
  padding-right: 0;
  border-right: 0;
}

.feature-grid span.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.feature-grid span.purple { color: #7d67ff; background: rgba(111, 77, 255, 0.17); }
.feature-grid span.blue { color: #35a2ff; background: rgba(47, 128, 255, 0.17); }
.feature-grid span.green { color: #28d8ad; background: rgba(28, 208, 155, 0.15); }
.feature-grid span.amber { color: #ffb52e; background: rgba(255, 173, 31, 0.15); }
.feature-grid span.orange { color: #ff6b3d; background: rgba(255, 95, 56, 0.15); }

.feature-grid svg {
  width: 20px;
  height: 20px;
}

.feature-grid strong {
  font-size: 13px;
}

.feature-grid p {
  margin-top: 0;
  font-size: 10px;
  line-height: 1.6;
}

.section {
  padding: 22px 0;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2,
.custom-panel h2,
.pricing-title h2 {
  font-size: 23px;
}

.section-head p,
.pricing-title p,
.custom-panel p {
  margin-top: 4px;
  font-size: 11px;
}

.section-link {
  font-size: 11px;
}

.market-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -3px 0 16px;
  padding: 10px;
  border: 1px solid rgba(89, 137, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 19, 37, 0.72);
}

.market-controls:target {
  display: flex;
}

.market-search {
  width: min(360px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(89, 137, 255, 0.2);
  border-radius: 7px;
  background: rgba(2, 10, 23, 0.66);
  color: #7890b0;
}

.market-search input {
  width: 100%;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
}

.market-filters {
  display: flex;
  gap: 6px;
}

.market-filters button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(89, 137, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #91a5c2;
  cursor: pointer;
  font-size: 10px;
}

.market-filters button.active {
  border-color: rgba(87, 120, 255, 0.62);
  background: linear-gradient(135deg, rgba(106, 61, 255, 0.6), rgba(47, 125, 255, 0.55));
  color: #fff;
}

.autoflow-market-grid {
  gap: 12px;
}

.tool-card {
  min-height: 158px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 14px;
  padding: 20px;
  border-color: rgba(67, 111, 206, 0.24);
}

.tool-icon {
  width: 52px;
  height: 52px;
  align-self: start;
}

.tool-icon svg {
  width: 26px;
  height: 26px;
}

.tool-card-body {
  min-width: 0;
}

.tool-card h3 {
  margin: -1px 0 1px;
  font-size: 16px;
}

.tool-category {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(87, 101, 255, 0.14);
  color: #8fa2dc;
  font-size: 9px;
}

.tool-card p {
  min-height: 0;
  margin-top: 7px;
  color: #8799b4;
  font-size: 10px;
  line-height: 1.55;
}

.tool-card-foot {
  grid-column: 1 / -1;
  margin-top: 13px;
  padding-top: 0;
  font-size: 10px;
}

.tool-downloads::before {
  content: "♙ ";
  color: #7b8faa;
}

.tool-button {
  min-width: 56px;
  min-height: 25px;
  border-radius: 6px;
  font-size: 10px;
}

.market-empty {
  margin: 14px 0 0;
  padding: 18px;
  border: 1px solid rgba(89, 137, 255, 0.18);
  border-radius: 8px;
  color: #9aacbf;
  text-align: center;
}

.market-more {
  margin-top: 12px;
  text-align: center;
}

.market-more a {
  min-width: 176px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(73, 123, 231, 0.28);
  border-radius: 7px;
  background: rgba(32, 83, 176, 0.26);
  color: #cfddf6;
  font-size: 10px;
}

.custom-panel {
  grid-template-columns: 1.16fr 1fr 0.83fr;
  gap: 22px;
  min-height: 144px;
  padding: 25px 34px;
}

.custom-panel h2 span {
  border-radius: 999px;
  font-size: 9px;
}

.custom-copy > p {
  font-size: 11px;
}

.custom-panel ul {
  gap: 5px 14px;
  margin: 12px 0 14px;
  font-size: 9px;
}

.custom-panel .button {
  min-height: 32px;
  padding: 0 15px;
  font-size: 10px;
}

.custom-visual {
  min-height: 116px;
}

.custom-visual > span {
  left: 9% !important;
  right: 8%;
  top: 56% !important;
  width: auto;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, #307fff, #6653ff, transparent);
  box-shadow: 0 0 18px rgba(48, 127, 255, 0.68);
  transform: rotate(-9deg);
}

.custom-node {
  position: absolute;
  width: 64px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 132, 255, 0.48);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(35, 103, 231, 0.78), rgba(22, 39, 91, 0.86));
  color: #dce9ff;
  box-shadow: 0 0 24px rgba(42, 104, 255, 0.32);
  font-size: 9px;
  transform: skewY(-8deg);
}

.custom-node.node-a { left: 5%; top: 44%; background: linear-gradient(145deg, #356cff, #244c9d); }
.custom-node.node-b { left: 34%; top: 19%; }
.custom-node.node-c { left: 58%; top: 55%; background: linear-gradient(145deg, #6652ff, #303985); }
.custom-node.node-d { right: 2%; top: 27%; }

.custom-points {
  gap: 12px;
}

.custom-points p {
  position: relative;
  padding-left: 16px;
  border: 0;
  font-size: 9px;
}

.custom-points i {
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 5px;
  border: 1px solid #5c78ff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(92, 120, 255, 0.8);
}

.custom-points strong {
  font-size: 11px;
}

.pricing-grid {
  position: relative;
  grid-template-columns: 1.32fr repeat(3, 0.72fr) 0.9fr;
  gap: 12px;
  min-height: 126px;
  padding: 16px 22px;
}

.pricing-title,
.price-card {
  padding: 14px 18px;
}

.price-card {
  position: relative;
}

.price-card > em {
  position: absolute;
  right: 7px;
  top: 7px;
  padding: 1px 5px;
  border: 1px solid rgba(195, 68, 255, 0.7);
  border-radius: 999px;
  color: #f593ff;
  font-size: 7px;
  font-style: normal;
}

.price-card span {
  font-size: 11px;
}

.price-card strong {
  margin-top: 5px;
  font-size: 25px;
}

.price-card small {
  font-size: 9px;
}

.price-card p {
  min-height: 16px;
  margin: 7px 0 9px;
  font-size: 9px;
}

.price-card a {
  min-height: 25px;
  border-radius: 6px;
  font-size: 9px;
}

.pricing-art {
  position: relative;
  min-height: 92px;
  overflow: hidden;
}

.pricing-art span {
  position: absolute;
  width: 52px;
  height: 32px;
  border: 1px solid rgba(77, 132, 255, 0.38);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(31, 88, 201, 0.74), rgba(21, 38, 82, 0.62));
  box-shadow: 0 0 20px rgba(42, 104, 255, 0.3);
  transform: skewY(-17deg);
}

.pricing-art span:nth-child(1) { left: 2%; top: 34px; }
.pricing-art span:nth-child(2) { left: 34%; top: 7px; }
.pricing-art span:nth-child(3) { right: 3%; top: 25px; }
.pricing-art span:nth-child(4) { left: 43%; bottom: 2px; background: linear-gradient(145deg, #386dff, #372d87); }
.pricing-art span:nth-child(5) { left: 15%; bottom: -13px; opacity: 0.5; }

.site-footer {
  margin-top: 10px;
  padding: 28px 0 16px;
}

.footer-grid {
  grid-template-columns: 1.35fr repeat(4, 0.68fr) 1.45fr;
  gap: 25px;
}

.footer-grid h3 {
  margin-bottom: 9px;
  font-size: 11px;
}

.footer-grid a {
  margin: 5px 0;
  font-size: 9px;
}

.footer-brand p,
.newsletter p {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 9px;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(89, 137, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #9bacc4;
}

.footer-subscribe {
  grid-template-columns: 1fr 32px;
  gap: 6px;
}

.footer-subscribe input {
  min-height: 32px;
  padding: 0 10px;
  font-size: 9px;
}

.footer-subscribe button {
  border-radius: 6px;
  font-size: 12px;
}

.form-message {
  margin-top: 6px !important;
}

.form-message.success { color: #43d5a6; }
.form-message.error { color: #ff7c8d; }

.footer-bottom {
  margin-top: 17px;
  padding-top: 12px;
  font-size: 9px;
}

@media (max-width: 1280px) {
  .header-search { display: none; }
  .hero h1 { font-size: 43px; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); gap: 34px; }
}

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; padding: 0; }
  .primary-menu { gap: 13px; font-size: 11px; }
  .hero-grid,
  .custom-panel,
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-dashboard { width: min(760px, 100%); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .feature-grid div:nth-child(3) { border-right: 0; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, .8fr); }
  .newsletter { grid-column: span 2; }
  .pricing-art { display: none; }
}

@media (max-width: 820px) {
  body.menu-open { overflow: hidden; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle {
    width: 38px;
    height: 34px;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 1px solid rgba(89, 137, 255, 0.24);
    border-radius: 7px;
    background: rgba(7, 21, 42, 0.84);
  }
  .menu-toggle span { width: 17px; height: 1px; background: #cbd8ec; }
  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 7px);
    display: none;
    padding: 12px;
    border: 1px solid rgba(89, 137, 255, 0.24);
    border-radius: 10px;
    background: rgba(4, 14, 30, 0.98);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  }
  .site-nav.is-open { display: block; }
  .primary-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; overflow: visible; }
  .primary-menu a { display: flex; padding: 10px; border-radius: 6px; }
  .primary-menu a:hover { background: rgba(71, 106, 209, 0.12); }
  .header-actions { display: none; }
  .hero h1 { white-space: normal; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid div { border-right: 0; }
  .autoflow-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand,
  .newsletter { grid-column: span 2; }
  .market-controls:target { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, var(--max)); }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: 34px; }
  .hero-copy > p { font-size: 13px; }
  .hero-actions .button { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-dashboard { min-height: 334px; border-radius: 12px; transform: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-main { padding: 10px; }
  .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .metric-row div { padding: 7px 6px; }
  .metric-row strong { font-size: 13px; }
  .metric-row span,
  .metric-row em { font-size: 7px; }
  .dashboard-detail-row { grid-template-columns: 1fr; }
  .task-list { display: none; }
  .chart-panel { height: 126px; }
  .feature-grid { grid-template-columns: 1fr; padding: 20px; }
  .feature-grid div { padding: 0; }
  .autoflow-market-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 150px; }
  .custom-panel { padding: 23px; }
  .custom-visual { display: block; min-height: 130px; }
  .pricing-grid { padding: 14px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .market-filters { flex-wrap: wrap; }
}
