:root {
  --bg: #0b0b0c;
  --surface: #161618;
  --line: #2c2c30;
  --text: #f5f5f3;
  --muted: #a6a6ab;
  --accent: #ffe600;
  --accent-ink: #0c0c0b;
  --glow: rgba(255, 230, 0, .4);
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, video, iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sprite { display: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

@property --fill {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

h1, h2, .num, .pain-close {
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

h1 { font-size: clamp(2rem, 10.8vw, 5.5rem); }
html[lang="pl"] h1, html[lang="pl"] h2 { line-height: 1.1; }
h2 { font-size: clamp(2rem, 9vw, 3.5rem); }
h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }

/* Header */
.top {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--gutter);
}

.brand {
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand b { color: var(--accent); font-weight: 900; text-shadow: 0 0 16px var(--glow); }

.lang { display: flex; align-items: center; color: var(--muted); font-size: 15px; font-weight: 700; }
.lang a { padding: 10px 8px; text-decoration: none; }
.lang a[aria-current] { color: var(--text); }

/* Buttons */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s;
  animation: glow 3.2s ease-in-out infinite;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: sweep 5s ease-in-out infinite;
  pointer-events: none;
}

.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }

/* Hero: on a phone the reel fills the screen, like opening a Reel */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 88px var(--gutter) 24px;
}

.hero-media { position: absolute; inset: 0; background: var(--bg); }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 11, 12, .55), transparent 18%, transparent 34%, rgba(11, 11, 12, .9) 62%);
}

.hero-copy { position: relative; z-index: 2; pointer-events: none; }
.hero-copy .btn, .hero-copy .reel-follow { pointer-events: auto; }
.hero-copy p { margin: 12px 0 18px; font-size: 1.0625rem; line-height: 1.4; }

/* Reel frame. On a phone the headline is the caption, the side icons sit
   beside it, and the button runs full width under both, like a Reels ad. */
.reel-ui { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.reel-label { display: none; }

.reel-rail {
  position: absolute;
  right: 8px;
  bottom: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reel-action {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  pointer-events: auto;
  transition: transform .15s;
}

.reel-action:active { transform: scale(.88); }

.reel-action svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.reel-action.on svg { fill: var(--accent); stroke: var(--accent); animation: pop .3s; }

.reel-disc {
  width: 28px;
  height: 28px;
  margin-top: 8px;
  border-radius: 50%;
  border: 6px solid #2a2a2e;
  background: var(--accent);
  animation: orbit-disc 4s linear infinite;
}

.reel-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, .18);
}

.reel-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: reel-progress 12s linear infinite;
}

.reel-account { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.reel-ui .reel-account { display: none; }

.reel-avatar {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
  font-style: italic;
}

.reel-name { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.reel-name b { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.reel-name small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }

.reel-follow {
  flex: none;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
}

/* Sound control: the whole video is the target, the icon sits in the corner */
.sound { position: absolute; z-index: 1; inset: 0; width: 100%; }

.sound span {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M15.5 9.5l5 5m0-5l-5 5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.sound[aria-pressed="true"] span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M16 8.5a5 5 0 010 7M18.5 6a8.5 8.5 0 010 12' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

.hero-media .sound { z-index: 2; top: 56px; bottom: 45%; }

/* Sections */
.section { position: relative; z-index: 2; padding: 56px var(--gutter); }
.section > h2 { margin-bottom: 8px; }
.lede { margin-bottom: 24px; color: var(--muted); }

/* The problem */
#problem .kicker { margin-bottom: 8px; }

.pains { display: grid; gap: 12px; }

.pains li {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.pains svg, .step svg {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.pains p { margin-top: 4px; color: var(--muted); }

.pain-close {
  margin-top: 28px;
  color: var(--accent);
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  line-height: 1.1;
  text-shadow: 0 0 24px var(--glow);
}

/* Portfolio */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card.wide { grid-column: 1 / -1; }
.card figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(115deg, var(--surface) 0 18px, #1b1b1e 18px 36px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.card:hover .frame {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(255, 230, 0, .16);
}

.tall .frame { aspect-ratio: 9 / 16; }
.wide .frame { aspect-ratio: 16 / 9; }

.empty {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.play { position: absolute; inset: 0; width: 100%; }

.play span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c0c0b'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
  box-shadow: 0 0 22px var(--glow);
}

.play span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ring 2.6s ease-out infinite;
}

.case { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.kicker { color: var(--accent); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.case h3 { margin: 4px 0 6px; font-size: 1.75rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.case p:not(.kicker) { margin-bottom: 20px; color: var(--muted); }

.no-reels .lede, .no-reels #reels { display: none; }
.no-reels .case { margin-top: 20px; padding-top: 0; border-top: 0; }

/* Why us */
.why { margin-top: 20px; display: grid; gap: 20px; }
.why li { position: relative; padding-left: 17px; }

.why li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--glow);
  transform-origin: top;
}

.why li.reveal::before { transform: scaleY(0); transition: transform .7s .25s; }
.why li.reveal.in::before { transform: none; }
.why p { margin-top: 4px; color: var(--muted); }

/* Content Engine Plan */
.plan-engine {
  position: relative;
  aspect-ratio: 712 / 600;
  margin: 0 calc(var(--gutter) * -1);
}

.engine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s;
}

.engine.on { opacity: 1; }

.offer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 20px;
  padding: 24px 20px;
  border-radius: 12px;
  background: var(--line);
  box-shadow: 0 0 60px rgba(255, 230, 0, .08);
}

.offer::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: 220%;
  aspect-ratio: 1;
  background: conic-gradient(transparent 0 68%, var(--accent) 90%, transparent 100%);
  transform: translate(-50%, -50%);
  animation: orbit 7s linear infinite;
}

.offer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: 10px;
  background: var(--surface);
}

.offer li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); }
.offer li:first-child { border-top: 0; }

