/* =============================================
   KOLIBRISAT — main.css
   Dark theme · Accent: #704bfe #cc76e3 #11d4f1 #52cdd1
   ============================================= */

/* ---------- RESET & ROOT ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* brand colours */
  --c-violet:   #704bfe;
  --c-orchid:   #cc76e3;
  --c-cyan:     #11d4f1;
  --c-teal:     #52cdd1;

  /* derived */
  --c-violet-dim:  rgba(112, 75, 254, 0.18);
  --c-cyan-dim:    rgba(17, 212, 241, 0.12);
  --c-orchid-dim:  rgba(204, 118, 227, 0.14);

  /* backgrounds */
  --bg-base:    #080810;
  --bg-surface: #0e0e1a;
  --bg-card:    #13131f;
  --bg-card-2:  #181826;

  /* text */
  --txt-primary:   #e8e6f5;
  --txt-secondary: #9390b0;
  --txt-muted:     #5a5878;

  /* borders */
  --border:        rgba(255,255,255,0.07);
  --border-bright: rgba(112, 75, 254, 0.35);

  /* spacing */
  --nav-h: 68px;

  /* typography */
  --font-display: 'Exo 2', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-base);
  color: var(--txt-primary);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--c-violet); border-radius: 99px; }

/* ---------- SELECTION ---------- */
::selection { background: var(--c-violet); color: #fff; }

/* ---------- MATERIAL SYMBOLS ---------- */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: inherit;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
}

/* ---------- NOISE OVERLAY ---------- */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
}

/* ---------- BACKGROUND ORBS ---------- */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.28;
  animation: orb-drift 20s ease-in-out infinite alternate;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--c-violet) 0%, transparent 70%);
  top: -180px; left: -120px;
  animation-duration: 22s;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--c-cyan) 0%, transparent 70%);
  bottom: -140px; right: -100px;
  animation-duration: 18s; animation-delay: -6s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--c-orchid) 0%, transparent 70%);
  top: 40%; left: 55%;
  animation-duration: 26s; animation-delay: -12s; opacity: 0.18;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-20px, 50px) scale(0.95); }
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 8, 16, 0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease-out), border-color 0.3s;
}
.navbar.scrolled {
  background: rgba(8, 8, 16, 0.92);
  border-bottom-color: var(--border-bright);
}

.navbar__inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  gap: 2rem;
}

/* Brand */
.navbar__brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; flex-shrink: 0;
}
.navbar__logo {
  width: 38px; height: 38px;
  transition: transform 0.4s var(--ease-spring);
  flex-shrink: 0;
}
.navbar__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.navbar__brand:hover .navbar__logo { transform: rotate(8deg) scale(1.08); }

.navbar__wordmark {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--txt-primary);
}
.navbar__wordmark .accent { color: var(--c-cyan); }

/* Nav links */
.navbar__nav {
  display: flex; align-items: center; gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--txt-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-violet), var(--c-cyan));
  border-radius: 2px;
  transition: left 0.25s var(--ease-out), right 0.25s var(--ease-out);
}
.nav-link:hover { color: var(--txt-primary); background: rgba(255,255,255,0.04); }
.nav-link:hover::after { left: 12px; right: 12px; }
.nav-link--active { color: var(--txt-primary); }
.nav-link--active::after { left: 12px; right: 12px; }

/* Dropdown nav items */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown__btn {
  display: flex;
  align-items: center;
  padding: 0.2rem 0.1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--txt-muted);
  transition: color 0.2s;
  margin-left: -0.35rem;
}
.nav-dropdown__btn .material-symbols-rounded {
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease-out);
}
.nav-dropdown--open .nav-dropdown__btn { color: var(--txt-primary); }
.nav-dropdown--open .nav-dropdown__btn .material-symbols-rounded { transform: rotate(180deg); }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.4rem;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s var(--ease-out);
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-dropdown--open .nav-dropdown__menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
/* Invisible bridge fills the gap so moving the cursor into the menu doesn't lose hover */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -1.4rem;
  left: -1.5rem;
  right: -1.5rem;
  height: 1.4rem;
}
.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  color: var(--txt-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown__item .material-symbols-rounded { font-size: 1rem; color: var(--txt-muted); }
.nav-dropdown__item:hover { background: rgba(255,255,255,0.06); color: var(--txt-primary); }
.nav-dropdown__item:hover .material-symbols-rounded { color: var(--c-teal); }

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--c-teal);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s var(--ease-spring), background 0.2s, border-color 0.2s;
  z-index: 300;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.scroll-top-btn .material-symbols-rounded { font-size: 1.3rem; }
.scroll-top-btn--visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--c-teal); color: var(--bg-base); border-color: var(--c-teal); }

