/* ============================================================
   DOMAN SYSTEM – Global Design System
   ============================================================ */

:root {
  --bg:        #080E1C;
  --bg2:       #0D1529;
  --bg3:       #111D38;
  --cyan:      #00EEFF;
  --cyan-dim:  rgba(0,238,255,0.12);
  --cyan-glow: rgba(0,238,255,0.35);
  --magenta:   #FF0099;
  --mag-dim:   rgba(255,0,153,0.12);
  --mag-glow:  rgba(255,0,153,0.35);
  --accent3:   #7B5CFF;
  --text:      #CBD5E1;
  --text-dim:  #4A5568;
  --white:     #F0F6FF;
  --glass:     rgba(255,255,255,0.035);
  --glass-b:   rgba(0,238,255,0.15);
  --radius:    14px;
  --radius-lg: 22px;
  --nav-h:     80px;
  --transition: 0.35s cubic-bezier(0.23,1,0.32,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', 'DM Sans-fallback', ui-sans-serif, system-ui, sans-serif;
  background: #080E1C;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font-family: inherit; }
ul { list-style: none; }

/* ---- Custom Cursor ---- */
#ds-cursor {
  position: fixed; z-index: 9999;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  --cx: 0px; --cy: 0px;
  transform: translateX(var(--cx)) translateY(var(--cy)) translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: screen;
  box-shadow: 0 0 10px var(--cyan);
}
#ds-cursor-ring {
  position: fixed; z-index: 9998;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(0,238,255,0.45);
  pointer-events: none;
  --cx: 0px; --cy: 0px;
  transform: translateX(var(--cx)) translateY(var(--cy)) translate(-50%, -50%);
  transition: transform .15s ease, width .25s, height .25s, border-color .25s;
}
body.cursor-hover #ds-cursor { width: 16px; height: 16px; background: var(--magenta); }
body.cursor-hover #ds-cursor-ring { width: 52px; height: 52px; border-color: rgba(255,0,153,0.5); }

/* ---- Page Transition Overlay ---- */
#page-veil {
  position: fixed; inset: 0; z-index: 8000;
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
#page-veil.entering { opacity: 1; }

/* ---- Canvas BG ---- */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(0,238,255,0.08), transparent 50%),
              radial-gradient(circle at 85% 25%, rgba(255,0,153,0.06), transparent 45%),
              radial-gradient(circle at 50% 100%, rgba(123,92,255,0.05), transparent 60%);
}

/* ---- Grid Overlay — usunięto box-shadow (zbędny composite layer) ---- */
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,238,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,238,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---- Typography ---- */
.font-display, h1, h2, h3, h4 {
  font-family: 'Syne', 'Syne-fallback', ui-sans-serif, system-ui, sans-serif;
  color: var(--white);
  line-height: 1.1;
}
.section-label {
  font-family: 'Syne', 'Syne-fallback', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1.5px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.grad-text {
  background: linear-gradient(130deg, var(--cyan) 0%, #3399ff 45%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.neon-c { color: var(--cyan); text-shadow: 0 0 20px var(--cyan-glow); }
.neon-m { color: var(--magenta); text-shadow: 0 0 20px var(--mag-glow); }

/* ---- Glass — blur zmniejszony z 20px → 10px ---- */
.glass {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-weight: 700;
  padding: 0.75rem 1.75rem; border-radius: 10px;
  font-size: 0.875rem; border: none; transition: var(--transition);
  cursor: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0077ff);
  color: #000;
  box-shadow: 0 0 22px var(--cyan-glow), 0 4px 20px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(0,238,255,0.15);
  transform: translateY(-2px) scale(1.03);
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
  box-shadow: inset 0 0 0 0 var(--cyan-dim);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 24px var(--cyan-glow);
  transform: translateY(-2px);
}
.btn-mag {
  background: linear-gradient(135deg, var(--magenta), #8800cc);
  color: #fff;
  box-shadow: 0 0 22px var(--mag-glow);
}
.btn-mag:hover { box-shadow: 0 0 40px var(--mag-glow); transform: translateY(-2px) scale(1.03); }
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2.4rem; font-size: 1rem; }

/* ---- Navbar ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 500;
  padding: 0 2rem;
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, border-color .4s;
}
#navbar.scrolled {
  background: rgba(8,14,28,0.95);
  /* blur z 22 → 12px — navbar jest permanentnie nad całą stroną */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,238,255,0.1);
}
.nav-inner {
  max-width: 1200px; width: 100%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.nav-logo video {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(0,238,255,0.35));
  transition: filter .3s;
}
.nav-logo:hover video { filter: drop-shadow(0 0 18px rgba(0,238,255,0.6)); }
.nav-logo-mark {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 0.9rem; border-radius: 8px;
  color: #94A3B8;
  transition: color .25s, background .25s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; border-radius: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.nav-cta { margin-left: 0.5rem; }
#hamburger {
  display: none;
  width: 40px; height: 40px;
  background: var(--glass); border: 1px solid var(--glass-b);
  border-radius: 10px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
#hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--cyan); border-radius: 2px;
  transition: var(--transition);
}
#hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav — usunięto backdrop-filter, tło prawie pełne (0.98) */
#mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  z-index: 490;
  background: rgba(8,14,28,0.98);
  border-bottom: 1px solid var(--glass-b);
  transform: translateY(-110%);
  transition: transform .4s cubic-bezier(0.23,1,0.32,1);
  padding: 1rem 2rem 1.5rem;
}
#mobile-nav.open { transform: translateY(0); }
#mobile-nav .nav-link { display: block; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1rem; }
#mobile-nav .nav-link:last-child { border: none; }

