:root {
  --bg: #0b1220;
  --bg-2: #111a2e;
  --surface: #ffffff;
  --surface-alt: #f4f6fa;
  --text: #1a2233;
  --muted: #5b6577;
  --line: #e2e6ee;
  --accent: #14b8a6;
  --accent-dark: #0f8f82;
  --accent-soft: #e6f8f5;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 25, 50, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .6em; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block; padding: .85em 1.5em; border-radius: 10px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  font-size: 1rem; font-family: inherit; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent-dark); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-small { padding: .5em 1em; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, .92); backdrop-filter: blur(10px); color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .55em; font-size: 1.25rem; text-decoration: none; }
.logo strong { color: var(--accent); }
.logo-mark svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.menu { display: flex; align-items: center; gap: 1.8em; }
.menu a { text-decoration: none; font-weight: 500; opacity: .85; }
.menu a:hover { opacity: 1; }
.menu .btn { opacity: 1; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #16324a 0%, transparent 60%), var(--bg); color: #fff; padding: 90px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
.lead { font-size: 1.15rem; color: #c3cbd9; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-points { list-style: none; padding: 0; margin: 0; color: #c3cbd9; }
.hero-points li { padding-left: 1.6em; position: relative; margin: .35em 0; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.terminal { background: #0e1626; border: 1px solid #22304a; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #152036; font-size: .8rem; color: #7d8aa3; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4762; }
.terminal-bar i:nth-child(1) { background: #ef6b6b; }
.terminal-bar i:nth-child(2) { background: #f2c14e; }
.terminal-bar i:nth-child(3) { background: #4ecb71; }
.terminal-bar span { margin-left: 10px; }
.terminal pre { margin: 0; padding: 20px; font-family: var(--mono); font-size: .86rem; line-height: 1.75; color: #d6deeb; overflow-x: auto; }
.ok { color: #4ecb71; } .warn { color: #f2c14e; } .muted { color: #6b7891; }
.cursor { animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* Strip */
.strip { background: var(--bg-2); color: #fff; border-top: 1px solid #1d2a44; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; text-align: center; }
.strip strong { display: block; font-size: 1.2rem; color: var(--accent); }
.strip span { font-size: .9rem; color: #9aa6bd; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p:last-child { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.card li { margin: .25em 0; }
.card li::marker { color: var(--accent); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.special { margin-top: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: var(--bg); color: #fff; border-radius: var(--radius); padding: 40px; }
.special .eyebrow { color: var(--accent); }
.special p { color: #c3cbd9; margin: 0; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid #2c3b59; border-radius: 999px; padding: .35em .9em; font-size: .88rem; color: #d6deeb; }

/* Rodzina */
.family { background: linear-gradient(180deg, #fff8ef 0%, #fff 100%); }
.family .eyebrow { color: #d9771f; }
.family .icon { background: #fff0de; }
.family .icon svg { stroke: #d9771f; }
.family .card li::marker { color: #d9771f; }

.learn { margin-top: 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; background: #fff; border: 2px solid #ffd9ae; border-radius: var(--radius); padding: 40px; }
.learn h3 { font-size: 1.5rem; }
.learn-text > p { color: var(--muted); }
.learn-list { list-style: none; padding: 0; margin: 0 0 1em; }
.learn-list li { padding: .35em 0 .35em 1.7em; position: relative; }
.learn-list li::before { content: "★"; position: absolute; left: 0; color: #f2a93b; }
.learn-note { font-size: .92rem; background: #fff6ea; border-radius: 10px; padding: .8em 1em; margin: 0; }

.kid-window { background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -18px rgba(217, 119, 31, .45); overflow: hidden; border: 1px solid #f3dcc0; transform: rotate(1.5deg); }
.kid-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f7efe4; font-size: .8rem; color: #8a7a66; }
.kid-bar i { width: 11px; height: 11px; border-radius: 50%; }
.kid-bar i:nth-child(1) { background: #ef6b6b; } .kid-bar i:nth-child(2) { background: #f2c14e; } .kid-bar i:nth-child(3) { background: #4ecb71; }
.kid-bar span { margin-left: 10px; }
.kid-body { padding: 22px; background: linear-gradient(160deg, #fffaf2, #f1fbff); }
.kid-title { font-size: 1.25rem; font-weight: 800; color: #5a3fc0; display: flex; justify-content: space-between; align-items: baseline; }
.kid-title span { font-size: .8rem; font-weight: 600; color: #8a7a66; }
.kid-task { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 2px solid #ece4f8; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 1.05rem; font-weight: 600; }
.kid-task b { border-radius: 8px; padding: .15em .6em; min-width: 64px; text-align: center; }
.kid-ok { background: #e3f8e9; color: #1f9a4a; }
.kid-input { background: #f4f0fd; color: #5a3fc0; }
.kid-fact { background: #fff3d6; border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin: 14px 0; }
.kid-progress { height: 8px; background: #ece4f8; border-radius: 99px; overflow: hidden; }
.kid-progress i { display: block; height: 100%; background: linear-gradient(90deg, #f2a93b, #5a3fc0); }

.family-cta { margin-top: 32px; display: flex; gap: 30px; align-items: center; justify-content: space-between; background: #2b1d0e; color: #fff; border-radius: var(--radius); padding: 32px 40px; }
.family-cta p { color: #e3d4c2; margin: 0; max-width: 720px; }
.family-cta .btn { background: #f2a93b; border-color: #f2a93b; color: #2b1d0e; white-space: nowrap; }
.family-cta .btn:hover { background: #ffbe5c; border-color: #ffbe5c; }

/* Why */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.why-item { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.why-item .num { font-family: var(--mono); color: var(--accent); font-weight: 700; font-size: .95rem; }
.why-item h3 { margin-top: .4em; font-size: 1.2rem; }
.why-item p { color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding-top: 56px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 52px; right: -12px; height: 2px; background: var(--line); }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; }
.plan-main { background: var(--bg); color: #fff; border-color: var(--bg); transform: scale(1.03); box-shadow: var(--shadow); }
.plan-main .plan-sub, .plan-main li { color: #c3cbd9; }
.plan h3 { font-size: 1.3rem; margin-bottom: .2em; }
.plan-sub { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5em; flex: 1; }
.plan li { padding: .4em 0 .4em 1.6em; position: relative; border-bottom: 1px dashed var(--line); }
.plan-main li { border-color: #24324d; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-price { font-weight: 700; font-size: 1.1rem; }
.plan .btn { text-align: center; }
.badge { position: absolute; top: -13px; left: 32px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; padding: .3em .9em; border-radius: 999px; }

/* Tech */
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tech h4 { font-size: 1rem; color: var(--accent-dark); }
.tech p { margin: 0; color: var(--muted); font-size: .93rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; padding: 18px 40px 18px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-right: 40px; }

/* Contact */
.contact { background: var(--bg); color: #fff; }
.contact .eyebrow { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.contact-grid > div > p { color: #c3cbd9; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid #1f2b44; }
.contact-list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #7d8aa3; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact-list a:hover { color: var(--accent); }

.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-big { font-size: 1.1rem; padding: 1em 1.6em; }
.contact .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.contact .btn-ghost:hover { background: rgba(255,255,255,.08); }
.contact-list { margin: 0; }
.contact-list li { color: #c3cbd9; }

/* Footer */
.site-footer { background: #070c16; color: #9aa6bd; padding: 40px 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; align-items: center; }
.site-footer .logo { color: #fff; margin-bottom: .4em; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.4em; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.copy { text-align: right; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .special, .contact-grid, .learn { grid-template-columns: 1fr; }
  .family-cta { flex-direction: column; align-items: flex-start; }
  .hero { padding: 60px 0 70px; }
  .cards, .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-main { transform: none; }
  .tech, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .copy { text-align: left; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 10px 20px 20px; display: none; border-bottom: 1px solid #1d2a44;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid #1d2a44; }
  .menu .btn { margin-top: 12px; text-align: center; border-bottom: 2px solid var(--accent); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 68px 0; }
  .cards, .plans, .why, .tech, .steps { grid-template-columns: 1fr; }
  .learn, .family-cta { padding: 26px; }
  .special { padding: 28px; }
  .terminal pre { font-size: .76rem; }
}

/* Strona dla rodzin */
.hero-family { background: radial-gradient(900px 500px at 80% -10%, #4a2c10 0%, transparent 60%), #1c140c; padding: 80px 0 90px; }
.hero-family .eyebrow { color: #f2a93b; }
.hero-family .btn { background: #f2a93b; border-color: #f2a93b; color: #2b1d0e; }
.hero-family .btn:hover { background: #ffbe5c; border-color: #ffbe5c; }
.hero-family .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero-family-inner { max-width: 760px; }
.page-family .menu .btn { background: #f2a93b; border-color: #f2a93b; color: #2b1d0e; }
.page-family .logo strong { color: #f2a93b; }
.page-family .logo-mark svg { stroke: #f2a93b; }
.family-teaser { padding: 0 0 96px; background: none; }
.family-teaser .family-cta { margin-top: 0; }
.family-teaser .eyebrow { color: #f2a93b; }
.tech h4 a { text-decoration: none; }
.tech h4 a:hover { text-decoration: underline; }
.stats-section { background: #fff8ef; padding: 80px 0 0; }
.stats-section .eyebrow { color: #d9771f; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid #f3dcc0; border-radius: var(--radius); padding: 26px 28px; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; color: var(--text); letter-spacing: -.02em; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }
.stats-note { margin: 28px auto 0; max-width: 780px; text-align: center; color: var(--muted); }
.stats-section + .family { background: linear-gradient(180deg, #fff8ef 0%, #fff 100%); }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stats-section { padding-top: 60px; } }

/* Polityka prywatności */
.legal { padding-top: 64px; }
.legal h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p, .legal li { color: #3b4557; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin: .35em 0; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent-dark); }
.legal-date { color: var(--muted); font-size: .95rem; }

/* Wyróżniona karta (automatyzacja) na pełną szerokość */
.card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1.2fr 1fr; gap: 0 32px; align-items: start; }
.card-featured .icon { margin-bottom: 0; }
.card-featured p { margin-bottom: 0; }
@media (max-width: 760px) { .card-featured { grid-template-columns: 1fr; } .card-featured .icon { margin-bottom: 18px; } .card-featured ul { margin-top: 1em; } }
.home-services { background: #fff; }