/* Burger */
.navbar__burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.navbar__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--txt-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- PAGE LAYOUT ---------- */
.page-main {
  position: relative; z-index: 1;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ---------- SECTION WRAPPER ---------- */
.section {
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 2rem;
}
.section--full { max-width: none; padding-left: 0; padding-right: 0; }
.section--narrow { max-width: 860px; }

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-cyan);
  background: var(--c-cyan-dim);
  border: 1px solid rgba(17,212,241,0.2);
  border-radius: 99px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s var(--ease-out) both;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  animation: fade-up 0.6s 0.1s var(--ease-out) both;
}
.hero__title .line-2 {
  display: block;
  background: linear-gradient(90deg, var(--c-violet), var(--c-orchid) 40%, var(--c-cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--txt-secondary);
  max-width: 540px;
  animation: fade-up 0.6s 0.2s var(--ease-out) both;
}

.hero__cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
  animation: fade-up 0.6s 0.3s var(--ease-out) both;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer; border: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--c-violet), var(--c-orchid));
  color: #fff;
  box-shadow: 0 0 20px rgba(112,75,254,0.35);
}
.btn--primary:hover { box-shadow: 0 0 35px rgba(112,75,254,0.55); }

.btn--outline {
  background: transparent;
  color: var(--c-cyan);
  border: 1px solid rgba(17,212,241,0.35);
}
.btn--outline:hover {
  background: var(--c-cyan-dim);
  border-color: var(--c-cyan);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(112,75,254,0.15);
}

.card--glow {
  position: relative; overflow: hidden;
}
.card--glow::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-violet), var(--c-cyan));
  opacity: 0;
  transition: opacity 0.3s;
}
.card--glow:hover::before { opacity: 1; }

/* ---------- SECTION HEADING ---------- */
.section-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-violet);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-title .grad {
  background: linear-gradient(90deg, var(--c-violet), var(--c-orchid));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-intro {
  color: var(--txt-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 1rem;
}

/* ---------- DIVIDER ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  margin: 0 auto;
  max-width: 1200px;
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 2rem;
  text-align: center;
}

.footer__brand .navbar__wordmark { font-size: 1.1rem; }
.footer__tagline {
  color: var(--txt-muted); font-size: 0.8rem;
  margin-top: 0.3rem; font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center;
}
.footer__links a {
  font-size: 0.85rem; color: var(--txt-secondary); text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--c-cyan); }

.footer__copy {
  font-size: 0.78rem; color: var(--txt-muted); font-family: var(--font-mono);
  text-align: right;
}

/* ---------- PAGE TRANSITION ---------- */
.page-main { animation: page-in 0.5s var(--ease-out) both; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- UTILITY ANIMATIONS ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(17,212,241,0.2); }
  50%       { box-shadow: 0 0 40px rgba(17,212,241,0.5); }
}

/* reveal-on-scroll (JS adds .visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- GRID HELPERS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- TAG / BADGE ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  border: 1px solid;
}
.tag--violet { color: var(--c-violet); border-color: var(--c-violet); background: var(--c-violet-dim); }
.tag--cyan   { color: var(--c-cyan);   border-color: var(--c-cyan);   background: var(--c-cyan-dim); }
.tag--orchid { color: var(--c-orchid); border-color: var(--c-orchid); background: var(--c-orchid-dim); }

/* ---------- HORIZONTAL RULE ---------- */
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---------- LINK ---------- */
a.inline-link {
  color: var(--c-cyan); text-decoration: none;
  border-bottom: 1px solid rgba(17,212,241,0.3);
  transition: border-color 0.2s;
}
a.inline-link:hover { border-color: var(--c-cyan); }

/* ---------- PLACEHOLDER CONTENT BOX ---------- */
.placeholder-box {
  border: 1px dashed var(--border-bright);
  border-radius: 12px;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--txt-muted);
  font-family: var(--font-mono); font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.placeholder-box p { margin-top: 0.5rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .navbar__nav {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(8,8,16,0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .navbar__nav.open { display: flex; }
  .navbar__burger { display: flex; }

  /* Mobile dropdowns — inline accordion */
  .nav-dropdown { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-dropdown > .nav-link { flex: 1; }
  .nav-dropdown__btn { margin-left: auto; padding: 0.4rem 0.5rem; }
  .nav-dropdown > a.nav-link,
  .nav-dropdown__btn { display: flex; }
  .nav-dropdown__menu {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: all;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.25rem 1rem;
    display: none;
  }
  .nav-dropdown:hover .nav-dropdown__menu { display: none; }
  .nav-dropdown--open .nav-dropdown__menu { display: flex; flex-direction: column; }
  .nav-dropdown__item { font-size: 0.8rem; padding: 0.35rem 0.6rem; }
  .nav-dropdown > a.nav-link,
  .nav-dropdown__btn { flex-direction: row; }
  /* Row layout for link + chevron on mobile */
  .nav-dropdown { flex-wrap: wrap; }
  .nav-dropdown > .nav-link { flex: 1; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__copy { text-align: center; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.8rem; }
  .section { padding: 3.5rem 1.25rem; }
}


/* =============================================
   HOMEPAGE — home-specific styles
   ============================================= */

/* ---------- HERO SPLIT LAYOUT ---------- */
.home-hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 0 2rem 4rem;
}

.home-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 3rem;
}

/* --- text side --- */
.home-hero__text { display: flex; flex-direction: column; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 1.5rem;
  animation: fade-up 0.5s var(--ease-out) both;
}
.hero-eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px var(--c-cyan);
  animation: glow-pulse 2s ease-in-out infinite;
}

.home-hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  margin-bottom: 1.5rem;
}
.home-hero__title-line {
  display: block;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  opacity: 0;
  animation: slide-in-left 0.65s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
.home-hero__title-line--grad {
  background: linear-gradient(100deg, var(--c-violet) 0%, var(--c-orchid) 45%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: slide-in-left 0.65s var(--ease-out) forwards,
             shimmer 4s linear 1s infinite;
  animation-delay: var(--d, 0s), 1s;
}
.home-hero__title-line--small {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  color: var(--txt-secondary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-hero__sub {
  color: var(--txt-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) forwards;
}
.home-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) forwards;
}

/* stats row */
.home-hero__stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) forwards;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-stat__value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--txt-primary);
  letter-spacing: -0.02em;
}
.hero-stat__label {
  font-size: 0.72rem;
  color: var(--txt-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-stat__divider {
  width: 1px; height: 36px;
  background: var(--border-bright);
  opacity: 0.6;
}

/* --- visual side --- */
.home-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fade-in 0.8s var(--ease-out) forwards;
}

.hero-logo-wrap {
  position: relative;
  width: 340px; height: 340px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s linear;
  will-change: transform;
}

.hero-logo-img {
  width: 260px; height: 260px;
  object-fit: contain;
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 28px rgba(112,75,254,0.5))
          drop-shadow(0 0 60px rgba(17,212,241,0.2));
  animation: logo-float 5s ease-in-out infinite;
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
  color: var(--c-teal);
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  animation: fade-in 1s 1.2s both;
}
.scroll-hint__arrow {
  width: 30px; height: 30px;
  border-right: 3px solid var(--c-teal);
  border-bottom: 3px solid var(--c-teal);
  transform: rotate(45deg);
  animation: bounce-down 1.8s ease-in-out infinite;
}

