:root {
  --primary: #4aa3ff;
  --primary-soft: #eaf3ff;
  --bg-soft: #f8fafc;
  --bg-alt: #eef4f8;
  --text-dark: #1f2933;
  --text-light: #6b7280;
  --border-soft: #e5e7eb;
}

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: white;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= HEADER ================= */

.header {
  background: white;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 600;
}

.logo-w {
  color: var(--primary);
}

.logo-text {
  color: var(--text-dark);
}

/* CLOCK */

.logo-clock {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-dark);
  border-radius: 50%;
  position: relative;
  margin: 0 4px;
}

.logo-clock::after {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-clock .hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: var(--text-dark);
}

.logo-clock .hour {
  width: 2px;
  height: 6px;
  transform: translateX(-50%) rotate(-60deg);
}

.logo-clock .minute {
  width: 1px;
  height: 8px;
  transform: translateX(-50%);
}

/* NAV */

.nav a {
  margin-left: 28px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
}

.nav a:hover {
  color: var(--primary);
}

/* ================= HERO ================= */

.hero {
  background: linear-gradient(180deg, var(--bg-soft), white);
  padding: 110px 20px 90px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ================= TABLET MOCKUP ================= */

.tablet-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.tablet {
  position: relative;
  width: 520px;
  background: #f1f5f9;
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.tablet::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
}

.tablet-screen {
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #e5e7eb;
  border-radius: 18px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  transition: opacity 0.4s ease;
}

/* CTA */

.hero-cta {
  margin-top: 36px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(74,163,255,0.35);
}

/* ================= SECTIONS ================= */

.section {
  padding: 90px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 34px;
  text-align: center;
  margin-bottom: 20px;
}

.section p {
  max-width: 720px;
  margin: 0 auto 16px;
  text-align: center;
  color: var(--text-light);
}

/* STEPS */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step {
  background: white;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.step-number {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TRUST */

.trust-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.trust-points div {
  background: var(--primary-soft);
  padding: 18px;
  border-radius: 14px;
  text-align: center;
}

.trust-note {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

/* PRICING */

.cards {
  display: flex;
  gap: 24px;
  margin-top: 50px;
}

.card {
  flex: 1;
  background: white;
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.card.highlighted {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-soft), white);
}

.pricing-note {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

/* FORM */

form {
  max-width: 480px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input,
textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

button {
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
}

/* FOOTER */

footer {
  padding: 30px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .steps,
  .trust-points,
  .cards {
    grid-template-columns: 1fr;
    display: grid;
  }
}

/* ================= HAMBURGER ================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
}

.popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  transform: translateY(0);
}

.popup.success {
  background: #16a34a;
}

.popup.error {
  background: #dc2626;
}

/* ================= MOBILE NAV UX IMPROVEMENTS ================= */

@media (max-width: 900px) {

  body.nav-open {
    overflow: hidden; /* blok scrolla pod menu */
  }

  .nav {
    right: 16px;
    top: calc(100% + 8px);
  }

  /* delikatna animacja */
  .nav {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
  }

  /* klik poza menu */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 5;
  }
}


/* ================= MOBILE MENU ================= */

@media (max-width: 900px) {

  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 220px;
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }

  .nav a {
    margin: 0;
  }

  .nav.open {
    display: flex;
  }

  @media (max-width: 600px) {

    .hero {
      padding: 70px 16px 60px;
    }

    .hero h1 {
      font-size: 30px;
    }

    .hero p {
      font-size: 16px;
    }

    .tv-wrapper {
      margin-top: 32px;
    }

    .tv-mockup {
      max-width: 100%;
    }

    .tv-screen {
      font-size: 16px;   /* override clamp — OK */
      padding: 16px;
      overflow-wrap: break-word;
      text-wrap: balance;
    }
  }

  @media (max-width: 600px) {

    .btn-primary,
    button {
      padding: 16px;
      font-size: 16px;
    }

    .screen-card h4 {
      margin-top: 14px;
    }

    .mini-screen {
      font-size: 15px;
    }
  }

}