/* ---- Content wrapper ---- */
.page-content { position: relative; z-index: 2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 2rem; }
.section {
  padding: 6rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 0 900px;
}
.section-sm { padding: 4rem 0; }

/* ---- Glow line ---- */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 30%, var(--magenta) 70%, transparent 100%);
  opacity: 0.25;
  margin: 0 2rem;
}

/* ---- Cards — blur z 16 → 8px ---- */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(0,238,255,0.3);
  box-shadow: 0 12px 50px rgba(0,238,255,0.08);
  transform: translateY(-4px);
}
.card-tilt { transform-style: preserve-3d; cursor: none; }

/* ---- Icon box ---- */
.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-box-c { background: rgba(0,238,255,0.1); border: 1px solid rgba(0,238,255,0.2); }
.icon-box-m { background: rgba(255,0,153,0.1); border: 1px solid rgba(255,0,153,0.2); }
.icon-box-p { background: rgba(123,92,255,0.12); border: 1px solid rgba(123,92,255,0.25); }

/* ---- Scroll fade animation ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(0.23,1,0.32,1), transform .7s cubic-bezier(0.23,1,0.32,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }

/* ---- Keyframes ---- */
@keyframes borderPulse {
  0%,100% { border-color: rgba(0,238,255,0.15); }
  50% { border-color: rgba(0,238,255,0.45); box-shadow: 0 0 20px rgba(0,238,255,0.1); }
}
.border-pulse { animation: borderPulse 3.5s infinite; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: float 5s ease-in-out infinite; }

@keyframes pulseDot {
  0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(0,238,255,.6); }
  50% { opacity:.7; box-shadow: 0 0 0 6px rgba(0,238,255,0); }
}
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  animation: pulseDot 2s infinite;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,238,255,0.2); border-radius: 3px; }

/* ---- Form inputs ---- */
.input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,238,255,0.18);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,238,255,0.1);
}
.input::placeholder { color: var(--text-dim); }
select.input {
  background-color: #0D1529;
  color: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300EEFF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
select.input option { background: #0D1529; color: var(--white); }
.input-label {
  display: block; margin-bottom: 0.45rem;
  font-size: 0.78rem; font-weight: 600;
  color: #64748B; text-transform: uppercase;
  letter-spacing: 0.06em; font-family: 'Syne', sans-serif;
}

/* ---- Footer ---- */
footer {
  position: relative; z-index: 2;
  background: rgba(5,8,18,.98);
  border-top: 1px solid rgba(0,238,255,0.08);
  padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-link {
  display: block;
  font-size: 0.85rem; color: #475569;
  padding: 0.3rem 0;
  transition: color .25s;
}
.footer-link:hover { color: var(--cyan); }
.footer-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.8rem; color: var(--white);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.78rem; color: #334155;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .nav-links, .nav-cta { display: none; }
  #hamburger { display: flex; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .nav-inner { justify-content: center; position: relative; }
  #hamburger { position: absolute; right: 0; }
  .nav-logo video {
    width: 64px !important; height: 64px !important;
    border-radius: 14px !important;
    filter: drop-shadow(0 0 14px rgba(0,238,255,0.5));
  }
  .footer-grid { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .footer-grid > div { padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .footer-grid > div:last-child { border-bottom: none; }
  .footer-link { display: inline-block; padding: 0.4rem 0.5rem; font-size: 0.9rem; }
  .footer-title { margin-bottom: 0.65rem; }
  .nav-logo { justify-content: center; }
  .footer-grid .nav-logo { justify-content: center; margin-bottom: .5rem !important; }
  .footer-grid video { width: 56px !important; height: 56px !important; border-radius: 12px !important; filter: drop-shadow(0 0 10px rgba(0,238,255,0.4)); }
  .footer-grid p { max-width: 100% !important; font-size: .88rem !important; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-grid .btn { margin: .75rem auto 0 !important; display: inline-flex !important; }
}

/* ---- Mobile cursor fix ---- */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto !important; }
  a { cursor: pointer !important; }
  button { cursor: pointer !important; }
  [onclick] { cursor: pointer !important; }
  .service-card, .price-card, .faq-item, .faq-trigger,
  .ctrl-btn, .nav-link, .btn { cursor: pointer !important; }
  #ds-cursor, #ds-cursor-ring { display: none !important; }
}