/* --- Keyframes --- */
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes bounce-down {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50%       { transform: rotate(45deg) translate(4px, 4px); opacity: 0.5; }
}


/* ---------- CANSAT EXPLAINER ---------- */
.home-cansat__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.home-cansat__text { }
.home-cansat__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cansat-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.cansat-card:hover {
  border-color: var(--border-bright);
  transform: translateX(6px);
}
.cansat-card__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.cansat-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.cansat-card p {
  color: var(--txt-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}


/* ---------- MISSION CARDS ---------- */
.mission-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.mission-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.mission-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  opacity: 0; transition: opacity 0.3s;
}
.mission-card--primary::before  { background: linear-gradient(90deg, var(--c-violet), var(--c-orchid)); }
.mission-card--secondary::before { background: linear-gradient(90deg, var(--c-orchid), var(--c-cyan)); }
.mission-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(112,75,254,0.18);
}
.mission-card:hover::before { opacity: 1; }

.mission-card__badge { }
.mission-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mission-card__body {
  color: var(--txt-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}
.mission-card__arrow {
  align-self: flex-end;
  font-size: 1.2rem;
  color: var(--c-cyan);
  transition: transform 0.25s var(--ease-spring);
}
.mission-card:hover .mission-card__arrow { transform: translateX(5px); }


/* ---------- TEAM PREVIEW ---------- */
.home-team__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.team-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.team-card__avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--avatar-color, var(--c-violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  color: #fff;
  opacity: 0.9;
  box-shadow: 0 0 20px color-mix(in srgb, var(--avatar-color) 40%, transparent);
}
.team-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
}
.team-card__info { display: flex; flex-direction: column; gap: 0.2rem; }
.team-card__info strong { font-size: 0.9rem; font-weight: 700; }
.team-card__info span  { font-size: 0.78rem; color: var(--txt-muted); font-family: var(--font-mono); }