.offer li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.offer .btn { margin-top: 16px; }
.terms { margin-top: 12px; color: var(--muted); font-size: 15px; text-align: center; }

.from {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* How it works: a road from the first message to the finish flag.
   Each stop is a rev counter that climbs as the steps go on. */
#how {
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 60%, rgba(255, 230, 0, .07), transparent),
    radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px) 0 0 / 26px 26px;
}

.steps { position: relative; display: grid; gap: 18px; }

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 21px;
  left: 21px;
  width: 14px;
  border: 1px solid var(--line);
  border-width: 0 1px;
  background: #18181b linear-gradient(var(--accent) 50%, transparent 0) center 0 / 2px 24px repeat-y;
  animation: drive-y 1.4s linear infinite;
}

.steps::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 21px;
  width: 14px;
  height: 21px;
  background: repeating-conic-gradient(var(--text) 0 25%, var(--bg) 0 50%) 0 0 / 14px 14px;
}

.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; align-items: start; }
.steps li:nth-child(1) { --rev: 120deg; }
.steps li:nth-child(2) { --rev: 240deg; }
.steps li:nth-child(3) { --rev: 360deg; }

.num {
  --fill: var(--rev);
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent) var(--fill), var(--line) 0);
  color: var(--accent);
  font-size: 1.5rem;
  letter-spacing: 0;
  box-shadow: 0 0 22px rgba(255, 230, 0, .22);
  transition: --fill 1s .25s;
}

.num::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
}

.steps li.reveal:not(.in) .num { --fill: 0deg; }

.step {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(155deg, var(--surface), #0e0e10);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.step::before {
  content: attr(data-n);
  position: absolute;
  right: 10px;
  bottom: -30px;
  color: transparent;
  font-size: 7.5rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 230, 0, .2);
}

.steps li:hover .step {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(255, 230, 0, .16);
}

.step svg { stroke: var(--accent); }
.step h3, .step p { position: relative; }
.step p { margin-top: 4px; color: var(--muted); }

/* Contact */
.contact { padding-bottom: 72px; }
.contact-links { margin-top: 24px; display: grid; gap: 12px; }
.contact-links .btn small { font-weight: 500; opacity: .9; font-size: 15px; }

