:root{
  --bg:#08111a;
  --bg2:#050b12;

  --card:rgba(10,22,34,.82);
  --card2:rgba(6,14,22,.42);
  --line:rgba(77,149,184,.22);

  --text:#e6f3ff;
  --muted:#8fa8bb;

  --accent:#5ee7ff;   /* cyan */
  --accent2:#7cffc4;  /* telemetry green */
  --ok:#8bffb0;       /* status green */
  --warn:#ffb85c;     /* amber */

  --shadow:0 18px 60px rgba(0,0,0,.42);
  --glow:0 0 0 1px rgba(94,231,255,.08), 0 0 24px rgba(94,231,255,.08);

  --r:16px;
  --max:1100px;
}

/* =========================
   RESET
========================= */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(94,231,255,.08), transparent 60%),
    radial-gradient(900px 500px at 88% 12%, rgba(124,255,196,.06), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
  position:relative;
}

/* delikatna siatka techniczna */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background-image:
    linear-gradient(rgba(94,231,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,231,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.12));
}

/* miękki vignette */
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(circle at center, transparent 45%, rgba(0,0,0,.18) 100%);
}

header, main, footer{position:relative; z-index:1}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline; text-underline-offset:3px}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}

/* =========================
   HEADER
========================= */
header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(5,11,18,.88), rgba(5,11,18,.62));
  border-bottom:1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background: conic-gradient(from 180deg, var(--accent), var(--accent2), var(--ok), var(--accent));
  box-shadow:
    0 0 0 1px rgba(94,231,255,.18),
    0 0 18px rgba(94,231,255,.45);
  flex:0 0 auto;
}

.brand h1{
  margin:0;
  font-size:1.02rem;
  font-weight:700;
  line-height:1.15;
  letter-spacing:.2px;
}

.brand .sub{
  margin:0;
  font-size:.85rem;
  color:var(--muted);
  line-height:1.15;
}

nav{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.navlink{
  padding:9px 12px;
  border-radius:10px;
  border:1px solid transparent;
  color:var(--muted);
  transition:.18s ease;
  white-space:nowrap;
  font-size:.93rem;
}

.navlink:hover{
  color:var(--text);
  border-color:rgba(94,231,255,.22);
  background:rgba(10,22,34,.58);
  box-shadow: inset 0 0 0 1px rgba(94,231,255,.04);
  text-decoration:none;
}

.navlink.primary{
  color:var(--text);
  border-color:rgba(94,231,255,.26);
  background:linear-gradient(180deg, rgba(94,231,255,.10), rgba(94,231,255,.04));
  box-shadow: inset 0 0 0 1px rgba(94,231,255,.05);
}

/* =========================
   MAIN / CARDS
========================= */
main{padding:22px 0 46px}

.card{
  position:relative;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(10,22,34,.86), rgba(9,18,28,.66));
  border:1px solid rgba(77,149,184,.24);
  border-radius:var(--r);
  box-shadow: var(--shadow), var(--glow);
  padding:18px;
}

.card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(94,231,255,.26), transparent);
  pointer-events:none;
}

.card.soft{
  background: rgba(6,14,22,.34);
  border:1px solid rgba(77,149,184,.18);
  box-shadow:none;
}

.hero{padding:26px 0 14px}

.heroGrid{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:18px;
  align-items:stretch;
}

@media (max-width: 920px){
  .heroGrid{grid-template-columns:1fr}
}

.kicker{
  display:inline-block;
  padding:8px 14px;
  border-radius:14px;
  border:1px solid rgba(77,149,184,.24);
  background: rgba(6,14,22,.44);
  color:var(--muted);
  font-size:.86rem;
  line-height:1.5;
  max-width:100%;
  box-shadow: inset 0 0 0 1px rgba(94,231,255,.03);
}
.kicker b{color:var(--text)}

h2.title{
  margin:12px 0 8px;
  font-size:2rem;
  line-height:1.15;
  letter-spacing:.2px;
}

.grad{
  background: linear-gradient(90deg, var(--text), rgba(94,231,255,.95) 42%, rgba(124,255,196,.92));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.lead{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.7;
  font-size:1.02rem;
}

.meta{
  margin:8px 0 0;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.6;
}

.meta a{color:rgba(94,231,255,.96)}

.ctaRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(77,149,184,.24);
  background: rgba(6,14,22,.44);
  color:var(--text);
  transition:.18s ease;
  font-weight:600;
  font-size:.95rem;
  box-shadow: inset 0 0 0 1px rgba(94,231,255,.03);
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(10,22,34,.68);
  border-color: rgba(94,231,255,.26);
  box-shadow:
    inset 0 0 0 1px rgba(94,231,255,.04),
    0 8px 24px rgba(0,0,0,.18);
  text-decoration:none;
}

