/* ============================================================
   Power Manager Pro — marketing site
   Brand: charcoal + amber/orange (matches the PMP application)
   ============================================================ */

:root {
  --bg:        #0d0f12;
  --bg-2:      #14171c;
  --bg-3:      #1b1f26;
  --panel:     #161a20;
  --line:      #262b33;
  --line-soft: #20242b;

  --text:      #e8eaed;
  --text-dim:  #a4abb6;
  --text-mute: #767d89;

  --accent:    #f5a623;   /* PMP amber */
  --accent-2:  #ff8c1a;   /* deeper orange */
  --accent-ink:#1a1205;

  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --shadow:    0 18px 50px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 0 0 1px rgba(245,166,35,.12), 0 20px 60px -22px rgba(245,166,35,.18);

  --font:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(245,166,35,.55);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(245,166,35,.7); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,15,18,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-pro { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 1.7rem; }
.main-nav a { font-size: .92rem; color: var(--text-dim); font-weight: 500; transition: color .15s; }
.main-nav a:hover { color: var(--text); }
.main-nav .nav-cta {
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: .6rem 1.15rem; border-radius: 999px; font-weight: 600;
}
.main-nav .nav-cta:hover { color: var(--accent-ink); box-shadow: 0 8px 22px -10px rgba(245,166,35,.6); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 600px; pointer-events: none;
  background:
    radial-gradient(620px 320px at 78% 18%, rgba(245,166,35,.20), transparent 70%),
    radial-gradient(520px 300px at 12% 0%, rgba(255,140,26,.10), transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; margin-bottom: 1.3rem;
  background: rgba(245,166,35,.06);
}
.hero h1 { margin-bottom: 1.2rem; }
.lede { font-size: 1.12rem; color: var(--text-dim); max-width: 46ch; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.9rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hero-trust li { font-size: .88rem; color: var(--text-mute); position: relative; padding-left: 1.4rem; }
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 50%, var(--accent) 0 35%, transparent 38%);
  box-shadow: 0 0 0 1px rgba(245,166,35,.3) inset;
}

.hero-visual { position: relative; }
.hero-shot {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow-glow);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .4s ease;
}
.hero-shot:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.hero-shot img { width: 100%; }
.hero-badge {
  position: absolute; bottom: -14px; left: 18px;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text-dim);
  font-size: .8rem; padding: .55rem .9rem; border-radius: 999px; box-shadow: var(--shadow);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #46d27a; box-shadow: 0 0 0 3px rgba(70,210,122,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.7rem 1.2rem; text-align: center; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .86rem; color: var(--text-mute); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.section-head h2 { margin-bottom: .9rem; }
.section-sub { color: var(--text-dim); font-size: 1.05rem; }

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.col-copy h2 { margin-bottom: 1.1rem; }
.col-copy p { color: var(--text-dim); margin-bottom: 1rem; }
.framed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); font-weight: 600; margin-top: .4rem; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(245,166,35,.4); box-shadow: var(--shadow); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(245,166,35,.10); color: var(--accent); border: 1px solid rgba(245,166,35,.22);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--text-dim); font-size: .95rem; }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.why-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.why-step { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: .6rem; }
.why-card h3 { margin-bottom: .45rem; }
.why-card p { color: var(--text-dim); font-size: .9rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.shot { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; transition: transform .2s, border-color .2s, box-shadow .2s; }
.shot:hover { transform: translateY(-4px); border-color: rgba(245,166,35,.4); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.shot figcaption { padding: .85rem 1rem; font-size: .85rem; color: var(--text-mute); }
.shot figcaption strong { color: var(--text); }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.video-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(.6); }
.video-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -8px rgba(245,166,35,.6); transition: transform .2s;
}
.video-thumb .play:hover { transform: scale(1.08); }
.video-meta { padding: 1.2rem 1.3rem 1.4rem; }
.video-tag { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.video-meta h3 { margin: .35rem 0 .4rem; }
.video-meta p { color: var(--text-dim); font-size: .92rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.step-num {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1rem;
  font-family: var(--font-display); font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { color: var(--text-dim); font-size: .88rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #1a1407, #14171c 60%); border-block: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 85% 50%, rgba(245,166,35,.18), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.4rem, 5vw, 3.4rem) 0; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .4rem; }
.cta-inner p { color: var(--text-dim); }

/* ---------- Form ---------- */
.form-layout { align-items: start; }
.check-list { list-style: none; margin-top: 1.2rem; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--text-dim); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  color: var(--accent); background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.25);
}
.install-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .45rem; color: var(--text-dim); }
.field .req { color: var(--accent); }
.field .opt { color: var(--text-mute); font-weight: 400; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: .8rem .9rem; font-family: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.field textarea { resize: vertical; }
.form-note { margin-top: .9rem; font-size: .9rem; min-height: 1.2em; }
.form-note.ok { color: #46d27a; }
.form-note.err { color: #ff6b6b; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; font-family: var(--font-display);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-dim); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: rgba(245,166,35,.4); transform: translateY(-2px); }
.contact-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: rgba(245,166,35,.10); border: 1px solid rgba(245,166,35,.22); flex-shrink: 0; }
.contact-card span small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin-bottom: .15rem; }
.contact-card > span:last-child { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { color: var(--text-mute); font-size: .92rem; margin: .8rem 0 1.2rem; max-width: 30ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-bottom: .9rem; }
.footer-nav a { display: block; color: var(--text-dim); font-size: .92rem; padding: .25rem 0; transition: color .15s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--line-soft); color: var(--text-mute); font-size: .85rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,8,.9); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 4vh 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 18px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-shot { transform: none; }
  .two-col, .contact-inner, .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .feature-grid, .gallery-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .5rem 20px 1.2rem;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav .nav-cta { text-align: center; margin-top: .8rem; }
  .nav-toggle { display: flex; }
  .feature-grid, .gallery-grid, .video-grid, .why-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; transition: none !important; }
}