.alt {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.alt:hover { border-color: var(--muted); }
.alt svg { width: 22px; height: 22px; flex: none; fill: currentColor; }

footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 20px var(--gutter) 88px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer a { font-size: 13px; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
  transform: translateY(200%);
  transition: transform .2s;
}

.sticky-cta.show { transform: none; }

/* Phone: leave room for the side icons, button runs full width */
@media (max-width: 959px) {
  .hero-copy { padding-right: 52px; }
  .hero-copy .btn, .hero-copy .reel-account { margin-right: -52px; }
}

/* Short phones: drop the subhead so the reel keeps its room */
@media (max-width: 959px) and (max-height: 640px) and (orientation: portrait) {
  .hero-copy p { display: none; }
  .reel-account { margin-bottom: 8px; }
  .hero-copy h1 { margin-bottom: 12px; }
  .reel-rail { bottom: 92px; gap: 0; }
  .reel-disc { display: none; }
}

/* Phone held sideways: text left, reel right */
@media (orientation: landscape) and (max-width: 959px) {
  h1 { font-size: 2.5rem; }
  .hero-copy { max-width: 50%; padding-right: 0; }
  .hero-copy .btn, .hero-copy .reel-account { margin-right: 0; }
  .reel-rail { display: none; }
}

/* Tablet and up */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .card.wide { grid-column: span 2; }
  .grid:has(> .wide:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
  .grid:has(> .wide:nth-child(3):last-child) .wide { grid-column: auto; }
  .why, .pains, .steps { grid-template-columns: repeat(3, 1fr); }
  .why { gap: 28px; }
  .steps { gap: 20px; }
  .steps::before {
    inset: 21px 21px auto 0;
    width: auto;
    height: 14px;
    border-width: 1px 0;
    background: #18181b linear-gradient(to right, var(--accent) 50%, transparent 0) 0 center / 24px 2px repeat-x;
    animation-name: drive-x;
  }
  .steps::after { top: 21px; right: 0; bottom: auto; left: auto; height: 14px; width: 21px; }
  .steps li { grid-template-columns: 1fr; row-gap: 14px; }
  .plan-engine { max-width: 640px; margin: 0 auto; }
  .offer { max-width: 520px; margin-inline: auto; }
  .contact-links { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: text beside the reel */
@media (min-width: 960px) {
  .sticky-cta { display: none; }
  footer { padding-bottom: 20px; }
  .top, .hero, .section, footer { padding-left: max(var(--gutter), calc((100vw - 1120px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1120px) / 2)); }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
  .hero-copy { order: -1; max-width: 560px; }
  h1 { font-size: min(6.2vw, 5.25rem); }
  .hero-copy p { font-size: 1.25rem; margin: 18px 0 24px; }
  .hero-copy .btn { display: inline-flex; }
  .hero-media {
    position: relative;
    inset: auto;
    flex: none;
    height: min(84vh, 760px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #0f0f11;
    box-shadow: 0 0 70px rgba(255, 230, 0, .1);
  }
  .reel-label { position: absolute; display: block; top: 12px; left: 16px; font-size: 19px; font-weight: 800; }
  .hero-copy .reel-account { display: none; }
  .reel-ui .reel-account { position: absolute; display: flex; left: 14px; right: 62px; bottom: 16px; margin: 0; }
  .reel-rail { right: 6px; bottom: 12px; }
  .hero-media::after { background: linear-gradient(to bottom, rgba(11, 11, 12, .45), transparent 14%, transparent 70%, rgba(11, 11, 12, .8)); }
  .hero-media .sound { top: 0; bottom: 0; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  #offer { display: grid; grid-template-columns: 1fr 440px; column-gap: 40px; align-items: center; }
  #offer > h2, #offer > .lede { grid-column: 1 / -1; }
  #offer .plan-engine { width: 100%; max-width: none; }
  #offer .offer { margin: 0; }
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s, transform .6s;
  transition-delay: var(--delay, 0s);
}

.reveal.in { opacity: 1; transform: none; }

@keyframes glow {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 230, 0, .22); }
  50% { box-shadow: 0 0 30px rgba(255, 230, 0, .5); }
}

@keyframes sweep {
  0%, 60% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(320%) skewX(-18deg); }
}

@keyframes ring {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

@keyframes orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-disc {
  to { transform: rotate(360deg); }
}

@keyframes reel-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pop {
  50% { transform: scale(1.3); }
}

@keyframes drive-y {
  from { background-position: center 0; }
  to { background-position: center 24px; }
}

@keyframes drive-x {
  from { background-position: 0 center; }
  to { background-position: 24px center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta, .frame, .step, .num { transition: none; }
  .btn, .btn::before, .play span::after, .offer::before, .reel-disc, .reel-bar span, .reel-action.on svg, .steps::before { animation: none; }
  .btn::before, .play span::after { display: none; }
}