/* ---------- HOMEPAGE RESPONSIVE ---------- */
@media (max-width: 960px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2rem;
    text-align: center;
  }
  .home-hero__text { align-items: center; }
  .home-hero__sub { text-align: center; }
  .home-hero__visual { order: -1; }
  .hero-logo-wrap { width: 260px; height: 260px; }
  .hero-logo-img { width: 200px; height: 200px; }

  .home-cansat__inner { grid-template-columns: 1fr; gap: 2rem; }
  .mission-cards      { grid-template-columns: 1fr; }
  .team-preview-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .home-hero { padding: 0 1.25rem 3rem; }
  .home-hero__stats { flex-wrap: wrap; gap: 0.75rem; }
  .hero-stat__divider { display: none; }
  .team-preview-grid { grid-template-columns: 1fr; }
}


/* =============================================
   INNER PAGES — shared styles
   ============================================= */

/* ---------- PAGE HERO ---------- */
.page-hero {
  padding: 5rem 2rem 4rem;
  position: relative;
}
.page-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.page-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  animation: fade-up 0.6s var(--ease-out) both;
}
.page-hero__title .grad {
  background: linear-gradient(100deg, var(--c-violet) 0%, var(--c-orchid) 45%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero__sub {
  color: var(--txt-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
  animation: fade-up 0.6s 0.1s var(--ease-out) both;
}
.page-hero .hero-eyebrow {
  animation: fade-up 0.5s var(--ease-out) both;
  margin-bottom: 1.25rem;
}


/* =============================================
   CANSAT PAGE
   ============================================= */

/* ---------- EXPLAINER SPLIT ---------- */
.cansat-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cansat-spec-box {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 2rem;
}
.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-key { color: var(--txt-secondary); }
.spec-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-cyan);
  font-weight: 700;
}

/* ---------- STAGES GRID ---------- */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.stage-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.stage-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.stage-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.stage-card__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.stage-card__body {
  font-size: 0.85rem;
  color: var(--txt-secondary);
  line-height: 1.65;
}

/* ---------- WHY GRID ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.why-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.why-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--txt-secondary);
  line-height: 1.65;
}


/* =============================================
   MISIJA PAGE
   ============================================= */

/* ---------- MISSION OVERVIEW ---------- */
.mission-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 0;
}
.mission-overview--triple {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.5rem;
}
.mission-overview--single {
  grid-template-columns: 1fr;
}
.mission-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.mission-detail-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  opacity: 0; transition: opacity 0.3s;
}
.mission-detail-card--primary::before  { background: linear-gradient(90deg, var(--c-violet), var(--c-orchid)); }
.mission-detail-card--secondary::before { background: linear-gradient(90deg, var(--c-orchid), var(--c-cyan)); }
.mission-detail-card:hover { border-color: var(--border-bright); box-shadow: 0 12px 40px rgba(112,75,254,0.12); }
.mission-detail-card:hover::before { opacity: 1; }

.mission-detail-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.mission-detail-card__icon { font-size: 1.75rem; }
.mission-detail-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.mission-detail-card__body {
  font-size: 0.9rem;
  color: var(--txt-secondary);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.mission-params {
  list-style: none;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mission-params li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.mission-params li:last-child { border-bottom: none; }
.param-key { color: var(--txt-secondary); }
.param-val { font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-cyan); font-weight: 700; }

/* ---------- TIMELINE ---------- */
.timeline {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-violet), var(--c-cyan));
  opacity: 0.25;
}
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item__marker {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  color: var(--txt-muted);
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: border-color 0.25s, color 0.25s;
}
.timeline-item__marker--done {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(17,212,241,0.08);
}
.timeline-item__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.timeline-item__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--txt-muted);
  letter-spacing: 0.05em;
}
.timeline-item__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.timeline-item__body {
  font-size: 0.88rem;
  color: var(--txt-secondary);
  line-height: 1.7;
}

/* ---------- OBJECTIVES GRID ---------- */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.objective-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.objective-card:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.objective-card__icon { font-size: 1.75rem; margin-bottom: 0.75rem; line-height: 1; }
.objective-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.4rem; }
.objective-card p  { font-size: 0.87rem; color: var(--txt-secondary); line-height: 1.65; }


/* =============================================
   TEHNIKA PAGE
   ============================================= */

/* ---------- SUBSYSTEM GRID ---------- */
.subsystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.subsystem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.subsystem-card:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.subsystem-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.subsystem-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.subsystem-card__title { font-size: 1.1rem; font-weight: 800; }
.subsystem-card__body {
  font-size: 0.88rem;
  color: var(--txt-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.subsystem-card__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.subsystem-card__items li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--txt-secondary);
  padding-left: 0.9rem;
  position: relative;
}
.subsystem-card__items li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--c-violet);
}

