/* ============================================================
   OrbitBytes — theme-aware styles
   Dark theme = defaults in :root, light theme = [data-theme="light"]
   ============================================================ */

:root{
  color-scheme:dark;
  --max:1180px;

  /* surfaces */
  --bg:#050b16;
  --bg-2:#081120;
  --surface:#0a1524;
  --surface-2:#0e1b2e;

  /* text */
  --text:#f1f5f9;
  --muted:#a7b4c9;
  --nav-ink:#cad5e6;
  --eyebrow:#6cc3ff;

  /* accents */
  --accent:#3b82f6;
  --accent-strong:#2563eb;
  --accent-hover:#1d4ed8;
  --accent-ink:#60a5fa;          /* accent used as text on page bg */
  --accent-soft:rgba(59,130,246,.12);

  /* lines & shadows */
  --line:rgba(148,163,184,.17);
  --line-strong:rgba(148,163,184,.3);
  --card-shadow:none;
  --btn-shadow:0 8px 28px rgba(37,99,235,.28);

  /* icons */
  --icon-bg:rgba(59,130,246,.14);
  --icon-ink:#7db8ff;

  /* page background decoration */
  --page-glow:radial-gradient(circle at 78% 6%, rgba(37,99,235,.14), transparent 26%);

  /* hero illustration */
  --hv-cloud:#0c1c33;
  --hv-cloud-stroke:#3b82f6;
  --hv-hex:#0a1a30;
  --hv-hex-stroke:#7db8ff;
  --hv-glyph:#dbeafe;
  --hv-cube-top:#60a5fa;
  --hv-cube-left:#2563eb;
  --hv-cube-right:#1e3f8f;
  --hv-plat-top:#12233d;
  --hv-plat-side:#0a1729;
  --hv-plat-stroke:rgba(96,165,250,.4);
  --hv-dot:#7dd3fc;
  --hv-line:rgba(96,165,250,.45);
  --hv-glow:drop-shadow(0 0 34px rgba(37,99,235,.35));
}

:root[data-theme="light"]{
  color-scheme:light;

  --bg:#f5f8fc;
  --bg-2:#edf2f9;
  --surface:#ffffff;
  --surface-2:#f8fafd;

  --text:#0f172a;
  --muted:#475569;
  --nav-ink:#334155;
  --eyebrow:#1d4ed8;

  --accent:#2563eb;
  --accent-strong:#2563eb;
  --accent-hover:#1d4ed8;
  --accent-ink:#2563eb;
  --accent-soft:rgba(37,99,235,.08);

  --line:#dce4f0;
  --line-strong:#c3d0e4;
  --card-shadow:0 8px 26px rgba(15,23,42,.06);
  --btn-shadow:0 6px 18px rgba(37,99,235,.22);

  --icon-bg:#e8f0fe;
  --icon-ink:#2563eb;

  --page-glow:radial-gradient(circle at 78% 6%, rgba(37,99,235,.06), transparent 26%);

  --hv-cloud:#ffffff;
  --hv-cloud-stroke:#93c5fd;
  --hv-hex:#eff5ff;
  --hv-hex-stroke:#2563eb;
  --hv-glyph:#1d4ed8;
  --hv-cube-top:#bfdbfe;
  --hv-cube-left:#60a5fa;
  --hv-cube-right:#3b82f6;
  --hv-plat-top:#e4edfb;
  --hv-plat-side:#c9d9f2;
  --hv-plat-stroke:rgba(37,99,235,.25);
  --hv-dot:#60a5fa;
  --hv-line:rgba(37,99,235,.3);
  --hv-glow:drop-shadow(0 18px 34px rgba(15,23,42,.1));
}

/* ---------- base ---------- */

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  background:var(--page-glow), var(--bg);
  color:var(--text);
  line-height:1.6;
}
.container{width:min(var(--max),calc(100% - 40px));margin-inline:auto}
.page-shell{overflow:hidden}

a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}

/* ---------- header ---------- */

.site-header{
  height:88px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  position:relative;z-index:20;
}
.brand{display:inline-flex;color:var(--text)}
.brand .logo{width:178px;height:auto;display:block}
.logo-word{fill:currentColor}


.desktop-nav{display:flex;gap:26px}
.desktop-nav a,.footer a{color:var(--nav-ink);text-decoration:none;font-size:14px}
.desktop-nav a:hover,.footer a:hover{color:var(--accent-ink)}
.desktop-nav a{font-weight:500}

