:root {
  --bg: #172a3e;
  --bg-deep: #0b1726;
  --panel: #0e1c2d;
  --panel-soft: #112237;
  --line: rgba(159, 194, 226, .11);
  --text: #f4f8fc;
  --muted: #b7c8d7;
  --muted-2: #86a2b8;
  --accent: #1ca8ff;
  --accent-2: #4cd7ff;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(11, 23, 38, .74); border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.topbar-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 650; letter-spacing: .12em; white-space: nowrap; }
.brand b { color: var(--accent-2); font-weight: 800; }
.moon { position: relative; width: 34px; height: 34px; display: inline-block; border: 2px solid #92e8ff; border-right-color: transparent; border-radius: 50%; filter: drop-shadow(0 0 10px rgba(70, 213, 255, .3)); transform: rotate(-22deg); }
.moon::before { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #b7f3ff; right: 2px; top: 5px; box-shadow: -8px -6px 0 -1px rgba(183,243,255,.65); }
.moon span { position: absolute; width: 19px; height: 19px; right: -2px; top: 6px; background: var(--bg-deep); border-radius: 50%; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: #cbd9e5; }
.desktop-nav a { transition: .2s ease; }
.desktop-nav a:hover { color: #fff; }
.nav-cta { padding: 9px 15px; border: 1px solid rgba(76,215,255,.45); border-radius: 8px; }
.menu-button { display: none; color: #fff; background: transparent; border: 0; padding: 8px; }
.mobile-nav { display: none; }

.hero {
  min-height: 690px; padding: 155px 0 90px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 87% 20%, rgba(28,168,255,.15), transparent 25%),
    radial-gradient(circle at 30% 35%, rgba(76,215,255,.07), transparent 30%),
    linear-gradient(180deg, #0c1a2b 0%, #10243a 62%, #14283e 100%);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-aurora { position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.orbit { position: absolute; left: -10vw; width: 125vw; height: 190px; border-top: 1px solid rgba(56, 183, 255, .42); border-radius: 50%; transform: rotate(-4deg); filter: drop-shadow(0 0 10px rgba(30, 165, 255, .25)); }
.orbit-one { top: 265px; }
.orbit-two { top: 340px; transform: rotate(-7deg); border-color: rgba(86, 224, 255, .22); }
.orbit-three { top: 420px; transform: rotate(-10deg); border-color: rgba(28, 168, 255, .13); }
.star { position: absolute; width: 3px; height: 3px; background: #b9f0ff; border-radius: 50%; box-shadow: 0 0 12px 4px rgba(103,220,255,.5); opacity: .8; }
.s1{top:27%;left:18%}.s2{top:39%;left:82%}.s3{top:52%;left:63%}.s4{top:31%;left:67%}.s5{top:58%;left:29%}
.hero-content { position: relative; z-index: 2; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.04; letter-spacing: -.045em; max-width: 820px; margin: 0; font-weight: 750; }
.hero h1 span { display: block; color: var(--accent); }
.hero p { max-width: 740px; color: #c4d4e2; font-size: clamp(16px, 1.5vw, 19px); margin: 26px 0 34px; }
.primary-button { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #05243a; padding: 13px 18px; border-radius: 8px; font-weight: 800; font-size: 14px; box-shadow: 0 12px 28px rgba(0, 139, 230, .18); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.primary-button:hover { transform: translateY(-2px); background: #43bdff; box-shadow: 0 16px 30px rgba(0,139,230,.26); }

.section { padding: 86px 0; }
.section h2, .cta-section h2 { font-size: clamp(29px, 3vw, 44px); line-height: 1.15; letter-spacing: -.026em; margin: 0 0 24px; }
.narrow-copy { max-width: var(--max); }
.intro-section { padding-top: 82px; }
.intro-section p:not(.section-kicker) { max-width: 980px; color: var(--muted); margin: 0 0 12px; font-size: 16px; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 32px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.service-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 28px; min-height: 175px; border-bottom: 1px solid var(--line); }
.service-card:nth-child(odd) { border-right: 1px solid var(--line); }
.service-card:nth-last-child(-n+2) { border-bottom: 0; }
.icon-box { width: 39px; height: 39px; border: 1px solid rgba(28,168,255,.65); border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: rgba(28,168,255,.06); }
.service-card h3, .difference-card h3, .strength-item h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.32; }
.service-card p, .difference-card p, .strength-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.difference-section { padding-top: 58px; }
.difference-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 30px; }
.difference-card { padding: 24px 22px 26px; border-right: 1px solid var(--line); }
.difference-card:last-child { border-right: 0; }
.num { color: var(--accent); font-size: 12px; font-weight: 800; display: block; margin-bottom: 15px; }
.difference-card h3 { font-size: 18px; }

.strengths-section { padding-top: 78px; }
.strength-list { display: grid; gap: 12px; margin-top: 30px; }
.strength-item { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 20px 22px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.strength-item:hover { transform: translateX(4px); background: var(--panel-soft); border-color: rgba(28,168,255,.28); }
.strength-index { color: var(--accent); font-size: 11px; font-weight: 800; padding-top: 2px; }

.cta-section { margin-top: 38px; padding: 96px 0; border-top: 1px solid rgba(255,255,255,.035); background: linear-gradient(180deg, rgba(15,32,50,.2), rgba(10,22,36,.4)); text-align: center; }
.cta-inner { max-width: 760px; }
.cta-inner > p:not(.section-kicker) { color: var(--muted); margin: -8px auto 26px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.secondary-link { display: inline-flex; align-items: center; gap: 8px; color: #d8e7f3; font-weight: 700; font-size: 14px; }

.footer { background: #091625; border-top: 1px solid rgba(255,255,255,.06); padding: 58px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .9fr 1.2fr; gap: 60px; }
.footer-main .brand { margin-bottom: 20px; }
.footer-note { color: var(--muted-2); max-width: 300px; font-size: 13px; }
.footer-col h3 { font-size: 13px; margin: 0 0 17px; color: #edf7ff; }
.footer-col p { color: var(--muted-2); font-size: 12px; line-height: 1.7; margin: 0 0 10px; display: flex; gap: 8px; align-items: flex-start; }
.footer-col a:hover { color: var(--accent-2); }
.company-data p { display: block; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); color: #718aa0; font-size: 11px; display: flex; justify-content: space-between; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .mobile-nav { display: grid; background: #0b1828; border-top: 1px solid rgba(255,255,255,.06); padding: 10px 24px 18px; }
  .mobile-nav a { padding: 13px 0; color: #d6e4ef; border-bottom: 1px solid rgba(255,255,255,.05); }
  .mobile-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 620px; }
  .difference-grid { grid-template-columns: repeat(2, 1fr); }
  .difference-card:nth-child(2) { border-right: 0; }
  .difference-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  .topbar-inner { height: 68px; }
  html { scroll-padding-top: 72px; }
  .brand { font-size: 11px; gap: 9px; }
  .moon { width: 30px; height: 30px; }
  .hero { min-height: 590px; padding: 132px 0 72px; }
  .hero h1 { font-size: clamp(39px, 12vw, 56px); }
  .hero p { font-size: 16px; }
  .section { padding: 66px 0; }
  .section h2, .cta-section h2 { font-size: 30px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 23px 20px; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .service-card:last-child { border-bottom: 0 !important; }
  .difference-grid { grid-template-columns: 1fr; }
  .difference-card { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .difference-card:last-child { border-bottom: 0 !important; }
  .strength-item { grid-template-columns: 35px 1fr; padding: 18px 16px; }
  .cta-section { padding: 76px 0; }
  .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-main { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 760px) {
  .mobile-nav.is-open { display: flex; }
}

/* --- v2: dopracowany nagłówek, logo i interakcje usług --- */
.topbar {
  background:
    linear-gradient(180deg, rgba(8, 20, 33, .97), rgba(8, 20, 33, .91));
  border-bottom: 1px solid rgba(100, 211, 255, .16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .20), 0 1px 0 rgba(255,255,255,.025) inset;
}
.topbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 7%, rgba(55, 202, 255, .34) 30%, rgba(55, 202, 255, .08) 68%, transparent 93%);
  pointer-events: none;
}
.topbar-inner { height: 82px; }
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img { display: block; width: 205px; height: auto; max-height: 54px; object-fit: contain; object-position: left center; }
.footer-logo img { width: 190px; }

/* Stare logo CSS zostaje niewykorzystywane, ale ukrywamy je na wypadek cache HTML. */
.brand-logo .moon, .brand-logo .brand-text { display: none; }

.service-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .24s ease, background .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(55, 202, 255, .15), transparent 35%),
    linear-gradient(135deg, rgba(28,168,255,.08), rgba(76,215,255,.025));
  transition: opacity .24s ease;
}
.service-card::after {
  content: '';
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--accent-2), transparent);
  opacity: 0;
  transform: scaleY(.45);
  transition: opacity .24s ease, transform .24s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  background: #102238;
  border-color: rgba(67, 216, 255, .24);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(67,216,255,.035);
  z-index: 2;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; transform: scaleY(1); }
.service-card .icon-box {
  transition: transform .24s ease, background .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.service-card:hover .icon-box {
  transform: translateY(-2px) scale(1.06);
  background: rgba(28,168,255,.13);
  border-color: rgba(76,215,255,.9);
  box-shadow: 0 0 24px rgba(28,168,255,.17);
}
.service-card h3 { transition: color .24s ease; }
.service-card:hover h3 { color: #ffffff; }

@media (max-width: 900px) {
  .mobile-nav { display: none; }
  .mobile-nav.is-open { display: grid; }
}

@media (max-width: 680px) {
  .topbar-inner { height: 72px; }
  .brand-logo img { width: 174px; max-height: 46px; }
  .service-card:hover { transform: translateY(-2px); }
}

/* --- v3: wyraźne rozdzielenie sekcji i poprawione logo --- */
.hero {
  border-bottom: 1px solid rgba(82, 203, 255, .14);
}
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(8, 20, 33, .14) 48%, rgba(8, 20, 33, .34) 100%);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(62, 200, 255, .12) 22%, rgba(62, 200, 255, .4) 50%, rgba(62, 200, 255, .12) 78%, transparent 95%);
  box-shadow: 0 8px 34px rgba(22, 163, 244, .10);
  pointer-events: none;
  z-index: 3;
}

.intro-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(9, 24, 39, .22) 0, rgba(23, 42, 62, 0) 110px);
}
.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.055) 18%, rgba(92, 206, 255, .16) 50%, rgba(255,255,255,.055) 82%, transparent);
}

.brand-logo img {
  width: 214px;
  max-height: 56px;
  overflow: visible;
}
.footer-logo img { width: 194px; }

@media (max-width: 680px) {
  .intro-section::before { width: calc(100% - 32px); }
  .brand-logo img { width: 182px; max-height: 48px; }
}


/* --- v4: oryginalne logo LunarSpark AI dostarczone przez użytkownika --- */
.brand-logo img {
  width: auto;
  height: 68px;
  max-width: 210px;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}
.footer-logo img {
  width: auto;
  height: 62px;
  max-width: 220px;
}
@media (max-width: 720px) {
  .brand-logo img {
    width: auto;
    height: 48px;
    max-width: 170px;
    max-height: none;
  }
  .footer-logo img {
    height: 54px;
    max-width: 190px;
  }
}
