/* PowerPlant marketing site — brand palette from the Flutter app */

:root {
  --bg: #0b0e14;
  --bg-elevated: #12161f;
  --surface: #1a2030;
  --border: #2a3344;
  --text: #e8edf5;
  --muted: #9aa3b5;
  --accent: #2ee6a6;
  --accent-dim: #1aa87a;
  --solar: #f9a825;
  --grid: #42a5f5;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7ff0c8;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #04140f;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.nav a:hover {
  color: var(--text);
}

.lang-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(46, 230, 166, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 80%, rgba(249, 168, 37, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(66, 165, 245, 0.1), transparent 45%),
    linear-gradient(165deg, #070a10 0%, #0b0e14 40%, #101826 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(42, 51, 68, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 51, 68, 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-glow {
  position: absolute;
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  right: -8%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  transition: transform 0.4s var(--ease);
  z-index: -1;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
  width: 100%;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(46, 230, 166, 0.25);
  animation: brand-pulse 4.5s var(--ease) infinite;
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 18ch;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 38ch;
  font-size: 1.08rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #04140f;
}

.btn-primary:hover {
  background: #5aefbc;
  color: #04140f;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.hero-visual {
  justify-self: end;
  position: relative;
  width: min(100%, 340px);
}

/* Device bezel is baked into the PNG — no CSS phone chrome */
.screenshot {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
  animation: float-in 1.1s var(--ease) both;
}

/* —— Sections —— */
.section {
  padding: 5rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.section-lead {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 2.5rem;
}

/* Features — stacked bands, not card grid */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
}

.feature-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature:nth-child(2) .feature-icon {
  color: var(--solar);
}
.feature:nth-child(3) .feature-icon {
  color: #4dd0e1;
}
.feature:nth-child(4) .feature-icon {
  color: var(--grid);
}
.feature:nth-child(5) .feature-icon {
  color: #43a047;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

/* Pro section */
.section-pro {
  background:
    radial-gradient(
      80% 60% at 80% 0%,
      color-mix(in srgb, var(--accent) 12%, transparent),
      transparent 60%
    ),
    var(--bg);
}

.pro-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-top: 2rem;
}

.pro-column h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.pro-column-later h3 {
  color: var(--muted);
}

.pro-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pro-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  max-width: 42ch;
}

.pro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.pro-column-later .pro-list li::before {
  background: var(--border);
}

@media (max-width: 720px) {
  .pro-columns {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Screenshots gallery */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 1.25rem;
  /* auto + visible forces both axes to scroll; clip Y avoids a vertical bar */
  overflow-x: auto;
  overflow-y: clip;
  padding: 10rem 0.25rem;
  margin-block: -6.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.shot {
  scroll-snap-align: start;
  overflow: visible;
  position: relative;
  z-index: 0;
}

.shot .screenshot {
  animation: none;
  transition: transform 0.35s var(--ease);
  transform-origin: center center;
}

.shot:hover {
  z-index: 10;
}

@media (hover: hover) and (min-width: 861px) {
  .shot:hover .screenshot {
    transform: scale(1.5);
  }
}

.shot figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Download / QR */
.download-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(46, 230, 166, 0.08), transparent 60%),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.qr-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 1.75rem;
  justify-content: start;
}

.qr-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.qr-slot.is-disabled {
  cursor: default;
  pointer-events: none;
}

.qr-frame {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  padding: 0.85rem;
  background: #e8edf5;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-slot.is-disabled .qr-frame img {
  opacity: 0.55;
  filter: grayscale(0.2);
}

.qr-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #04140f;
  background: color-mix(in srgb, #e8edf5 55%, transparent);
  backdrop-filter: blur(1px);
}

.qr-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.qr-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 3rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-brand strong {
  font-family: var(--font-display);
  display: block;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Privacy page */
.privacy-page {
  padding: 3rem 1.25rem 5rem;
}

.privacy-inner {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 1rem 0 0.35rem;
}

.privacy-updated {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.privacy-inner h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.privacy-inner p,
.privacy-inner li {
  color: var(--muted);
}

.privacy-pre {
  white-space: pre-line;
}

.privacy-inner ul {
  padding-left: 1.2rem;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: var(--accent);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes brand-pulse {
  0%,
  100% {
    box-shadow: 0 0 32px rgba(46, 230, 166, 0.2);
  }
  50% {
    box-shadow: 0 0 48px rgba(46, 230, 166, 0.38);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .screenshot,
  .hero-brand img {
    animation: none;
  }
  .shot .screenshot {
    transition: none;
  }
  .shot:hover .screenshot {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  html,
  body {
    overflow-x: clip;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
    text-align: left;
  }

  .hero-visual {
    justify-self: center;
    order: -1;
    width: min(100%, 260px);
  }

  .hero-brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .hero-brand-name {
    font-size: clamp(1.5rem, 8vw, 2.1rem);
  }

  .hero h1 {
    max-width: none;
  }

  .nav a:not(.lang-toggle) {
    display: none;
  }

  .section {
    padding: 3rem 1rem;
  }

  .shots {
    padding: 1rem 0.25rem 1.5rem;
    margin-block: 0;
    grid-auto-columns: minmax(160px, 70vw);
  }

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

@media (max-width: 480px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