.header-actions{display:flex;align-items:center;gap:12px}

.lang-switch{display:flex;border:1px solid var(--line);border-radius:999px;padding:3px;background:var(--surface)}
.lang-btn{border:0;background:transparent;color:var(--muted);padding:5px 9px;border-radius:999px;cursor:pointer;font-weight:700;font-size:13px}
.lang-btn.active{background:var(--accent-strong);color:#fff}

.theme-toggle{
  width:38px;height:38px;display:grid;place-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:999px;
  color:var(--nav-ink);cursor:pointer;padding:0;
}
.theme-toggle:hover{color:var(--accent-ink);border-color:var(--line-strong)}
.theme-toggle svg{width:18px;height:18px}
.icon-moon{display:none}
:root[data-theme="light"] .icon-moon{display:block}
:root[data-theme="light"] .icon-sun{display:none}

.menu-toggle{display:none;background:transparent;border:1px solid var(--line);color:var(--text);border-radius:10px;padding:8px 10px;cursor:pointer;font-size:16px}

/* ---------- buttons ---------- */

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:10px;border:0;cursor:pointer;
  background:var(--accent-strong);color:#fff;
  text-decoration:none;font-weight:600;font-size:15px;
  padding:13px 22px;
  box-shadow:var(--btn-shadow);
  transition:.18s background,.18s transform,.18s box-shadow;
}
.btn:hover{background:var(--accent-hover);transform:translateY(-1px)}
.btn-small{padding:9px 16px;font-size:14px}
.btn-ghost{background:var(--surface);border:1px solid var(--line-strong);color:var(--text);box-shadow:none}
.btn-ghost:hover{background:var(--surface-2);border-color:var(--accent);transform:none}

/* ---------- hero ---------- */

.hero{
  min-height:620px;
  display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:40px;
  padding:36px 0 84px;
}
.eyebrow{font-size:12px;letter-spacing:.18em;font-weight:800;color:var(--eyebrow);margin-bottom:16px}
.hero h1{
  font-size:clamp(34px,3.4vw,44px);
  line-height:1.12;letter-spacing:-.03em;margin:0 0 20px;font-weight:700;
}
.hero h1 span{color:var(--accent-ink)}
.hero p{font-size:17px;color:var(--muted);max-width:640px;margin:0}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:32px}

.hero-visual{position:relative;display:grid;place-items:center}
.hero-visual svg{width:100%;max-width:560px;height:auto;filter:var(--hv-glow)}

.hv-cloud{fill:var(--hv-cloud);stroke:var(--hv-cloud-stroke);stroke-width:.18}
.hv-hex{fill:var(--hv-hex);stroke:var(--hv-hex-stroke);stroke-width:2.5}
.hv-glyph{fill:var(--hv-glyph);font-weight:700;font-family:Inter,system-ui,sans-serif}
.hv-cube-top{fill:var(--hv-cube-top)}
.hv-cube-left{fill:var(--hv-cube-left)}
.hv-cube-right{fill:var(--hv-cube-right)}
.hv-plat-top{fill:var(--hv-plat-top);stroke:var(--hv-plat-stroke)}
.hv-plat-side{fill:var(--hv-plat-side)}
.hv-dot{fill:var(--hv-dot)}
.hv-line{stroke:var(--hv-line);stroke-dasharray:3 7;fill:none;stroke-width:1.5;stroke-linecap:round}

.hv-float{animation:hv-float 7s ease-in-out infinite}
.hv-cubes{animation:hv-float 9s ease-in-out infinite reverse}
@keyframes hv-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@media (prefers-reduced-motion:reduce){.hv-float,.hv-cubes{animation:none}}

/* ---------- sections ---------- */

.section{padding:92px 0}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:36px}
.section-heading h2,.cloud-section h2,.stats-section h2,.contact-card h2{
  font-size:clamp(30px,3.4vw,44px);line-height:1.15;letter-spacing:-.025em;margin:0;font-weight:700;
}
.section-heading p{max-width:520px;color:var(--muted);margin:0}

/* ---------- services ---------- */