.btn.accent{
  border-color: rgba(94,231,255,.28);
  background: linear-gradient(180deg, rgba(94,231,255,.14), rgba(6,14,22,.38));
}

.btn.ok{
  border-color: rgba(124,255,196,.25);
  background: linear-gradient(180deg, rgba(124,255,196,.12), rgba(6,14,22,.34));
}

/* =========================
   TILES / GRID
========================= */
.tiles{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  padding:14px 0 18px;
}

@media (max-width: 920px){
  .tiles{grid-template-columns:1fr}
}

.tile{
  position:relative;
  overflow:hidden;
}

.tile::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(360px 120px at 20% 0%, rgba(94,231,255,.11), transparent 60%),
    radial-gradient(360px 120px at 80% 0%, rgba(124,255,196,.09), transparent 60%);
  pointer-events:none;
}

.tile::after{
  content:"";
  position:absolute;
  right:14px;
  top:14px;
  width:34px;
  height:34px;
  border-top:1px solid rgba(94,231,255,.15);
  border-right:1px solid rgba(94,231,255,.15);
  border-radius:0 10px 0 0;
  pointer-events:none;
}

.tileInner{position:relative}

.tile h3{
  margin:0 0 8px;
  font-size:1.05rem;
}

.tile p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

@media (max-width: 920px){
  .grid2{grid-template-columns:1fr}
}

/* =========================
   TYPOGRAPHY / CONTENT
========================= */
.sectionTitle{
  margin:0 0 10px;
  font-size:1.35rem;
  letter-spacing:.2px;
}

.list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.85;
}

.small{
  font-size:.92rem;
  color:var(--muted);
}

p{
  line-height:1.75;
}

strong, b{
  color:var(--text);
}

/* =========================
   NEWS / LIST ITEMS
========================= */
.newsList{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.newsItem{
  position:relative;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(77,149,184,.22);
  background: rgba(6,14,22,.34);
  transition:.18s ease;
  overflow:hidden;
}

.newsItem::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg, var(--accent), var(--accent2));
  opacity:.7;
}

.newsItem:hover{
  transform: translateY(-1px);
  background: rgba(10,22,34,.58);
  border-color: rgba(94,231,255,.22);
  text-decoration:none;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

.newsItem .d{
  display:inline-block;
  margin-right:10px;
  color:var(--muted);
  font-size:.92rem;
}

.newsItem .t{
  font-weight:700;
}

/* =========================
   FOOTER
========================= */
footer{
  border-top:1px solid var(--line);
  color:var(--muted);
  padding:18px 0 24px;
  font-size:.95rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.06));
}

.footRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}

.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(77,149,184,.22);
  background: rgba(6,14,22,.32);
  font-size:.85rem;
  color:var(--muted);
}

.pill i{
  width:8px;
  height:8px;
  border-radius:50%;
  background: var(--ok);
  box-shadow: 0 0 12px rgba(139,255,176,.45);
  display:inline-block;
}

/* =========================
   INLINE ELEMENTS
========================= */
code, kbd{
  background: rgba(6,14,22,.46);
  border:1px solid rgba(77,149,184,.22);
  padding:2px 6px;
  border-radius:8px;
  color:var(--text);
}

hr{
  border:0;
  border-top:1px solid rgba(77,149,184,.18);
  margin:16px 0;
}

/* =========================
   FORM ELEMENTS
========================= */
input, textarea, select, button{
  font:inherit;
}

input, textarea, select{
  width:100%;
  color:var(--text);
  background: rgba(6,14,22,.5);
  border:1px solid rgba(77,149,184,.22);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}

input::placeholder,
textarea::placeholder{
  color:var(--muted);
}

input:focus, textarea:focus, select:focus{
  border-color: rgba(94,231,255,.34);
  box-shadow: 0 0 0 3px rgba(94,231,255,.08);
}

/* =========================
   TABLES
========================= */
table{
  width:100%;
  border-collapse:collapse;
  border-spacing:0;
  overflow:hidden;
  border-radius:14px;
  border:1px solid rgba(77,149,184,.18);
  background: rgba(6,14,22,.24);
}

