/* ── Variables ── */
:root {
  --bg:         #0a0c0f;
  --bg2:        #0f1218;
  --bg3:        #151a22;
  --border:     rgba(255,255,255,0.07);
  --text:       #e8edf3;
  --text-muted: #6b7a8d;
  --accent:     #3b82f6;       /* blue — matches the app */
  --accent2:    #ff5c35;       /* effort orange */
  --hr-color:   #ff4f6b;       /* HR red-pink */

  /* power zones */
  --z1: #4a9eff22;
  --z2: #4a9eff;
  --z3: #fbbf24;
  --z4: #f97316;
  --z5: #ef4444;
  --z6: #a855f7;
  --z7: #ec4899;

  --radius:  6px;
  --radius-lg: 12px;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ── Reusable ── */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0c0f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text); }

.btn-nav {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.btn-nav:hover { background: var(--accent); color: #0a0c0f; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(10,12,15,0.85);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.logo-watt { color: var(--text); }
.logo-log  { color: var(--text-muted); }
.logo-dot  { color: var(--accent); font-size: 10px; margin-left: 2px; line-height: 1; }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

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

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.eyebrow-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 6px rgba(59,130,246,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(59,130,246,0.25);
}

.hero-sub {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-platform-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  padding-right: 40px;
}
.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 40px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
}
.stat-unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ── Hero Chart ── */
.hero-chart {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0;
}
.chart-svg {
  width: 100%;
  height: 160px;
  display: block;
}
.watt-line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 2.5s ease-out 0.5s forwards;
}
.hr-line {
  stroke: var(--hr-color);
  stroke-width: 1.5;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 2.5s ease-out 0.9s forwards;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
.chart-labels {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  justify-content: flex-end;
}
.chart-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.watt-label { color: var(--accent); }
.hr-label   { color: var(--hr-color); }

/* ── Zone Bar ── */
.zone-bar {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.zone-ticker {
  display: flex;
  width: max-content;
  animation: ticker 20s linear infinite;
}
.zone {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.z1 { color: #4a9eff; }
.z2 { color: #60a5fa; }
.z3 { color: #fbbf24; }
.z4 { color: #f97316; }
.z5 { color: #ef4444; }
.z6 { color: #a855f7; }
.z7 { color: #ec4899; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Features ── */
.features {
  padding: 120px 0;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.feature-card {
  background: var(--bg2);
  padding: 36px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: rgba(59,130,246,0.2);
}
.card-wide {
  grid-column: span 2;
}
.card-dark {
  background: var(--bg3);
}
.card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg {
  width: 100%;
  height: 100%;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.wip-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Interval demo bars */
.card-demo.intervals {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  margin-top: 24px;
}
.interval {
  flex: 1;
  height: var(--h);
  background: var(--c);
  border-radius: 2px;
  opacity: 0.8;
}

/* TSS bars */
.tss-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 50px;
  margin-top: 24px;
}
.tss-week {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.tss-week span {
  width: 100%;
  height: var(--v);
  background: rgba(74,158,255,0.4);
  border-radius: 2px;
  margin-top: auto;
  transition: background 0.2s;
}
.tss-week.active span { background: var(--accent); opacity: 0.8; }
.tss-week.rest span   { background: rgba(255,255,255,0.1); }
.tss-week small {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── How It Works ── */
.how {
  padding: 120px 0;
  background: var(--bg2);
}
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  padding: 0 24px;
}
.step-line {
  width: 60px;
  flex-shrink: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--border), rgba(59,130,246,0.3), var(--border));
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: rgba(59,130,246,0.12);
  line-height: 1;
  margin-bottom: 16px;
}
.step-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ── Metrics Strip ── */
.metrics-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
  padding: 32px 24px;
}
.metrics-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.metric-val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
}
.metric-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ── Early Access ── */
.early-access {
  padding: 120px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.ea-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ea-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.ea-copy p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.ea-quote {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin: 20px 0 24px;
  line-height: 1.6;
}

.ea-promises {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ea-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.ea-promises li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.ea-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input-row {
  display: flex;
  gap: 8px;
}
.input-row input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.input-row input:focus {
  border-color: rgba(59,130,246,0.5);
}
.input-row input::placeholder { color: var(--text-muted); }
.ea-fine {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.ea-success {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  min-height: 20px;
}

/* ── Logo text ── */
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.logo-dot-pro {
  color: #f59e0b;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Article sections ── */
.article-section {
  padding: 100px 0;
  background: var(--bg);
}
.article-section--dark {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Persona grid ── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.persona-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 36px;
  transition: border-color 0.2s;
}
.persona-card:hover {
  border-color: rgba(59,130,246,0.2);
}
.persona-card--accent {
  background: var(--bg3);
}
.persona-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 20px;
}
.persona-icon svg {
  width: 100%;
  height: 100%;
}
.persona-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.persona-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.persona-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.persona-points li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-left: 14px;
  position: relative;
}
.persona-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Explainer list ── */
.explainer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto 64px;
}
.explainer-item {
  display: flex;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.explainer-item:first-child {
  border-top: 1px solid var(--border);
}
.explainer-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: rgba(59,130,246,0.55);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  padding-top: 4px;
}
.explainer-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.explainer-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ── App link banner ── */
.app-link-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--bg3);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  max-width: 800px;
  margin: 0 auto;
}
.app-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-link-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.app-link-text span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Beta counter ── */
.beta-counter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.beta-spots {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}
.beta-spots-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── EA form wrap ── */
.ea-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ea-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.ea-divider::before,
.ea-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-app-direct {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color 0.15s, border-color 0.15s;
}
.btn-app-direct:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}
.input-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ── Made in Poland ── */
.made-in-pl {
  color: rgba(107,122,141,0.7);
}


/* ── Footer ── */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(107,122,141,0.5);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-wide { grid-column: span 2; }

  .steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .step-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--border), rgba(59,130,246,0.3), var(--border));
    margin-left: 24px;
  }
  .step { padding: 0; }

  .ea-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nav-links { display: none; }

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

  .app-link-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .card-wide { grid-column: span 1; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .stat-div { display: none; }

  .metrics-inner {
    justify-content: center;
    gap: 32px;
  }

  .input-row {
    flex-direction: column;
  }

  .explainer-item {
    flex-direction: column;
    gap: 8px;
  }
  .explainer-num {
    font-size: 2rem;
    width: auto;
  }
}