.card-grid{display:grid;gap:18px}
.services-grid{grid-template-columns:repeat(3,1fr)}
.service-card{
  background:var(--surface);
  border:1px solid var(--line);border-radius:14px;
  padding:26px;box-shadow:var(--card-shadow);
  transition:.18s border-color,.18s transform;
}
.service-card:hover{border-color:var(--accent);transform:translateY(-3px)}
.service-card .icon{
  width:46px;height:46px;border-radius:11px;
  display:grid;place-items:center;
  background:var(--icon-bg);color:var(--icon-ink);
  margin-bottom:18px;
}
.service-card .icon svg{width:23px;height:23px}
.service-card h3{font-size:18px;margin:0 0 8px}
.service-card p{color:var(--muted);margin:0;font-size:14.5px}

/* ---------- cloud ---------- */

.cloud-section{background:var(--bg-2);border-block:1px solid var(--line)}
.cloud-layout{display:grid;grid-template-columns:.92fr 1.08fr;gap:64px;align-items:center}
.cloud-layout p{color:var(--muted);max-width:540px}
.provider-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.provider-row span{
  padding:11px 18px;border:1px solid var(--line);border-radius:11px;
  background:var(--surface);font-weight:600;font-size:14px;box-shadow:var(--card-shadow);
}

.capability-list{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:1fr 1fr;gap:10px 28px;
}
.capability-list li{display:flex;align-items:center;gap:12px;padding:8px 0;font-size:15px}
.capability-list li::before{
  content:"✓";flex:none;
  width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--icon-bg);color:var(--icon-ink);
  font-size:13px;font-weight:700;
}

/* ---------- technologies ---------- */

.tech-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.tech-col{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--card-shadow)}
.tech-col h3{font-size:15px;margin:0 0 14px;color:var(--accent-ink)}
.tech-col span{display:block;color:var(--muted);font-size:14px;padding:6px 0;border-bottom:1px dashed var(--line)}
.tech-col span:last-child{border:0}

/* ---------- projects ---------- */

.projects-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.project-card{
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--surface);
  border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--card-shadow);
  transition:.18s border-color,.18s transform;
}
.project-card:hover{border-color:var(--accent);transform:translateY(-3px)}
.project-shot{
  display:block;width:100%;aspect-ratio:16/9;object-fit:cover;
  background:var(--surface-2);border-bottom:1px solid var(--line);
}
/* Zrzut jako przycisk: karta pokazuje scenę, szczegóły otwierają się w podglądzie. */
.shot-zoom{
  display:block;position:relative;width:100%;padding:0;border:0;
  background:none;cursor:zoom-in;line-height:0;
}
.shot-zoom__badge{
  position:absolute;right:12px;bottom:12px;
  display:flex;align-items:center;gap:6px;
  padding:6px 11px;border-radius:999px;
  background:rgba(8,17,32,.72);color:#e8f0fe;
  font-size:12.5px;font-weight:600;line-height:1;
  backdrop-filter:blur(4px);
  transition:.18s background,.18s transform;
}
.shot-zoom__badge svg{width:15px;height:15px}
.shot-zoom:hover .shot-zoom__badge,
.shot-zoom:focus-visible .shot-zoom__badge{background:var(--accent-strong);transform:translateY(-1px)}
.shot-zoom:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* ---------- podgląd zrzutów ---------- */

.lightbox{
  position:fixed;inset:0;z-index:120;
  display:grid;grid-template-columns:64px 1fr 64px;align-items:center;
  gap:8px;padding:24px 20px 16px;
  background:rgba(3,8,20,.88);backdrop-filter:blur(6px);
}
.lightbox[hidden]{display:none}
.lightbox__stage{
  grid-column:2;display:flex;flex-direction:column;align-items:center;gap:14px;
  min-width:0;margin:0;
}
.lightbox__img{
  max-width:100%;max-height:calc(100vh - 210px);
  border-radius:12px;background:#fff;cursor:zoom-in;
  box-shadow:0 30px 70px rgba(0,0,0,.55);
}
/* Drugie kliknięcie pokazuje zrzut w skali 1:1 — na telefonie inaczej nie da się przeczytać
   interfejsu złapanego w oknie 1440 px. Wtedy scena się przewija zamiast skalować. */
