/* PowerVault AI landing page — dark energy-technology theme.
   No frameworks, no external assets; served from /static/landing.css. */

:root {
  color-scheme: dark;
  --bg: #050b16;
  --bg-2: #081527;
  --panel: rgba(13, 29, 52, 0.72);
  --line: rgba(143, 210, 255, 0.16);
  --line-strong: rgba(143, 210, 255, 0.3);
  --text: #f2f8ff;
  --muted: #a7bcd4;
  --blue: #63d4ff;
  --cyan: #46e7db;
  --green: #7dffb2;
  --warn: #ffd27a;
  --header-h: 4.5rem;
  --radius: 20px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(60rem 32rem at 15% -5%, rgba(23, 118, 197, 0.28), transparent 60%),
    radial-gradient(48rem 26rem at 90% 5%, rgba(35, 245, 187, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 55%, #040910);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, p, dl, dd { margin: 0; }

/* --- Accessible skip link: off-screen until keyboard focus ---------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
  background: var(--green);
  color: #04121f;
  font-weight: 800;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: var(--shadow);
}

/* Anchored sections must clear the sticky header when jumped to. */
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

a:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Layout shell ---------------------------------------------------------- */
.site-shell {
  width: min(1160px, 100% - 2.5rem);
  margin: 0 auto;
}

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.85rem 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.94), rgba(5, 11, 22, 0.72));
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.65rem 0.55rem 1.1rem;
  background: rgba(7, 17, 32, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #06111f;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }

/* --- Buttons ----------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.button:hover { transform: translateY(-2px); }

.button.primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #03101a;
  box-shadow: 0 10px 30px rgba(70, 231, 219, 0.22);
}
.button.primary:hover { box-shadow: 0 14px 38px rgba(70, 231, 219, 0.32); }

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}
.button.secondary:hover { border-color: var(--line-strong); }

/* --- Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  /* Keep the animated glow from widening the page (horizontal overflow). */
  overflow-x: clip;
}

.hero-glow {
  position: absolute;
  inset: 15% 0;
  background: linear-gradient(90deg, transparent, rgba(99, 212, 255, 0.12), transparent);
  filter: blur(42px);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

.hero-copy { position: relative; min-width: 0; }

.badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.badge {
  border: 1px solid rgba(125, 255, 178, 0.3);
  border-radius: 999px;
  background: rgba(125, 255, 178, 0.08);
  padding: 0.45rem 0.85rem;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 1.1rem 0 1.2rem;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }

.hero-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #c7d7e8;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.reassurance { margin-top: 1.1rem; color: var(--muted); font-size: 0.95rem; }

/* --- Energy Move preview card ------------------------------------------------- */
.preview-wrap {
  position: relative;
  padding: 1rem;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(150deg, rgba(99, 212, 255, 0.16), rgba(125, 255, 178, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 34, 60, 0.92), rgba(8, 18, 34, 0.88));
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.preview-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #06111f;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.preview-id { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.preview-sub { color: var(--muted); font-size: 0.8rem; }

.preview-time {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}

.preview-title { font-size: 1.35rem; margin: 1.1rem 0 0.9rem; }

.preview-metrics { display: grid; gap: 0.6rem; }

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-row dt { color: var(--muted); font-size: 0.92rem; }
.metric-row dd { font-weight: 800; white-space: nowrap; }
.value-cheap { color: var(--cyan); }
.value-clean { color: var(--green); }
.metric-row.warn { border-color: rgba(255, 210, 122, 0.25); }
.value-warn { color: var(--warn); }

.preview-recommendation {
  margin-top: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 212, 255, 0.14), rgba(125, 255, 178, 0.1));
  border: 1px solid var(--line-strong);
}
.preview-recommendation p { margin-top: 0.35rem; font-weight: 700; }

.panel-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.preview-saving {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(125, 255, 178, 0.08);
  border: 1px solid rgba(125, 255, 178, 0.22);
}
.preview-saving strong { color: var(--green); font-size: 1.2rem; white-space: nowrap; }

.preview-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* --- Sections ------------------------------------------------------------------ */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-heading { max-width: 46rem; margin-bottom: 2.2rem; }
.section-heading .eyebrow { margin-bottom: 0.7rem; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin-top: 0.8rem; }

.card-grid { display: grid; gap: 1.2rem; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.benefit-card, .step-card, .feature-grid article, .offer-card, .plan-card, #faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 34, 60, 0.72), rgba(7, 17, 32, 0.62));
  box-shadow: var(--shadow);
}

.benefit-card, .step-card { padding: 1.5rem; }
.benefit-card p, .step-card p, .feature-grid p { color: var(--muted); }

.icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: rgba(99, 212, 255, 0.12);
  border: 1px solid var(--line);
  font-size: 1.25rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: rgba(99, 212, 255, 0.14);
  color: var(--green);
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.feature-grid article { padding: 1.3rem 1.4rem; }

/* --- Pricing / early access ------------------------------------------------------ */
.offer-card {
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}
.offer-lede { color: var(--muted); margin: 1rem auto 0; max-width: 34rem; }

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0;
}
.check-list li {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(125, 255, 178, 0.07);
  color: #ddffeb;
  text-align: left;
}
.check-list li::before { content: "✓ "; color: var(--green); font-weight: 800; }

.fine-print { color: var(--muted); font-size: 0.9rem; margin-top: 1.2rem; }

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 46rem;
}
.plan-card { padding: 1.7rem; display: flex; flex-direction: column; align-items: flex-start; }
.plan-name { color: var(--green); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; }
.plan-price { font-size: 2.3rem; line-height: 1.1; margin-top: 0.5rem; }
.plan-cycle { color: var(--muted); margin: 0.3rem 0 1.3rem; }

/* --- Trust strip ------------------------------------------------------------------- */
.trust-strip {
  display: grid;
  gap: 0.6rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

/* --- FAQ ------------------------------------------------------------------------------ */
#faq details { padding: 1rem 1.3rem; margin: 0.8rem 0; }
#faq summary { cursor: pointer; font-weight: 700; }
#faq details p { margin-top: 0.7rem; color: var(--muted); }

/* --- Final CTA -------------------------------------------------------------------------- */
.final-cta {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  margin: 2.5rem 0 4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(circle at 50% 0, rgba(125, 255, 178, 0.14), rgba(13, 29, 52, 0.7));
}
.final-cta p { color: var(--muted); margin: 0.8rem 0 1.6rem; }

/* --- Footer -------------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-brand p { color: var(--muted); margin-top: 0.35rem; max-width: 24rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
}
.footer-links a:hover { color: var(--text); }

.footer-legal { flex-basis: 100%; color: var(--muted); font-size: 0.88rem; }

/* --- Legal pages (privacy / terms) ----------------------------------------------------------- */
.legal-page { max-width: 46rem; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-page h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page .updated { font-size: 0.9rem; }

/* --- Animation ---------------------------------------------------------------------------------- */
@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: translateX(-2%); }
  50% { opacity: 0.9; transform: translateX(2%); }
}

/* --- Responsive breakpoints ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .preview-wrap { max-width: 30rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .card-grid.three, .feature-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 560px) {
  .site-shell { width: min(1160px, 100% - 1.5rem); }
  .actions .button { width: 100%; }
  .nav-cta { padding: 0.6rem 1rem; min-height: 2.5rem; font-size: 0.92rem; }
  .check-list { grid-template-columns: 1fr; }
  .preview-wrap { padding: 0.55rem; }
  .preview-card { padding: 1.1rem; }
  .metric-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .metric-row dd { white-space: normal; }
  .preview-saving { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