/* ---------- SPECS TABLE ---------- */
.specs-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background 0.2s;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: rgba(255,255,255,0.02); }
.spec-row__key { color: var(--txt-secondary); }
.spec-row__val { font-family: var(--font-mono); font-size: 0.82rem; color: var(--c-cyan); font-weight: 700; }

/* ---------- SOFTWARE SECTION ---------- */
.sw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sw-feature-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sw-feature-list li {
  font-size: 0.9rem;
  color: var(--txt-secondary);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.sw-feature-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--c-cyan);
  font-weight: 700;
}
.sw-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.sw-block {
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  border: 1px solid;
}
.sw-block small { font-weight: 400; color: var(--txt-muted); display: block; margin-top: 0.15rem; }
.sw-block--cpu    { background: rgba(112,75,254,0.12); border-color: rgba(112,75,254,0.4); color: var(--c-violet); width: 180px; }
.sw-block--sensor { background: rgba(17,212,241,0.08); border-color: rgba(17,212,241,0.3); color: var(--c-cyan); flex: 1; }
.sw-block--storage{ background: rgba(82,205,209,0.08); border-color: rgba(82,205,209,0.3); color: var(--c-teal); flex: 1; }
.sw-block--radio  { background: rgba(204,118,227,0.08); border-color: rgba(204,118,227,0.3); color: var(--c-orchid); flex: 1; }
.sw-block--gs     { background: rgba(112,75,254,0.08); border-color: rgba(112,75,254,0.25); color: var(--txt-secondary); width: 220px; }
.sw-block-row     { display: flex; gap: 0.5rem; width: 100%; }
.sw-arrows        { display: flex; justify-content: space-around; width: 180px; color: var(--txt-muted); font-size: 1.1rem; }
.sw-arrow-down    { color: var(--txt-muted); font-size: 1.1rem; }


/* =============================================
   EKIPA PAGE
   ============================================= */

/* ---------- FULL TEAM GRID ---------- */
.team-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.member-card:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.member-card__avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--avatar-color, var(--c-violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px color-mix(in srgb, var(--avatar-color) 35%, transparent);
}
.member-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
}
.member-card__info { display: flex; flex-direction: column; gap: 0.2rem; }
.member-card__name { font-size: 0.98rem; font-weight: 800; }
.member-card__role {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--c-violet); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.4rem;
}
.member-card__bio { font-size: 0.84rem; color: var(--txt-secondary); line-height: 1.65; }

/* ---------- MENTOR CARD ---------- */
.mentor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  padding: 2.25rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}
.mentor-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--avatar-color, var(--c-orchid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 28px color-mix(in srgb, var(--avatar-color) 40%, transparent);
}
.mentor-card__info { display: flex; flex-direction: column; gap: 0.3rem; }
.mentor-card__info strong { font-size: 1.1rem; font-weight: 800; }
.mentor-card__info span  { font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-orchid); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.mentor-card__info p     { font-size: 0.9rem; color: var(--txt-secondary); line-height: 1.7; }

/* ---------- CTA BOX ---------- */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-violet), var(--c-cyan));
}


