/* ============================================================
   Huddlo — landing page
   Brand: granat (wordmark) + zielony (akcja) + czerwony/pomarańcz/niebieski (akcenty z logo)
   ============================================================ */
:root {
  --primary: #65a30d;       /* app primary — zielony */
  --primary-dark: #4d7c0f;
  --primary-light: #84cc16;
  --navy: #102a6b;          /* wordmark Huddlo */
  --navy-soft: #1b3a8a;
  --red: #f0533f;
  --orange: #f59a1f;
  --blue: #1e5fd6;

  --text: #0f1f17;
  --text-muted: #51635a;
  --border: #e7ede2;
  --surface: #ffffff;
  --surface-alt: #f5f8f1;

  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px -10px rgba(15, 38, 19, 0.16);
  --shadow-card: 0 30px 70px -28px rgba(15, 38, 19, 0.32);
  --shadow-float: 0 18px 40px -16px rgba(15, 38, 19, 0.28);
  --maxw: 1180px;
  --accent: var(--primary);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; }
a { color: inherit; text-decoration: none; }

::selection { background: color-mix(in srgb, var(--primary) 28%, white); color: var(--navy); }
a { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, white); outline-offset: 2px; border-radius: 6px; }
section[id] { scroll-margin-top: 84px; }

/* ---------- Icons (Ionicons via CSS mask, kolor przez currentColor) ---------- */
.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.ico-football { -webkit-mask-image: url('assets/icons/football.svg'); mask-image: url('assets/icons/football.svg'); }
.ico-basketball { -webkit-mask-image: url('assets/icons/basketball.svg'); mask-image: url('assets/icons/basketball.svg'); }
.ico-tennisball { -webkit-mask-image: url('assets/icons/tennisball.svg'); mask-image: url('assets/icons/tennisball.svg'); }
.ico-bicycle { -webkit-mask-image: url('assets/icons/bicycle.svg'); mask-image: url('assets/icons/bicycle.svg'); }
.ico-walk { -webkit-mask-image: url('assets/icons/walk.svg'); mask-image: url('assets/icons/walk.svg'); }
.ico-footsteps { -webkit-mask-image: url('assets/icons/footsteps.svg'); mask-image: url('assets/icons/footsteps.svg'); }
.ico-water { -webkit-mask-image: url('assets/icons/water.svg'); mask-image: url('assets/icons/water.svg'); }
.ico-leaf { -webkit-mask-image: url('assets/icons/leaf.svg'); mask-image: url('assets/icons/leaf.svg'); }
.ico-barbell { -webkit-mask-image: url('assets/icons/barbell.svg'); mask-image: url('assets/icons/barbell.svg'); }
.ico-body { -webkit-mask-image: url('assets/icons/body.svg'); mask-image: url('assets/icons/body.svg'); }
.ico-ellipsis-horizontal { -webkit-mask-image: url('assets/icons/ellipsis-horizontal.svg'); mask-image: url('assets/icons/ellipsis-horizontal.svg'); }
.ico-location { -webkit-mask-image: url('assets/icons/location.svg'); mask-image: url('assets/icons/location.svg'); }
.ico-shield-checkmark { -webkit-mask-image: url('assets/icons/shield-checkmark.svg'); mask-image: url('assets/icons/shield-checkmark.svg'); }
.ico-person-circle { -webkit-mask-image: url('assets/icons/person-circle.svg'); mask-image: url('assets/icons/person-circle.svg'); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.2,.7,.3,1), box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus { outline: none; }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, white); outline-offset: 3px; }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(101,163,13,0.75);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(101,163,13,0.85); filter: brightness(1.03); }

.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--surface-alt); transform: none; }

.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-soft); }
.btn-light:hover { background: #f3f6ef; }

.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -16px rgba(15,38,19,0.5);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
}
.nav-links a { position: relative; padding: 4px 0; transition: color 0.15s ease; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 116px 24px 124px;
  background: linear-gradient(180deg, rgba(8,20,12,0.2), rgba(8,20,12,0.4)), url('assets/hero-bg.png') center 80% / cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 12% 45%, rgba(8,22,55,0.72), transparent 72%),
    radial-gradient(circle at 88% 18%, rgba(101,163,13,0.28), transparent 45%),
    linear-gradient(90deg, rgba(8,22,55,0.62) 0%, rgba(8,22,55,0.18) 55%, rgba(8,22,55,0.05) 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-text { animation: rise 0.7s cubic-bezier(.2,.7,.3,1) both; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 8px 16px 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); }
.dot-orange { background: var(--orange); }
.dot-green { background: var(--primary-light); }
.dot-blue { background: var(--blue); }
.hero-eyebrow .dot + .dot { margin-left: -3px; }