.lightbox__stage.is-zoomed{
  align-self:stretch;width:100%;max-height:calc(100vh - 190px);
  overflow:auto;align-items:flex-start;
}
.lightbox__stage.is-zoomed .lightbox__img{
  max-width:none;max-height:none;width:auto;cursor:zoom-out;border-radius:0;
}
.lightbox__caption{
  display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;justify-content:center;
  color:#dbe4f2;font-size:14.5px;text-align:center;
}
.lightbox__counter{color:#8fa3bf;font-size:13px;font-variant-numeric:tabular-nums}
.lightbox__close{
  position:absolute;top:18px;right:20px;
  width:40px;height:40px;display:grid;place-items:center;
  border:1px solid rgba(148,163,184,.3);border-radius:50%;
  background:rgba(15,25,42,.7);color:#e8f0fe;cursor:pointer;transition:.16s background;
}
.lightbox__nav{
  width:48px;height:48px;display:grid;place-items:center;justify-self:center;
  border:1px solid rgba(148,163,184,.3);border-radius:50%;
  background:rgba(15,25,42,.7);color:#e8f0fe;cursor:pointer;transition:.16s background;
}
.lightbox__nav--prev{grid-column:1}
.lightbox__nav--next{grid-column:3}
.lightbox__close:hover,.lightbox__nav:hover{background:var(--accent-strong)}
.lightbox__close svg,.lightbox__nav svg{width:20px;height:20px}
.lightbox__thumbs{
  grid-column:1 / -1;display:flex;gap:10px;justify-content:center;flex-wrap:wrap;
  max-width:100%;
}
.lightbox__thumb{
  width:96px;height:56px;padding:0;overflow:hidden;cursor:pointer;
  border:1px solid rgba(148,163,184,.3);border-radius:8px;background:#0a1524;
  opacity:.55;transition:.16s opacity,.16s border-color;
}
.lightbox__thumb img{width:100%;height:100%;object-fit:cover;object-position:top left;display:block}
.lightbox__thumb:hover{opacity:.85}
.lightbox__thumb[aria-current="true"]{opacity:1;border-color:var(--accent)}
body.lightbox-open{overflow:hidden}

@media (max-width:780px){
  .lightbox{grid-template-columns:44px 1fr 44px;padding:64px 12px 12px}
  .lightbox__img{max-height:calc(100vh - 240px)}
  .lightbox__nav{width:40px;height:40px}
  .lightbox__thumbs{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding-bottom:4px}
  .lightbox__thumb{flex:0 0 auto;width:76px;height:46px}
}

.project-body{padding:22px 24px 24px}
.project-body h3{margin:0 0 8px;font-size:19px}
.project-body p{margin:0;color:var(--muted);font-size:14.5px}
.project-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.project-tags span{
  font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;
  background:var(--icon-bg);color:var(--icon-ink);
}

/* ---------- stats ---------- */

.stats-section{background:var(--bg-2);border-block:1px solid var(--line)}
.stats-band{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
  margin-top:38px;
}
.stat{
  display:flex;align-items:flex-start;gap:14px;
  padding:22px;border:1px solid var(--line);border-radius:14px;
  background:var(--surface);box-shadow:var(--card-shadow);
}
.stat-icon{
  flex:none;width:40px;height:40px;border-radius:10px;
  display:grid;place-items:center;
  background:var(--icon-bg);color:var(--icon-ink);
}
.stat-icon svg{width:20px;height:20px}
.stat strong{display:block;font-size:30px;line-height:1.1;color:var(--text);letter-spacing:-.02em}
/* Tylko opis pod liczbą — `.stat span` łapało też kafelek ikony (też jest spanem) i przebijało
   mu `display:grid` na `block`, przez co glif siadał w rogu zamiast na środku. */
.stat > div span{color:var(--muted);font-size:13.5px;line-height:1.4;display:block;margin-top:4px}

/* ---------- contact CTA ---------- */

.contact-card{
  display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;
  padding:44px;border-radius:20px;
  border:1px solid var(--line-strong);
  background:linear-gradient(135deg,var(--accent-soft),transparent 70%),var(--surface);
  box-shadow:var(--card-shadow);
}
.contact-card{align-items:start}
.contact-card p{color:var(--muted);max-width:640px}
.contact-meta{font-size:14px;line-height:1.9;margin-top:22px}
.contact-meta a{color:var(--accent-ink);text-decoration:none;font-weight:600}

.contact-form{display:flex;flex-direction:column;gap:14px}
.contact-form label{display:flex;flex-direction:column;gap:6px;font-size:13.5px;font-weight:600}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea{
  padding:12px 14px;border-radius:10px;
  border:1px solid var(--line-strong);
  background:var(--surface);color:var(--text);
  font:inherit;font-weight:400;resize:vertical;
}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}
.contact-form .consent{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;color:var(--muted);font-size:13px;line-height:1.5}
.contact-form .consent input{margin-top:3px;accent-color:var(--accent-strong)}
.contact-form .consent a{color:var(--accent-ink)}
.contact-form .btn{align-self:flex-start}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.form-status{margin:0;font-size:14px;display:none}
.form-status.ok{display:block;color:#15803d}
.form-status.err{display:block;color:#dc2626}
:root:not([data-theme="light"]) .form-status.ok{color:#4ade80}
:root:not([data-theme="light"]) .form-status.err{color:#f87171}

/* ---------- footer ---------- */

.footer{border-top:1px solid var(--line);background:var(--bg-2)}
.footer-grid{
  display:grid;grid-template-columns:1.35fr .75fr 1fr;gap:44px;
  padding:52px 0 36px;
}
.footer-brand .logo{width:168px;height:auto;display:block;color:var(--text)}
.footer-brand p{color:var(--muted);max-width:340px;font-size:14px;margin:16px 0 20px}
.social-row{display:flex;gap:10px}
.social-row a{
  width:36px;height:36px;border-radius:9px;
  display:grid;place-items:center;
  border:1px solid var(--line);background:var(--surface);
  color:var(--nav-ink);
}
.social-row a:hover{color:var(--accent-ink);border-color:var(--accent)}
/* the display:grid above beats the hidden attribute, so spell it out */
.social-row a[hidden]{display:none}
.social-row svg{width:17px;height:17px}

.footer-col h3{font-size:14px;margin:6px 0 16px;color:var(--text)}
.footer-col a,.footer-item{display:flex;align-items:center;gap:10px;padding:5px 0;font-size:14px;color:var(--nav-ink);text-decoration:none}
.footer-item{color:var(--muted)}
.footer-item a{padding:0}
.footer-item svg{flex:none;width:16px;height:16px;color:var(--icon-ink)}

.footer-bottom{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:18px 0 26px;border-top:1px solid var(--line);
  color:var(--muted);font-size:12.5px;
}
.footer-bottom a{color:var(--muted);font-size:12.5px;text-decoration:none;margin-left:14px}
.footer-bottom a:hover{color:var(--accent-ink)}

/* ---------- legal pages ---------- */

.legal-top{
  width:min(840px,calc(100% - 48px));margin:28px auto 0;
  display:flex;justify-content:space-between;align-items:center;
}
.legal-top a{color:var(--accent-ink);text-decoration:none;font-size:14px}
.legal{max-width:840px;margin:30px auto 0;padding:0 24px 80px}
.legal h1{font-size:40px;letter-spacing:-.02em}
.legal h2{margin-top:34px}
.legal p,.legal li{color:var(--muted)}
.legal a{color:var(--accent-ink)}

/* ---------- responsive ---------- */

.mobile-nav{display:none}
.center{text-align:center}

@media(max-width:1020px){
  .desktop-nav{display:none}
  .menu-toggle{display:block}
  .site-header.mobile-open{height:auto;padding:20px 0 26px;align-items:flex-start;flex-wrap:wrap}
  .site-header.mobile-open .desktop-nav{display:flex;order:3;width:100%;flex-direction:column;gap:14px;padding-top:10px}
  .hero{grid-template-columns:1fr;padding-top:24px;min-height:auto}
  .hero-visual svg{max-width:440px}
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .cloud-layout{grid-template-columns:1fr;gap:36px}
  .tech-grid{grid-template-columns:repeat(2,1fr)}
  .stats-band{grid-template-columns:repeat(2,1fr)}
  .contact-card{grid-template-columns:1fr}
  .contact-actions{align-items:flex-start}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
}

@media(max-width:640px){
  .container{width:min(var(--max),calc(100% - 26px))}
  .site-header{height:76px}
  .brand .logo{width:150px}
  .lang-switch{display:none}
  .site-header.mobile-open .lang-switch{display:flex}
  .header-actions .btn-small{display:none}
  .hero{padding-bottom:56px}
  .hero p{font-size:16px}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%}
  .hero-visual svg{max-width:330px}
  .section{padding:68px 0}
  .section-heading{align-items:flex-start;flex-direction:column;gap:14px}
  .services-grid,.tech-grid,.stats-band,.projects-grid{grid-template-columns:1fr}
  .capability-list{grid-template-columns:1fr}
  .contact-card{padding:28px 22px}
  .contact-actions .btn{width:100%}
  .footer-grid{grid-template-columns:1fr;gap:30px;padding:40px 0 28px}
  .legal h1{font-size:32px}
}