/* =============================================
   NOVOSTI PAGE
   ============================================= */

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
  cursor: pointer;
}
.news-card:hover { border-color: var(--border-bright); transform: translateX(6px); }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.news-card__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--txt-muted);
  letter-spacing: 0.05em;
}
.news-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.news-card__body {
  font-size: 0.88rem;
  color: var(--txt-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.news-card__read-more {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-cyan);
  letter-spacing: 0.05em;
  transition: letter-spacing 0.2s;
}
.news-card:hover .news-card__read-more { letter-spacing: 0.1em; }


/* =============================================
   GALERIJA PAGE
   ============================================= */

/* ---------- FILTER BUTTONS ---------- */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.gallery-filter {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--txt-secondary);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.gallery-filter:hover {
  border-color: var(--border-bright);
  color: var(--txt-primary);
}
.gallery-filter--active {
  background: var(--c-violet-dim);
  border-color: var(--c-violet);
  color: var(--txt-primary);
}

/* ---------- GALLERY GRID ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 0.75rem;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item__inner {
  width: 100%; height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}
.gallery-item__inner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-violet-dim), var(--c-cyan-dim));
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item__inner {
  border-color: var(--border-bright);
  background: var(--bg-card-2);
}
.gallery-item:hover .gallery-item__inner::before { opacity: 1; }
.gallery-item__cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-violet);
  position: relative; z-index: 1;
}
.gallery-item__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--txt-secondary);
  text-align: center;
  padding: 0 1rem;
  position: relative; z-index: 1;
  transition: color 0.25s;
}
.gallery-item:hover .gallery-item__label { color: var(--txt-primary); }
.gallery-item__plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--txt-muted);
  margin-top: 0.25rem;
  position: relative; z-index: 1;
  transition: border-color 0.25s, color 0.25s;
}
.gallery-item:hover .gallery-item__plus { border-color: var(--c-cyan); color: var(--c-cyan); }


/* =============================================
   INNER PAGE RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .cansat-explainer   { grid-template-columns: 1fr; gap: 2rem; }
  .stages-grid        { grid-template-columns: repeat(2, 1fr); }
  .mission-overview,
  .mission-overview--triple,
  .mission-overview--single { grid-template-columns: 1fr; }
  .subsystem-grid     { grid-template-columns: 1fr; }
  .sw-split           { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-full-grid     { grid-template-columns: 1fr; }
  .objectives-grid    { grid-template-columns: repeat(2, 1fr); }
  .why-grid           { grid-template-columns: 1fr; }
  .gallery-grid       { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
  .mentor-card        { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 560px) {
  .page-hero          { padding: 3.5rem 1.25rem 3rem; }
  .stages-grid        { grid-template-columns: 1fr; }
  .objectives-grid    { grid-template-columns: 1fr; }
  .gallery-grid       { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--wide { grid-column: span 1; }
  .member-card        { flex-direction: column; align-items: center; text-align: center; }
  .cta-box            { padding: 2rem 1.5rem; }
  .timeline::before   { display: none; }
}


/* =============================================
   NAVBAR — admin controls
   ============================================= */
.navbar__inner {
  /* override to accommodate brand + nav + admin */
  justify-content: space-between;
}
.navbar__admin {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.navbar__admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-muted);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.navbar__admin-btn:hover {
  color: var(--txt-primary);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}
.navbar__admin-btn--active {
  color: var(--c-cyan);
  border-color: rgba(17,212,241,0.25);
  background: var(--c-cyan-dim);
}
.navbar__admin-btn--active:hover {
  border-color: var(--c-cyan);
  background: rgba(17,212,241,0.15);
}
.navbar__admin-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 6px;
  color: var(--txt-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.navbar__admin-logout:hover {
  color: #f87171;
  border-color: rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.08);
}

/* =============================================
   GALLERY — real photo items
   ============================================= */
.gallery-item__inner--photo {
  position: relative;
  padding: 0;
  background: var(--bg-card-2);
}
.gallery-item__inner--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.gallery-item:hover .gallery-item__inner--photo img {
  transform: scale(1.04);
  opacity: 0.85;
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(to top, rgba(8,8,16,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay .gallery-item__cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 0.2rem;
}
.gallery-item__overlay .gallery-item__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  padding: 0;
  text-align: left;
}
.gallery-item__zoom {
  margin-left: auto;
  opacity: 0.8;
  line-height: 1;
}
.gallery-item__zoom .material-symbols-rounded { font-size: 1.3rem; }
.gallery-item__inner { cursor: zoom-in; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox--open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
  gap: 1rem;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  transition: opacity 0.2s;
  display: block;
}
.lightbox__img--loading { opacity: 0.3; }
.lightbox__caption {
  color: var(--txt-secondary);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.18); }
.lightbox__close .material-symbols-rounded { font-size: 1.3rem; }
.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.lightbox__nav .material-symbols-rounded { font-size: 1.8rem; }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }
.lightbox__nav[disabled] { opacity: 0.25; pointer-events: none; }

/* =============================================
   NEWS — empty state
   ============================================= */
.news-empty {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}
.news-empty__icon { font-size: 3rem; margin-bottom: 1.25rem; line-height: 1; }
.news-empty h2    { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.6rem; }
.news-empty p     { color: var(--txt-secondary); font-size: 0.95rem; line-height: 1.7; }

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  animation: fade-up 0.5s var(--ease-out) both;
}
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-violet), var(--c-cyan));
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.login-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.login-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}
.login-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.login-sub {
  font-size: 0.85rem;
  color: var(--txt-secondary);
  margin-bottom: 1.75rem;
}
.login-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: #f87171;
  margin-bottom: 1.25rem;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.login-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--txt-secondary);
  letter-spacing: 0.04em;
}
.login-field input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--txt-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.login-field input:focus {
  border-color: var(--c-violet);
  box-shadow: 0 0 0 3px rgba(112,75,254,0.15);
}
.login-form .btn { margin-top: 0.5rem; }
.login-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--txt-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.login-back:hover { color: var(--c-cyan); }

/* =============================================
   ADMIN PANEL
   ============================================= */

/* --- Topbar --- */
.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,16,0.9);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border-bright);
  height: var(--nav-h);
}
.admin-topbar__inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
}
.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cyan);
  background: var(--c-cyan-dim);
  border: 1px solid rgba(17,212,241,0.25);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* --- Main layout --- */