.hero h1 {
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 900;
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero .hl {
  background: linear-gradient(120deg, #a3e635, var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 540px;
  margin: 24px 0 36px;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 14px rgba(0,0,0,0.32);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
}
.hero-note .ico { font-size: 20px; color: var(--primary-light); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 104px 24px; }
.section-alt {
  max-width: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 70%),
    var(--surface-alt);
  border-block: 1px solid var(--border);
}
.section-alt > * { max-width: var(--maxw); margin-inline: auto; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--primary) 12%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(29px, 3.6vw, 46px); font-weight: 900; color: var(--navy); }
.section-head p { color: var(--text-muted); font-size: 18px; margin: 16px 0 0; }

/* ---------- Feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 110px;
}
.feature:last-child { margin-bottom: 0; }
.feature-reverse .feature-text { order: 2; }
.feat-green { --accent: var(--primary); }
.feat-blue { --accent: var(--blue); }
.feat-orange { --accent: var(--orange); }

.feature-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  color: #fff;
}
.badge-green { background: var(--primary); }
.badge-blue { background: var(--blue); }
.badge-orange { background: var(--orange); }

.feature-text h3 { font-size: clamp(25px, 2.6vw, 36px); font-weight: 800; color: var(--navy); }
.feature-text > p { color: var(--text-muted); font-size: 17px; margin: 16px 0 24px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.ticks li {
  position: relative;
  padding-left: 36px;
  font-weight: 600;
  color: var(--text);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, white);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 7px; top: 8px;
  width: 9px; height: 5px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* phone mockup */
.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.feature-visual::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 68%);
  filter: blur(22px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 290px;
  max-width: 80vw;
  background: linear-gradient(160deg, #1c2b22, #0f1a14);
  border-radius: 44px;
  padding: 11px;
  box-shadow: var(--shadow-card), 0 0 0 7px rgba(15,26,20,0.05);
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.feature-visual .phone { transform: rotate(3deg); }
.feature-reverse .feature-visual .phone { transform: rotate(-3deg); }
.feature-visual:hover .phone { transform: rotate(0deg) translateY(-6px); }
.phone::before {
  content: '';
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 7px; border-radius: 99px;
  background: rgba(255,255,255,0.18);
  z-index: 2;
}
.phone img {
  width: 100%;
  border-radius: 34px;
  display: block;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 60px; left: 16%; right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--primary) 45%, white) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 22px -8px rgba(101,163,13,0.7);
  border: 4px solid #fff;
}
.step h3 { font-size: 21px; font-weight: 800; color: var(--navy); }
.step p { color: var(--text-muted); margin: 10px 0 0; }
.step:nth-child(2) .step-num { background: var(--blue); box-shadow: 0 10px 22px -8px rgba(30,95,214,0.6); }
.step:nth-child(3) .step-num { background: var(--orange); box-shadow: 0 10px 22px -8px rgba(245,154,31,0.6); }

/* ---------- Sport chips ---------- */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: default;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.chips li .ico { font-size: 20px; color: var(--primary); transition: color 0.18s ease; }
.chips li:hover {
  transform: translateY(-3px);
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(101,163,13,0.7);
}
.chips li:hover .ico { color: #fff; }

/* ---------- Safety cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card:hover::before { transform: scaleX(1); }
.card--red { --accent: var(--red); }
.card--green { --accent: var(--primary); }
.card--blue { --accent: var(--blue); }
.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 18px;
  font-size: 30px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, white);
  margin-bottom: 20px;
}
.card h3 { font-size: 20px; font-weight: 800; color: var(--navy); }
.card p { color: var(--text-muted); margin: 11px 0 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 50%, var(--primary-dark) 135%);
  color: #fff;
  padding: 100px 24px;
  text-align: center;
}
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132,204,22,0.4), transparent 68%);
  filter: blur(8px);
}
.cta-band::before { width: 360px; height: 360px; top: -120px; left: -80px; }
.cta-band::after { width: 420px; height: 420px; bottom: -160px; right: -100px; background: radial-gradient(circle, rgba(30,95,214,0.35), transparent 68%); }
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(31px, 4vw, 50px); font-weight: 900; }
.cta-band p { font-size: 19px; color: rgba(255,255,255,0.9); margin: 18px 0 36px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: #0b1410;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 30px;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--primary), var(--blue));
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.footer-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 600; font-size: 14px; }
.footer-links a { transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }
.footer-meta {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 88px 22px 92px; }
  .feature { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .feature-reverse .feature-text { order: 0; }
  .feature-text { text-align: center; }
  .feature-text .feature-badge { margin-inline: auto; }
  .ticks { display: inline-grid; text-align: left; }
  .steps, .cards { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .section { padding: 76px 22px; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 10px 16px; gap: 12px; }
  .nav-brand img { height: 30px; }
  .nav-cta .btn-ghost { display: none; }
  .btn-lg { padding: 14px 26px; font-size: 16px; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .step:hover, .card:hover, .chips li:hover { transform: none; }
  .phone-hero, .floatcard, .hero-text, .hero-visual { animation: none; }
}
