:root {
  --bg: #FEF8F0;
  --bg-2: #fff3df;
  --ink: #103b2d;
  --ink-2: #214a3b;
  --tile: #ffffff;
  --line: #e9e3da;
  --accent: #b8325f;
  --accent-2: #1e6f5c;
  --accent-soft: rgba(184, 50, 95, .12);
  --shadow: rgba(16, 59, 45, .12);
  --screen: #101820;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 217, 132, .45), transparent 34%),
    radial-gradient(circle at 8% 90%, rgba(30, 111, 92, .12), transparent 32%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 24px;
  position: relative;
}

.page::before {
  content: "";
  position: absolute;
  inset: auto -10% -5% -10%;
  height: 15%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(30,111,92,.05));
  border-radius: 40% 40% 0 0;
  pointer-events: none;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  max-width: 210px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(184, 50, 95, .15));
}

.lang-switch {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(16, 59, 45, .06);
  backdrop-filter: blur(10px);
}

.lang-btn {
  border: 0;
  padding: 9px 15px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 800;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(184, 50, 95, .22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 58px;
}

.visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Laptop */
.macbook {
  width: 100%;
  max-width: 700px;
  position: relative;
  filter: drop-shadow(0 28px 34px rgba(16, 59, 45, .16));
}

.macbook-screen {
  position: relative;
  background: linear-gradient(145deg, #262d35, #0e141a);
  border-radius: 26px 26px 18px 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.04),
    0 30px 70px rgba(0,0,0,.22);
}

.macbook-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255,255,255,.12);
}

/*
  Najważniejsza poprawka:
  .screen-inner ma stałe proporcje,
  a img ma width: 100% i height: 100%.
*/
.screen-inner {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #f7f1e9;
  border: 1px solid rgba(255,255,255,.16);
  position: relative;
}

.screen-inner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.screen-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.20), transparent 34%),
    linear-gradient(180deg, transparent 72%, rgba(0,0,0,.08));
  pointer-events: none;
}

.macbook-base {
  height: 26px;
  width: 108%;
  margin-left: -4%;
  background: linear-gradient(180deg, #e7e2dc, #bdb8b3);
  border-radius: 0 0 40px 40px;
  position: relative;
  box-shadow: 0 16px 28px rgba(16, 59, 45, .14);
}

.macbook-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 116px;
  height: 9px;
  transform: translateX(-50%);
  background: rgba(80, 80, 80, .18);
  border-radius: 0 0 18px 18px;
}

/* Karta tekstowa */
.content-card {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(233, 227, 218, .9);
  border-radius: 28px;
  padding: 38px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9),
    0 28px 70px rgba(16, 59, 45, .08);
  backdrop-filter: blur(14px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(184, 50, 95, .42);
  animation: pulse 1.7s infinite;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(184,50,95,.12);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.lead {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 20px;
}

.time-box {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px 10px 14px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(16, 59, 45, .055);
}

.time-value {
  display: block;
  color: var(--accent);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.time-label {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.finished {
  display: none;
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(30, 111, 92, .10);
  color: var(--accent-2);
  font-weight: 800;
  border: 1px solid rgba(30, 111, 92, .18);
}

.finished.visible {
  display: block;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(184, 50, 95, .42);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(184, 50, 95, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(184, 50, 95, 0);
  }
}

/* Responsywność */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .visual {
    order: 2;
  }

  .content-card {
    order: 1;
  }

  .macbook {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 22px 16px 34px;
    align-items: flex-start;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .brand-logo {
    max-width: 180px;
  }

  .content-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .macbook-screen {
    border-radius: 19px 19px 14px 14px;
    padding: 11px;
  }

  .macbook-base {
    height: 20px;
  }
}

@media (max-width: 380px) {
  .countdown {
    gap: 8px;
  }

  .time-box {
    padding: 14px 8px 12px;
  }

  .time-label {
    font-size: 11px;
  }
}