:root {
  --bg: #ffffff;
  --bg-2: #fbf7fa;
  --ink: #15131a;
  --ink-2: #4b4753;
  --muted: #7b7684;
  --line: #ececf1;
  --accent: #e0218a;
  --accent-2: #c01a76;
  --grad: linear-gradient(135deg, #ff5aa8 0%, #e0218a 55%, #a8136a 100%);
  --green: #18a558;
  --amber: #c2870a;
  --red: #e23b3b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { display: block; }
.lucide { width: 24px; height: 24px; stroke-width: 2; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1080px; margin: 0 auto;
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.btn-login {
  background: var(--ink); color: #fff; padding: 9px 20px; border-radius: 10px;
  font-weight: 650; font-size: 0.92rem; transition: transform 0.12s, opacity 0.15s;
}
.btn-login:active { transform: scale(0.96); }
.btn-login:hover { opacity: 0.88; }

/* HERO */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 30px 20px 50px;
  display: grid; gap: 36px; align-items: center;
}
.badge { display: inline-block; background: var(--bg-2); border: 1px solid var(--line); color: var(--accent-2); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 850; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text p { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 26px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff; padding: 14px 28px; border-radius: 12px;
  font-weight: 750; font-size: 1.02rem; box-shadow: 0 10px 30px rgba(224, 33, 138, 0.35);
  transition: transform 0.12s, box-shadow 0.2s;
}
.btn-primary span { transition: transform 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(224, 33, 138, 0.45); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary.big { padding: 16px 32px; font-size: 1.08rem; }
.btn-primary.light { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.btn-ghost { color: var(--ink-2); font-weight: 650; padding: 14px 8px; }
.btn-ghost:hover { color: var(--accent-2); }
.hero-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* PHONE MOCKUP */
.phone { justify-self: center; width: 280px; max-width: 100%; }
.phone-screen {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: 16px; box-shadow: 0 30px 70px rgba(20, 19, 26, 0.16);
  display: flex; flex-direction: column; gap: 12px;
}
.m-top { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.m-top img { width: 30px; height: 30px; border-radius: 8px; }
.m-name { font-weight: 700; font-size: 0.9rem; }
.m-sub { font-size: 0.7rem; color: var(--muted); }
.m-greet { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.m-hi { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.m-day { font-size: 0.74rem; color: var(--muted); }
.m-lucky { background: rgba(224, 33, 138, 0.1); color: var(--accent-2); border: 1px solid rgba(224, 33, 138, 0.25); font-size: 0.66rem; font-weight: 700; padding: 4px 9px; border-radius: 20px; white-space: nowrap; }
.m-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.m-card-h { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.82rem; margin-bottom: 8px; }
.m-card-h span { color: var(--muted); font-weight: 500; }
.m-lesson { display: flex; gap: 10px; font-size: 0.82rem; padding: 4px 0; }
.m-lesson b { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; }
.m-ev { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; padding: 4px 0; }
.m-ev i { margin-left: auto; color: var(--muted); font-style: normal; font-size: 0.72rem; }
.m-ev .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* SECTIONS */
section h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); text-align: center; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 820; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 520px; }

/* FEATURES */
.features { max-width: 1080px; margin: 0 auto; padding: 50px 20px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform 0.15s, box-shadow 0.2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20, 19, 26, 0.08); }
.f-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--c); margin-bottom: 14px; }
.f-icon .lucide { width: 24px; height: 24px; stroke: #fff; }
.feature h3 { margin: 0 0 6px; font-size: 1.12rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }

/* SHOWCASE kalkulatora */
.calc-showcase { max-width: 1080px; margin: 0 auto; padding: 50px 20px; }
.cs-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(20, 19, 26, 0.1); max-width: 760px; margin: 0 auto;
}
.cs-left { padding: 26px; background: var(--bg); }
.cs-right { padding: 26px; background: linear-gradient(160deg, #fff, #fdf2f8); border-top: 1px solid var(--line); }
.cs-label { display: block; font-size: 0.76rem; color: var(--muted); font-weight: 700; margin: 14px 0 7px; }
.cs-label:first-child { margin-top: 0; }
.cs-select { display: flex; align-items: center; justify-content: space-between; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; font-weight: 600; }
.cs-select .lucide { width: 18px; height: 18px; color: var(--muted); }
.cs-seg { display: flex; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 4px; }
.cs-seg span { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.cs-seg span.on { background: #fff; color: var(--accent-2); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.cs-pills { display: flex; gap: 8px; }
.cs-pills b { flex: 1; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 0; font-size: 1.1rem; font-weight: 800; color: var(--ink-2); }
.cs-pills b.on { background: var(--grad); color: #fff; border-color: transparent; }
.cs-current { margin-top: 16px; font-size: 0.9rem; color: var(--ink-2); }
.cs-current b { color: var(--ink); }
.cs-ai-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
.cs-need { font-size: 0.95rem; margin-bottom: 12px; }
.cs-need b { color: var(--accent-2); }
.cs-sub { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.cs-scn { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 0.9rem; margin-bottom: 8px; }
.cs-scn span { color: var(--muted); }
.cs-improve { display: flex; gap: 8px; align-items: flex-start; background: rgba(224, 33, 138, 0.08); border-radius: 11px; padding: 11px 13px; font-size: 0.88rem; line-height: 1.45; margin-top: 4px; }
.cs-improve .lucide { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; }
.cs-improve b { color: var(--accent-2); }
.cs-cta { text-align: center; margin-top: 26px; }
@media (min-width: 720px) {
  .cs-card { grid-template-columns: 1fr 1fr; }
  .cs-right { border-top: none; border-left: 1px solid var(--line); }
}

/* DEMO */
.demo { background: var(--bg-2); padding: 50px 20px; }
.demo > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.demo-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1080px; margin: 0 auto; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.demo-card.ai { border-color: rgba(224, 33, 138, 0.3); }
.dc-h { font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ai-tag { background: var(--grad); color: #fff; font-size: 0.62rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.dc-grades { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dc-grades .g { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 800; }
.g.g-hi { color: var(--green); border-color: rgba(24, 165, 88, 0.4); }
.g.g-mid { color: var(--amber); border-color: rgba(194, 135, 10, 0.4); }
.dc-avg { font-size: 0.92rem; color: var(--ink-2); }
.dc-freq { display: flex; align-items: center; gap: 18px; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #eee 0); display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-size: 1.2rem; font-weight: 800; }
.dc-freq-info { font-size: 0.92rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.dc-ai { font-size: 0.95rem; color: var(--ink-2); line-height: 1.6; }
.dc-ai b { color: var(--accent-2); }

/* CTA */
.cta { padding: 60px 20px; }
.cta-box { max-width: 720px; margin: 0 auto; text-align: center; background: var(--grad); border-radius: 26px; padding: 44px 28px; color: #fff; box-shadow: 0 24px 60px rgba(224, 33, 138, 0.4); }
.cta-box h2 { color: #fff; }
.cta-box p { opacity: 0.92; margin: 0 0 24px; }

/* FOOTER */
.footer { max-width: 1080px; margin: 0 auto; padding: 36px 20px 50px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.f-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.f-brand img { width: 26px; height: 26px; border-radius: 7px; }
.f-links a { color: var(--accent-2); font-weight: 600; }
.f-note { font-size: 0.78rem; margin-top: 12px; max-width: 540px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* Reveal animacje */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Desktop */
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 50px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .phone { width: 300px; }
}
