/* ============================================================
   DYNOMIC – style.css
   Design: dark theme, red accent #E51C1C, Inter font
   ============================================================ */

/* ── Reset & variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #E51C1C;
  --red-dark:  #b81515;
  --red-glow:  rgba(229,28,28,.18);
  --bg:        #0d0d0d;
  --bg2:       #141414;
  --bg3:       #1a1a1a;
  --border:    rgba(255,255,255,.08);
  --text:      #e8e8e8;
  --text-muted:#8a8a8a;
  --white:     #ffffff;
  --green:     #22c55e;
  --blue:      #3b82f6;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --transition:.22s ease;
  --max-w:     1160px;
  --font:      'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Utilities ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.accent    { color: var(--red); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--red);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.btn--white {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}
.btn--white:hover { background: #e8e8e8; }
.btn--sm  { padding: 8px 18px; font-size: .875rem; }
.btn--lg  { padding: 14px 32px; font-size: 1rem; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,13,13,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.navbar__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.navbar__links a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--text); }
.navbar__actions {
  display: flex;
  gap: 10px;
  margin-left: 16px;
}
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.navbar__mobile.open { display: flex; }
.navbar__mobile a { padding: 10px 0; color: var(--text); font-size: .95rem; }
.navbar__mobile .btn { margin-top: 8px; justify-content: center; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 40%, var(--red-glow) 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 80px;
}
.hero__text h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--text-muted);
}

/* Device mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.device-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.device-mockup__body {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 200px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow), 0 0 40px var(--red-glow);
  position: relative;
}
.device-mockup__led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  margin: 0 auto 14px;
  animation: pulse-led 2s ease-in-out infinite;
}
@keyframes pulse-led {
  0%,100% { opacity: 1; }
  50%      { opacity: .35; }
}
.device-mockup__label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--text);
  margin-bottom: 4px;
}
.device-mockup__sub {
  font-size: .6rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.device-mockup__connector {
  width: 32px;
  height: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin: 0 auto;
}

/* Phone mockup */
.device-mockup__phone {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 200px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.device-mockup__screen { display: flex; flex-direction: column; gap: 6px; }
.screen-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.screen-val { font-size: 1.7rem; font-weight: 700; color: var(--green); }
.screen-val.accent { color: var(--green); }
.screen-unit { font-size: .75rem; color: var(--text-muted); }
.screen-unit.nm { color: var(--blue); }
.screen-chart {
  margin-top: 8px;
  height: 44px;
  background: rgba(34,197,94,.06);
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
}
.screen-chart svg { width: 100%; height: 100%; }

/* Floating chips */
.chip {
  position: absolute;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.chip--1 { top: 0;   left: -30px; }
.chip--2 { top: 30%; right: -20px; }
.chip--3 { bottom: 10%; left: -10px; }

.hero__wave { line-height: 0; }
.hero__wave svg { width: 100%; }

/* ── Sections ──────────────────────────────────────────────── */
.section       { padding: 96px 0; }
.section--alt  { background: var(--bg2); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Steps ─────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.step:hover {
  border-color: rgba(229,28,28,.4);
  box-shadow: 0 0 32px var(--red-glow);
}
.step__num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(229,28,28,.15);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -.04em;
}
.step__icon {
  color: var(--red);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.step__arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  padding-top: 60px;
  flex-shrink: 0;
}

/* ── Features grid ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(229,28,28,.35);
  transform: translateY(-3px);
}
.feature-card__icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3    { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p     { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Specs ─────────────────────────────────────────────────── */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.specs-col__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td {
  padding: 12px 0;
  font-size: .875rem;
  vertical-align: top;
}
.specs-table td:first-child { color: var(--text-muted); width: 45%; }
.specs-table td:last-child  { font-weight: 500; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: rgba(229,28,28,.35); }
.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--red);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 20px 18px;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item a { color: var(--red); text-decoration: underline; }

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 50%, #1a0505 100%);
  border-top: 1px solid rgba(229,28,28,.25);
  border-bottom: 1px solid rgba(229,28,28,.25);
  padding: 64px 0;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-banner h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.cta-banner p { color: var(--text-muted); }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--bg2); padding-top: 64px; }
.footer__inner {
  display: flex;
  gap: 64px;
  padding-bottom: 48px;
}
.footer__brand { flex-shrink: 0; }
.footer__tagline {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.footer__links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer__col a { font-size: .875rem; color: var(--text-muted); transition: color var(--transition); }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ── Fade-in animation ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .chip--1, .chip--3 { display: none; }
}

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { display: none; }  /* uproszczenie na mobile */
  .steps { flex-direction: column; }
  .step__arrow { display: none; }
  .specs-grid { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .footer__inner { flex-direction: column; gap: 36px; }
  .footer__links { gap: 32px; }
  .navbar__links, .navbar__actions { display: none; }
  .navbar__burger { display: flex; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { justify-content: center; }
}
