/* MaxPPC public landing page — standalone (no Bootstrap). */
:root {
  --ink: #0b1220; --ink-2: #334155; --muted: #64748b; --line: #e5e9f0;
  --bg: #ffffff; --bg-2: #f5f7fb; --navy: #0b1220; --navy-2: #111a2e;
  --amber: #f59e0b; --orange: #f97316; --blue: #2563eb; --violet: #7c3aed;
  --green: #16a34a; --sky: #0284c7; --red: #dc2626;
  --r: 16px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px rgba(15,23,42,.08);
  --shadow-lg: 0 30px 80px rgba(2,6,23,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border-radius: 10px;
  padding: .7em 1.2em; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { padding: .45em .9em; font-size: .9rem; }
.btn.lg { padding: .9em 1.5em; font-size: 1.02rem; }
.btn.full { width: 100%; }
.btn.primary { background: linear-gradient(135deg, var(--amber), var(--orange)); color: #1b1203; box-shadow: 0 8px 24px rgba(249,115,22,.35); }
.btn.primary:hover { box-shadow: 0 12px 30px rgba(249,115,22,.45); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.ghost-light { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.06); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(229,233,240,.8); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { display: block; font-size: 1.08rem; letter-spacing: -.01em; }
.brand small { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: -3px; }
.logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange)); box-shadow: 0 6px 16px rgba(249,115,22,.35); }
.logo.sm { width: 30px; height: 30px; }
.links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(249,115,22,.22), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(37,99,235,.25), transparent 60%),
              linear-gradient(180deg, #0b1220 0%, #0f1a33 100%); padding: 72px 0 40px; }
.glow { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e2e8f0; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; margin: 18px 0; color: #fff; }
.grad { background: linear-gradient(90deg, #fbbf24, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: #cbd5e1; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #cbd5e1; font-size: .95rem; }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points svg { color: #4ade80; width: 18px; height: 18px; }
.hero-shot { position: relative; padding-bottom: 60px; }
.hero-shot .main { transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.hero-shot .float { position: absolute; width: 58%; right: -6%; bottom: 0; }

.browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.browser .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #e9edf3; border-bottom: 1px solid #dde3ea; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.browser .bar i:nth-child(2) { background: #fbbf24; } .browser .bar i:nth-child(3) { background: #4ade80; }
.browser .bar span { margin: 0 auto; font-size: .72rem; color: #64748b; background: #fff; padding: 2px 14px; border-radius: 6px; transform: translateX(-20px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; height: auto; cursor: zoom-in; }
.section .browser { border-color: var(--line); box-shadow: 0 20px 60px rgba(15,23,42,.14); }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.stats div { padding: 22px 8px 6px; text-align: center; }
.stats b { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stats span { color: #94a3b8; font-size: .88rem; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.head p { font-size: 1.08rem; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.kicker.light { color: #fbbf24; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two.reverse { grid-template-columns: 1.2fr 1fr; }

.compare { display: grid; gap: 16px; }
.cmp { border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.cmp h4 { font-size: 1rem; margin-bottom: 10px; }
.cmp ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--ink-2); }
.cmp li { padding-left: 26px; position: relative; }
.cmp.bad li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.cmp.good { border-color: rgba(22,163,74,.35); background: linear-gradient(180deg, #f0fdf4, #fff); }
.cmp.good li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.grid { display: grid; gap: 20px; }
.feats { grid-template-columns: repeat(3, 1fr); }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,23,42,.1); }
.feat p { margin: 0; font-size: .95rem; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.ic svg { width: 22px; height: 22px; }
.ic.amber { background: #fff4e0; color: #d97706; } .ic.blue { background: #e8efff; color: var(--blue); }
.ic.violet { background: #f1eaff; color: var(--violet); } .ic.green { background: #e7f7ec; color: var(--green); }
.ic.sky { background: #e3f3fc; color: var(--sky); } .ic.red { background: #fdecec; color: var(--red); }

/* gallery */
.gallery .tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.gallery .tabs button { font: inherit; font-weight: 600; font-size: .92rem; padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.gallery .tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.browser.big { max-width: 1080px; margin: 0 auto; }
.slides img { display: none; } .slides img.on { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.captions { max-width: 760px; margin: 22px auto 0; text-align: center; min-height: 4.8em; }
.captions p { display: none; } .captions p.on { display: block; }
.captions b { color: var(--ink); }
.checks { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 40px auto 0; gap: 12px 24px; }
.checks div { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--ink-2); }
.checks svg { color: var(--green); }

.list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.list li { padding-left: 30px; position: relative; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: #e7f7ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.list b { color: var(--ink); }

/* how */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; box-shadow: var(--shadow); }
.step p { margin: 0; font-size: .93rem; }
.step .num { position: absolute; top: 16px; right: 18px; font-weight: 800; color: #cbd5e1; font-size: 1.4rem; }
.arrow { align-self: center; color: #94a3b8; font-size: 1.6rem; }
.devices { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 40px; }
.devices span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.devices b { font-weight: 600; font-size: .9rem; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* contact */
.contact { color: #fff; background: radial-gradient(900px 500px at 100% 0%, rgba(249,115,22,.18), transparent 60%), linear-gradient(180deg, #0f1a33, #0b1220); }
.contact h2 { color: #fff; }
.contact p { color: #cbd5e1; }
.contact .two { align-items: start; }
.cards { display: grid; gap: 12px; margin-top: 26px; }
.ccard { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); transition: background .15s; }
.ccard:hover { background: rgba(255,255,255,.1); }
.ccard .ic { margin: 0; background: rgba(251,191,36,.14); color: #fbbf24; }
.ccard small { display: block; color: #94a3b8; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ccard b { display: block; font-weight: 600; }
.ccard em { display: block; font-style: normal; color: #cbd5e1; font-size: .92rem; }
.form { position: relative; background: #fff; color: var(--ink); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); }
.form h3 { font-size: 1.3rem; margin-bottom: 18px; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .7em .85em; border: 1px solid #d6dce5; border-radius: 10px; background: #fbfcfe; transition: border .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,.15); background: #fff; }
.form textarea { resize: vertical; min-height: 120px; }
.form .invalid { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 12px 0 0; font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.contact .status.ok { color: var(--green); } .contact .status.err { color: var(--red); }
.contact .fine { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }

/* footer */
.foot { background: #070c17; color: #94a3b8; padding: 34px 0; font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; justify-content: space-between; }
.foot .brand b { color: #fff; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a:hover { color: #fff; }
.foot p { margin: 0; color: #64748b; width: 100%; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2,6,23,.88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* responsive */
@media (max-width: 1024px) {
  .hero-in, .two, .two.reverse { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { max-width: 760px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr 1fr; } .arrow { display: none; }
  .checks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .links.open { display: flex; } .links a { padding: 10px 0; }
  .burger { display: block; } .nav-cta .btn.ghost { display: none; }
  .section { padding: 64px 0; }
  .hero { padding-top: 44px; }
  .hero-shot .main { transform: none; }
  .hero-shot .float { right: -2%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feats, .flow, .checks, .row2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; background: rgba(148,163,184,.16); padding: .1em .35em; border-radius: 5px; }
.nav .btn, .nav .brand b { white-space: nowrap; }
@media (max-width: 420px) { .nav .brand b { font-size: .95rem; } .nav .brand small { font-size: .6rem; } .nav-in { gap: 12px; } }

/* client references */
.grid.refs { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ref { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ref::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--amber), var(--orange)); }
.ref-co { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.ref h3 { font-size: 1.25rem; margin-bottom: .3em; }
.ref-meta { font-weight: 600; color: var(--ink); margin-bottom: .5em; }
.ref p:last-child { margin: 0; }
.ref-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; margin-top: 28px; color: var(--muted); }
.ref-links a { font-weight: 600; color: var(--ink); border-bottom: 2px solid rgba(249,115,22,.4); }
.ref-links a:hover { border-color: var(--orange); }
@media (max-width: 760px) { .grid.refs { grid-template-columns: 1fr; } }

/* MaxEnergic products bar (shared by all product sites) */
.pbar { background: #05080f; color: #94a3b8; font-size: .8rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.pbar-in { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; min-height: 34px; padding: 4px 0; }
.pbar b { color: #e2e8f0; font-weight: 700; letter-spacing: .02em; margin-right: 4px; }
.pbar a { color: #94a3b8; padding: 2px 0; border-bottom: 2px solid transparent; }
.pbar a:hover { color: #fff; }
.pbar a.on { color: #fbbf24; border-color: #f97316; }
.foot-products { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 4px 0 10px; font-size: .88rem; }
.foot-products span { opacity: .7; }
.diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin: 0 auto 36px; max-width: 1000px; }
.diagram svg { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .pbar-in { font-size: .74rem; gap: 2px 12px; } }

.diagram svg { stroke: none; fill: none; }
.diagram svg text { stroke: none; }