.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  position: relative; z-index: 1;
}

/* --- Tabs --- */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--txt-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.admin-tab:hover { color: var(--txt-primary); background: rgba(255,255,255,0.03); }
.admin-tab--active {
  color: var(--txt-primary);
  border-bottom-color: var(--c-violet);
}
.admin-tab__count {
  background: var(--c-violet-dim);
  color: var(--c-violet);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  min-width: 20px;
  text-align: center;
}

/* --- Panels --- */
.admin-panel--hidden { display: none; }
.admin-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* --- Form card --- */
.admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.admin-form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-violet), var(--c-cyan));
}
.admin-form-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-form__row { display: flex; gap: 1rem; }
.admin-form__row--2 > * { flex: 1; }
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--txt-secondary);
  letter-spacing: 0.04em;
}
.admin-field input,
.admin-field select,
.admin-field textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--txt-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--c-violet);
  box-shadow: 0 0 0 3px rgba(112,75,254,0.15);
}
.admin-field select { appearance: none; cursor: pointer; }
.admin-field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.admin-form__actions { display: flex; justify-content: flex-end; padding-top: 0.25rem; }

/* File drop zone */
.admin-file-drop {
  border: 2px dashed var(--border-bright);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--txt-secondary);
}
.admin-file-drop:hover,
.admin-file-drop--over {
  border-color: var(--c-violet);
  background: var(--c-violet-dim);
}
.admin-file-drop svg { color: var(--txt-muted); margin-bottom: 0.25rem; }
.admin-file-drop span { font-size: 0.9rem; font-weight: 600; color: var(--txt-primary); }
.admin-file-drop small { font-size: 0.75rem; color: var(--txt-muted); font-family: var(--font-mono); }
.admin-file-drop input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}

/* --- List section --- */
.admin-list-section__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--txt-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.admin-list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s;
}
.admin-list-item:hover { border-color: var(--border-bright); }
.admin-list-item__info { flex: 1; min-width: 0; }
.admin-list-item__meta {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.admin-list-item__date {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--txt-muted);
}
.admin-list-item__title {
  display: block; font-size: 0.95rem; font-weight: 700;
  margin-bottom: 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-list-item__body {
  font-size: 0.82rem; color: var(--txt-muted); line-height: 1.5;
}

/* --- Photo grid --- */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.admin-photo-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
  position: relative;
}
.admin-photo-item:hover { border-color: var(--border-bright); }
.admin-photo-item__img {
  width: 100%; height: 130px;
  overflow: hidden;
}
.admin-photo-item__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease-out);
}
.admin-photo-item:hover .admin-photo-item__img img { transform: scale(1.06); }
.admin-photo-item__info {
  padding: 0.65rem 0.75rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.admin-photo-item__info strong {
  font-size: 0.8rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-photo-item__delete {
  position: absolute; top: 0.5rem; right: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.admin-photo-item:hover .admin-photo-item__delete { opacity: 1; }

/* --- Empty state --- */
.admin-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-bright);
  border-radius: 14px;
}
.admin-empty span { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.admin-empty p    { color: var(--txt-secondary); font-size: 0.9rem; line-height: 1.6; }

/* --- Buttons --- */
.btn--danger {
  background: rgba(248,113,113,0.12);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.3);
}
.btn--danger:hover {
  background: rgba(248,113,113,0.2);
  border-color: #f87171;
}
.btn--icon {
  padding: 0.5rem;
  border-radius: 8px;
  width: 34px; height: 34px;
  justify-content: center;
}

/* --- Admin responsive --- */
@media (max-width: 640px) {
  .admin-main          { padding: 1.5rem 1rem 3rem; }
  .admin-form-card     { padding: 1.5rem; }
  .admin-form__row--2  { flex-direction: column; }
  .admin-photo-grid    { grid-template-columns: repeat(2, 1fr); }
  .admin-topbar__inner { padding: 0 1rem; }
}


/* =============================================
   EKIPA PAGE — MEMBER EMAIL & TECHLAB BOX
   ============================================= */

.member-card__email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--txt-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.member-card__email .material-symbols-rounded { font-size: 0.95rem; }
.member-card__email:hover { color: var(--c-cyan); }

/* TechLab info box */
.techlab-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--c-violet);
  border-radius: 16px;
  padding: 2rem 2.25rem;
}
.techlab-box__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.techlab-box__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--c-violet-dim);
  border: 1px solid rgba(112,75,254,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-violet);
  flex-shrink: 0;
}
.techlab-box__icon .material-symbols-rounded { font-size: 1.6rem; }
.techlab-box__body {
  font-size: 0.9rem;
  color: var(--txt-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.techlab-box__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-orchid);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(204,118,227,0.3);
  border-radius: 99px;
  background: var(--c-orchid-dim);
  transition: border-color 0.2s, background 0.2s;
}
.techlab-box__ig .material-symbols-rounded { font-size: 1rem; }
.techlab-box__ig:hover { border-color: var(--c-orchid); background: rgba(204,118,227,0.2); }


