:root {
  --bg: #0f1014;
  --bg-panel: #181920;
  --bg-card: #1e212b;
  --border: #2d3142;
  --text: #e8eaf0;
  --muted: #9aa3b2;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, .35);
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  display: flex; flex-direction: column;
}
body > header { order: -100; }
body > .hero { order: -90; }
body > footer { order: 100; }
body > section { width: 100%; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

/* Header */
header { background: rgba(15,16,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.nav-links a { margin-left: 22px; font-size: .92rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 46px; text-align: center; background: radial-gradient(ellipse at top, rgba(59,130,246,.12), transparent 55%); }
.hero h1 { font-size: 2.6rem; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 720px; margin: 0 auto 28px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* Optional wide background image (Admin -> Store -> General -> Hero background).
   Image sits full width behind the content under a dark low-opacity overlay. */
.hero.has-bg { position: relative; background-size: cover; background-position: center; overflow: hidden; }
.hero.has-bg::before { content: ''; position: absolute; inset: 0; background: var(--bg); opacity: .84; }
.hero.has-bg > .container { position: relative; z-index: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 8px; border: 0; font-weight: 600; cursor: pointer; transition: .15s; font-size: .98rem; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 18px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--accent-glow); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-success { background: var(--success); color: #062c16; }

/* Sections */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 1.8rem; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: .15s; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-card .icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Pricing table (free vs pro) */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 44px; }
.compare-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; position: relative; margin-top: 12px; }
.compare-card.popular { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.compare-card h4 { margin: 0 0 6px; }
.compare-card .price { font-size: 1.7rem; font-weight: 800; }
.compare-card .price span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.compare-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.compare-card li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.compare-card li:last-child { border: 0; }
.check { color: var(--success); margin-right: 8px; }
.cross { color: var(--danger); margin-right: 8px; }
.badge { position: absolute; top: -12px; left: 14px; background: var(--accent); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .1em; padding: 4px 12px; border-radius: 20px; }
.badge.alt { background: #0ea5e9; }
.badge.gold { background: #d4a017; }
.compare-tag { margin: 8px 0 0; font-size: .82rem; color: var(--muted); font-style: italic; }
.compare-card.popular li:nth-child(-n+8) { color: var(--text); }

/* Product cards / cart */
.products { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.product-list { display: grid; gap: 18px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; gap: 18px; }
.product-card img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--bg-panel); }
.product-info { flex: 1; }
.product-info h3 { margin: 0 0 4px; }
.product-info p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.product-card.disabled { opacity: .55; }
.product-card.disabled img { filter: grayscale(.8); }
.suite-tag { display: inline-block; background: rgba(212, 160, 23, .15); color: #e9b84c; border: 1px solid rgba(212, 160, 23, .4); font-size: .64rem; font-weight: 800; letter-spacing: .12em; padding: 3px 10px; border-radius: 14px; margin-bottom: 6px; }
.tool-tag { display: inline-block; background: rgba(14, 165, 233, .12); color: #38bdf8; border: 1px solid rgba(14, 165, 233, .35); font-size: .64rem; font-weight: 800; letter-spacing: .12em; padding: 3px 10px; border-radius: 14px; margin-bottom: 6px; }
.locked-note { background: var(--bg-panel); border: 1px dashed var(--border); border-radius: 8px; padding: 12px 14px; color: var(--muted); font-size: .88rem; }

/* Inside the Engine deep-dive cards */
.tech-section { background: var(--bg-panel); }
.tech-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tech-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px 22px; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.tech-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.tech-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 28px var(--accent-glow); }
.tech-card h3 { margin: 0 0 10px; font-size: 1.08rem; letter-spacing: .02em; }
.tech-num { font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 12px; background: linear-gradient(180deg, var(--accent), transparent 130%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .85; }
.tech-pitch { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.tech-pitch b { color: var(--text); }
.tech-pitch code { background: rgba(255, 255, 255, .06); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: .82em; color: var(--success); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { background: rgba(14, 165, 233, .1); border: 1px solid rgba(14, 165, 233, .3); color: #7dd3fc; font-size: .66rem; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 12px; }
.tech-card.tech-cta { border-color: var(--accent); background: linear-gradient(160deg, var(--bg-card), var(--bg-panel)); display: flex; flex-direction: column; justify-content: center; }
.tech-card.tech-cta::before { background: linear-gradient(90deg, var(--success), transparent); }
.tier-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tier-tabs button { background: var(--bg-panel); border: 1px solid var(--border); color: var(--muted); padding: 7px 16px; border-radius: 18px; cursor: pointer; font-size: .82rem; transition: background .15s, color .15s, border-color .15s; }
.tier-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tier-pitches { margin-bottom: 14px; }
.tier-pitches p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.price-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 16px; padding: 14px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; }
.price-group { display: flex; align-items: baseline; gap: 10px; }
.price-row .current { font-size: 1.4rem; font-weight: 800; }
.price-row .old { text-decoration: line-through; color: var(--danger); font-size: .9rem; }
.price-row .save { color: var(--success); font-size: .85rem; }
.plan-group { display: flex; align-items: center; gap: 10px; }
.plan-group label { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.plan-select { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 9px 14px; border-radius: 18px; font-size: .88rem; cursor: pointer; transition: border-color .15s; min-width: 130px; }
.plan-select:hover { border-color: var(--accent); }
.cart-action { display: flex; justify-content: flex-end; }
.add-cart { padding: 11px 26px; font-size: .95rem; border-radius: 20px; }

/* Cart sticky */
.cart { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; position: sticky; top: 90px; }
.cart h3 { margin: 0 0 14px; }
.cart-empty { color: var(--muted); font-size: .9rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-item-info { flex: 1; }
.cart-item-info b { font-size: .92rem; }
.cart-item-info small { display: block; color: var(--muted); }
.cart-item-qty { display: flex; align-items: center; gap: 6px; margin: 0 10px; }
.cart-item-qty button { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin: 14px 0; }
.checkout-btn { width: 100%; justify-content: center; }
.checkout-form { margin-top: 14px; }
.checkout-form input { width: 100%; padding: 10px; margin-bottom: 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.provider-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.provider-btns button { width: 100%; justify-content: center; }

/* Tools section: wide banners (suite + last tool) + vertical tool grid */
.tools-section { background: var(--bg-panel); }
.tools-col { min-width: 0; }
/* Wide banner: big image left spanning both rows, text top-right,
   price/duration/button bottom-right (below the text). Cards 1 and 8. */
.suite-banner { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 34px; align-items: start; background: linear-gradient(150deg, var(--bg-card), var(--bg-panel)); border: 1px solid rgba(212, 160, 23, .45); border-radius: 16px; padding: 26px; margin-bottom: 24px; box-shadow: 0 0 30px rgba(212, 160, 23, .07); }
.suite-banner > img { grid-row: 1 / span 2; grid-column: 1; width: 300px; height: 350px; align-self: center; object-fit: cover; border-radius: 20px; background: var(--bg-panel); box-shadow: 0 6px 24px rgba(212, 160, 23, .18); }
.suite-banner .product-info { grid-column: 2; padding-top: 4px; }
.suite-banner .product-info h3 { font-size: 1.4rem; margin-bottom: 8px; }
.suite-banner .product-info p { font-size: .95rem; line-height: 1.6; margin-bottom: 12px; }
.suite-banner .tier-tabs { margin-bottom: 8px; }
.suite-banner .tier-pitches { margin-bottom: 4px; }
.suite-banner .tier-pitches p { font-size: .85rem; line-height: 1.55; }
.suite-banner .suite-buy { grid-column: 2; margin-top: 10px; border-top: 1px solid var(--border); padding-top: 16px; }
.tool-banner { border-color: rgba(59, 130, 246, .45); box-shadow: 0 0 30px rgba(59, 130, 246, .07); margin-bottom: 0; }
.tool-banner > img { box-shadow: 0 6px 24px rgba(59, 130, 246, .18); }
.tool-banner .tool-tag { margin-bottom: 10px; }
.suite-buy { display: flex; flex-direction: column; gap: 10px; }
.price-row.stack { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 0; }
.price-row.stack .price-group { justify-content: center; }
.price-row.stack .plan-group { margin: 0 auto; }
.price-row.stack .plan-select { width: 170px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 20px; }
.tool-card { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 20px 18px; position: relative; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.tool-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .15s; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 26px var(--accent-glow); }
.tool-card:hover::after { opacity: 1; }
.tool-card img { width: 200px; height: 250px; margin: 0 auto 14px; object-fit: cover; border-radius: 24px; background: var(--bg-panel); box-shadow: 0 6px 22px var(--accent-glow); }
.tool-card .tool-tag { margin-bottom: 6px; }
.tool-card h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.tool-desc { color: var(--muted); font-size: .88rem; line-height: 1.5; margin: 0 0 10px; min-height: 4em; }
.tool-card .tier-tabs { justify-content: center; margin-bottom: 4px; }
.tool-card .tier-pitches p { font-size: .8rem; min-height: 5.4em; line-height: 1.5; margin: 0; }
.tool-card .price-row { background: transparent; border: 0; padding: 0 0 8px; }
.tool-card .plan-select { width: 100%; }
.tool-card .add-cart { width: 100%; border-radius: 22px; }
.suite-buy .cart-action { justify-content: stretch; }
.suite-buy .add-cart { width: 100%; border-radius: 22px; }
@media (max-width: 980px) { .suite-banner { grid-template-columns: 1fr; grid-template-rows: auto; } .suite-banner > img { grid-row: auto; grid-column: auto; width: 100%; height: 240px; min-height: 0; } .suite-banner .product-info, .suite-banner .suite-buy { grid-column: auto; } }

/* Changelog */
.changelog { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.changelog pre { white-space: pre-wrap; font-family: inherit; color: var(--muted); margin: 0; }

/* Stats strip */
.stats-strip { background: linear-gradient(90deg, rgba(59,130,246,.12), rgba(16,185,129,.08)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 0; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; text-align: center; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.stat.demand { border-left: 1px solid var(--border); padding-left: 22px; }
.stat-stars { color: #fbbf24; font-size: 1.15rem; letter-spacing: .12em; }
.stat-demand { font-weight: 800; font-size: .92rem; color: var(--text); margin-top: 4px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 36px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.review-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; flex: 1; }
.review-stars { color: #fbbf24; letter-spacing: .1em; font-size: .95rem; }
.review-who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); flex-shrink: 0; background: var(--bg-card); }
.review-who b { display: block; color: var(--text); font-size: .9rem; }
.review-who span { color: var(--muted); font-size: .78rem; }
.review-pages { overflow: hidden; }
.review-page { display: none; }
.review-page.is-active { display: block; }
.review-page.rev-anim { animation: revSlideIn .6s cubic-bezier(.45,0,.2,1); }
@keyframes revSlideIn {
  from { opacity: 0; transform: translateX(90px); }
  to   { opacity: 1; transform: translateX(0); }
}
.review-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: -6px 0 36px; }
.rev-btn { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 9px 22px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.rev-btn:hover { border-color: var(--accent, #38bdf8); color: var(--accent, #38bdf8); }
.rev-btn:disabled { opacity: .35; cursor: default; }
.rev-btn:disabled:hover { border-color: var(--border); color: var(--text); }
.rev-dots { display: flex; gap: 8px; }
.rev-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; transition: background .15s, transform .15s; }
.rev-dot.is-active { background: var(--accent, #38bdf8); transform: scale(1.25); }
.brands { text-align: center; }
.brands-title { color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.brands-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.brand-logo { color: var(--muted); opacity: .75; font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; filter: grayscale(1); transition: opacity .15s, color .15s; }
.brand-logo:hover { opacity: 1; color: var(--text); }

/* FAQ accordion */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 18px; font-weight: 600; font-size: .95rem; color: var(--text); user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow { color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-body { padding: 0 18px 16px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--accent); }

/* Contact page */
.contact-wrap { max-width: 560px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.contact-wrap label { display: block; color: var(--muted); font-size: .85rem; margin: 14px 0 6px; }
.contact-wrap label b { color: var(--danger); }
.contact-wrap input, .contact-wrap select, .contact-wrap textarea { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); font-size: .92rem; font-family: inherit; }
.contact-wrap textarea { min-height: 140px; resize: vertical; }
.contact-wrap input:focus, .contact-wrap select:focus, .contact-wrap textarea:focus { outline: none; border-color: var(--accent); }
.contact-note { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }

/* Clickable logo */
.brand-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-link:hover { opacity: .85; }

/* Video section */
.video-wrap { max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); background: var(--bg-card); }
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-wrap.placeholder { display: flex; align-items: center; justify-content: center; }
.video-ph { text-align: center; color: var(--muted); padding: 20px; }
.video-ph .play { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; background: rgba(59, 130, 246, .15); border: 1px solid var(--accent); color: var(--accent); font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }


/* Footer */
footer { border-top: 1px solid var(--border); padding: 30px 0; text-align: center; color: var(--muted); font-size: .9rem; margin-top: 30px; }

/* Messages */
.msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; display: none; }
.msg.show { display: block; }
.msg.error { background: rgba(239,68,68,.12); color: #ff9b9b; border: 1px solid rgba(239,68,68,.35); }
.msg.success { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.35); }

@media (max-width: 920px) {
  .products { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
