/* ═══════════════════════════════════════════════════════════════════
   ActProof Energy — Landing Page Styles
   Design: dark theme, emerald brand, Inter font, geometric
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────────── */

:root {
  --bg:             #0f172a;
  --bg-elevated:    #1e293b;
  --bg-surface:     #334155;
  --bg-deep:        #0b1120;
  --border:         #475569;
  --border-subtle:  rgba(71,85,105,0.4);

  --text:           #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --accent:         #10b981;
  --accent-hover:   #059669;
  --accent-glow:    rgba(16,185,129,0.12);
  --accent-glow-strong: rgba(16,185,129,0.25);

  --cyan:           #06b6d4;
  --amber:          #f59e0b;
  --pink:           #ec4899;

  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --shadow:         0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg:      0 8px 48px rgba(0,0,0,0.4);
  --shadow-glow:    0 0 40px rgba(16,185,129,0.08);

  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:      1200px;
}

/* ── Reset ──────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ── Typography ─────────────────────────────────────────────────── */

.t-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.t-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.t-body-lg {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.t-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

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

.t-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* ── Layout ─────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-deep);
}

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16,185,129,0.4);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--text-muted);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ── S1: Navbar ─────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar--scrolled {
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.navbar__logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar__link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.navbar__link:hover { color: var(--text); }

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ── S2: Hero ───────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(1px);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.95) 85%);
}

.hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero__title {
  margin-bottom: 20px;
}

.hero__subtitle {
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Live Tiles ─────────────────────────────────────────────────── */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.tile {
  background: rgba(30,41,59,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.tile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tile__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.tile__detail {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tile--loading .tile__value {
  width: 120px;
  height: 32px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── S3: Scale ──────────────────────────────────────────────────── */

.scale__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
}

.scale__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.scale__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.scale__card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-deep);
}

.scale__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.scale__card:hover .scale__card-img img {
  transform: scale(1.05);
}

.scale__card-body {
  padding: 20px 24px 24px;
}

.scale__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.scale__card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.scale__card-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.scale__tag {
  padding: 4px 10px;
  background: var(--bg-surface);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.scale__arrow {
  display: none;
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ── Scale: featured card (Wynajmujący — spans full width) ──────── */

.scale__card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(16,185,129,0.05) 100%);
  box-shadow: 0 0 40px rgba(16,185,129,0.08);
}

.scale__card--featured .scale__card-img {
  aspect-ratio: auto;
  height: 100%;
}

.scale__card-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 10px;
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

/* ── S4: Showcase Carousel ──────────────────────────────────────── */

.showcase__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.showcase__track::-webkit-scrollbar { display: none; }

.showcase__slide {
  flex: 0 0 min(85vw, 800px);
  scroll-snap-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.showcase__slide:hover {
  box-shadow: var(--shadow-lg);
}

.showcase__img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase__slide:hover .showcase__img-wrap img {
  transform: scale(1.02);
}

.showcase__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 50%, var(--bg-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.showcase__caption {
  padding: 20px 24px;
}

.showcase__caption-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.showcase__caption-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.showcase__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.showcase__dot--active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ── S5: Features Grid ──────────────────────────────────────────── */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.feature__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.feature__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── S6: Paradigm ───────────────────────────────────────────────── */

.paradigm__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.paradigm__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.paradigm__row:hover {
  border-color: var(--accent);
}

.paradigm__not {
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 0;
  flex: 1;
  text-decoration: line-through;
  text-decoration-color: rgba(239,68,68,0.4);
}

.paradigm__arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.paradigm__yes {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 0;
  flex: 1;
}

/* ── S7: Trust Bar ──────────────────────────────────────────────── */

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.trust__item:hover {
  opacity: 1;
}

.trust__item svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
}

/* ── S8: CTA Section ────────────────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cta-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.cta-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, var(--accent-glow-strong) 0%, transparent 60%);
}

.cta-section__title {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section__desc {
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-section__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── S9: Footer ─────────────────────────────────────────────────── */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-size: 1rem;
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.footer__links a:hover { color: var(--text); }

.footer__credit {
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* ── Section header utility ─────────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header__label {
  margin-bottom: 12px;
}

.section-header__title {
  margin-bottom: 12px;
}

.section-header__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Scroll Reveal ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .scale__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .scale__card--featured {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .paradigm__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .navbar__links { display: none; }
  .navbar__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .navbar__hamburger { display: block; }

  .hero { padding: 100px 0 40px; min-height: auto; }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .trust { gap: 24px; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .tiles { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 300px; }
}

/* ── SVG chart in tile ──────────────────────────────────────────── */

.tile-chart {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.tile-chart polyline {
  transition: stroke var(--transition);
}