/* =============================================
   TEHNIKA PAGE — MEHANSKA & ELEKTRONSKA ZASNOVA
   ============================================= */

/* ---------- MECHANICAL — MODULE STACK ---------- */
.mech-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.module-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.module-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top-width: 2px;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.module-block:hover { transform: translateY(-3px); }
.module-block--2b { border-top-color: var(--c-orchid); }
.module-block--2a { border-top-color: var(--c-violet); }
.module-block--1  { border-top-color: var(--c-cyan); }

.module-block__badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  border: 1px solid;
  margin-bottom: 0.7rem;
}
.module-block--2b .module-block__badge { color: var(--c-orchid); border-color: rgba(204,118,227,0.3); background: var(--c-orchid-dim); }
.module-block--2a .module-block__badge { color: var(--c-violet); border-color: rgba(112,75,254,0.3);  background: var(--c-violet-dim); }
.module-block--1  .module-block__badge { color: var(--c-cyan);   border-color: rgba(17,212,241,0.3);  background: var(--c-cyan-dim);   }

.module-block__icon {
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
}
.module-block__icon .material-symbols-rounded { font-size: 1.4rem; }
.module-block--2b .module-block__icon { color: var(--c-orchid); }
.module-block--2a .module-block__icon { color: var(--c-violet); }
.module-block--1  .module-block__icon { color: var(--c-cyan);   }

.module-block__title {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.module-block__parts {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.28rem;
}
.module-block__parts li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--txt-secondary);
  padding-left: 1rem;
  position: relative;
}
.module-block--2b .module-block__parts li::before { content: '›'; position: absolute; left: 0; color: var(--c-orchid); font-weight: 700; }
.module-block--2a .module-block__parts li::before { content: '›'; position: absolute; left: 0; color: var(--c-violet); font-weight: 700; }
.module-block--1  .module-block__parts li::before { content: '›'; position: absolute; left: 0; color: var(--c-cyan);   font-weight: 700; }

.module-connector {
  width: 2px;
  height: 22px;
  background: linear-gradient(to bottom, var(--border-bright), var(--border));
  margin: 0 auto;
  flex-shrink: 0;
}

/* ---------- MECHANICAL — MODULE DESCRIPTIONS ---------- */
.module-desc-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.module-desc__badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  border: 1px solid transparent;
  margin-bottom: 0.5rem;
}
.module-desc h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.module-desc p {
  font-size: 0.88rem;
  color: var(--txt-secondary);
  line-height: 1.75;
}

/* ---------- MECHANICAL — DESIGN RENDERS ---------- */
.tech-photo-section { margin-top: 4rem; }
.tech-photo-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
}
.tech-render-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.tech-render-card:last-child { margin-bottom: 0; }
.tech-render-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 32px rgba(112,75,254,0.1);
}
.tech-render-img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #f8f8f8;
  max-height: 480px;
}
.tech-render-caption {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
}
.tech-render-caption__title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--txt-primary);
  flex-shrink: 0;
}
.tech-render-caption__sub {
  font-size: 0.8rem;
  color: var(--txt-muted);
  line-height: 1.5;
}

/* ---------- ELECTRONIC — SUBSYSTEMS GRID ---------- */
.elec-subsystems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.elec-components {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.elec-component {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.4rem 0;
}
.elec-component .material-symbols-rounded {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.elec-component > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.elec-component strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--txt-primary);
}
.elec-component span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--txt-muted);
}
.elec-freq-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid;
  margin-top: 1.25rem;
  letter-spacing: 0.02em;
}
.elec-freq-badge .material-symbols-rounded { font-size: 1rem; flex-shrink: 0; }

/* ---------- ELECTRONIC — WIRING NOTE ---------- */
.elec-wiring-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--c-violet);
  border-radius: 14px;
}
.elec-wiring-note .material-symbols-rounded {
  font-size: 1.5rem;
  color: var(--c-violet);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.elec-wiring-note p {
  font-size: 0.88rem;
  color: var(--txt-secondary);
  line-height: 1.75;
  margin: 0;
}

/* ---------- TEHNIKA RESPONSIVE ---------- */
@media (max-width: 900px) {
  .mech-layout      { grid-template-columns: 1fr; }
  .elec-subsystems  { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tech-render-img  { max-height: 260px; }
}