th, td{
  padding:12px 14px;
  text-align:left;
  border-bottom:1px solid rgba(77,149,184,.14);
}

th{
  color:var(--text);
  background: rgba(94,231,255,.06);
  font-weight:700;
}

td{
  color:var(--muted);
}

tr:last-child td{
  border-bottom:none;
}

/* =========================
   IMAGE / MEDIA
========================= */
img{
  max-width:100%;
  height:auto;
  border-radius:12px;
}

iframe{
  max-width:100%;
  border:0;
  border-radius:12px;
}

/* =========================
   UTILITIES
========================= */
.status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  border:1px solid rgba(77,149,184,.18);
  background: rgba(6,14,22,.32);
  color:var(--muted);
}

.status::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--ok);
  box-shadow: 0 0 10px rgba(139,255,176,.4);
}

.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:.8rem;
  color:var(--text);
  border:1px solid rgba(94,231,255,.2);
  background: rgba(94,231,255,.08);
}

.panel{
  background: rgba(6,14,22,.28);
  border:1px solid rgba(77,149,184,.18);
  border-radius:14px;
  padding:14px;
}

.panelTitle{
  margin:0 0 8px;
  font-size:1rem;
  font-weight:700;
  color:var(--text);
}

.muted{color:var(--muted)}
.center{text-align:center}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 720px){
  .wrap{padding:0 16px}

  .top{
    align-items:flex-start;
    flex-direction:column;
  }

  nav{
    width:100%;
    justify-content:flex-start;
  }

  h2.title{
    font-size:1.72rem;
  }

  .card{
    padding:16px;
  }

  .ctaRow{
    flex-direction:column;
    align-items:stretch;
  }

  .btn{
    width:100%;
  }
}

/* =========================
   LIGHT MODE
========================= */
body.light{
  --bg:#eef4fb;
  --bg2:#e6edf7;

  --card:rgba(255,255,255,.92);
  --card2:rgba(248,251,255,.82);
  --line:rgba(114,140,168,.22);

  --text:#0d1b2a;
  --muted:#54657a;

  --accent:#0ea5e9;
  --accent2:#10b981;
  --ok:#16a34a;
  --warn:#d97706;

  --shadow:0 16px 44px rgba(30,41,59,.08);
  --glow:0 0 0 1px rgba(14,165,233,.05), 0 0 18px rgba(14,165,233,.05);
}

body.light{
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(14,165,233,.08), transparent 60%),
    radial-gradient(900px 500px at 88% 12%, rgba(16,185,129,.06), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

body.light::before{
  background-image:
    linear-gradient(rgba(14,165,233,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.045) 1px, transparent 1px);
}

body.light header{
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.82));
}

body.light .card{
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,250,255,.88));
}

body.light .card.soft,
body.light .panel,
body.light .newsItem,
body.light .btn,
body.light .pill,
body.light .status,
body.light code,
body.light kbd,
body.light input,
body.light textarea,
body.light select{
  background: rgba(255,255,255,.7);
}

body.light .navlink:hover{
  background: rgba(14,165,233,.06);
}

body.light .navlink.primary{
  background: linear-gradient(180deg, rgba(14,165,233,.10), rgba(14,165,233,.04));
}

/* =========================
   PINK MODE
========================= */
body.pink{
  --bg:#140016;
  --bg2:#0c0010;

  --card:rgba(40,0,50,.78);
  --card2:rgba(25,0,35,.42);
  --line:rgba(255,0,150,.26);

  --text:#ffe6fa;
  --muted:#f6b2da;

  --accent:#ff008c;
  --accent2:#ff63d8;
  --ok:#ff92e8;
  --warn:#ffb366;

  --shadow:0 18px 60px rgba(0,0,0,.45);
  --glow:0 0 0 1px rgba(255,0,140,.06), 0 0 24px rgba(255,0,140,.10);
}

body.pink{
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(255,0,140,.22), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(255,80,200,.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

body.pink::before{
  background-image:
    linear-gradient(rgba(255,0,140,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,140,.045) 1px, transparent 1px);
}

body.pink header{
  background: linear-gradient(180deg, rgba(12,0,16,.88), rgba(12,0,16,.62));
}

body.pink .navlink.primary{
  border-color: rgba(255,99,216,.28);
  background: linear-gradient(180deg, rgba(255,0,140,.14), rgba(12,0,16,.28));
}