/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080d13;
  --bg2: #0d1520;
  --surface: #111b28;
  --surface2: #162035;
  --border: rgba(0,200,255,0.12);
  --accent: #00c8ff;
  --accent2: #0af0b0;
  --text: #e8f0fe;
  --text2: #7a9cc0;
  --font: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,13,19,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 2px;
  font-size: 1.4rem; font-weight: 800; text-decoration: none;
  letter-spacing: -0.5px; position: relative;
}
.logo-text { color: var(--text); }
.logo-accent { color: var(--accent); }
.logo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  margin-left: 4px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{ box-shadow: 0 0 0 0 rgba(10,240,176,.5); }
  50%{ box-shadow: 0 0 0 6px rgba(10,240,176,0); }
}
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-link {
  color: var(--text2); text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-link:hover { color: var(--accent); }
.nav-cta {
  padding: .45rem 1.1rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px; font-size: .9rem; font-weight: 600;
  text-decoration: none; transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--accent); color: #000; }
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 1rem 2rem; gap: .5rem; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: var(--text); text-decoration: none;
  padding: .6rem 0; font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding-top: 64px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Pipeline bar */
.pipeline-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 1.5rem 2rem;
  background: rgba(13,21,32,.6);
  border-bottom: 1px solid var(--border);
}
.pipeline-step {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .85rem; font-weight: 600;
  color: var(--text2);
  background: rgba(255,255,255,.03);
  transition: all .3s;
}
.pipeline-step:hover, .pipeline-step.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,200,255,.08);
}
.pipeline-step .step-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.pipeline-step .step-icon svg { width: 16px; height: 16px; }
.pipeline-arrow {
  padding: 0 .5rem; color: var(--text2); opacity: .5;
}
.pipeline-arrow svg { width: 40px; height: 12px; }

/* Split screen */
.hero-split {
  flex: 1; display: flex; position: relative; z-index: 1;
  min-height: 520px;
}
.hero-half {
  flex: 1; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 3.5rem;
}
.hero-left { background: linear-gradient(135deg, #060e1a 0%, #0a1525 100%); }
.hero-right { background: linear-gradient(135deg, #0d1420 0%, #091220 100%); }

.half-glow {
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%; pointer-events: none; filter: blur(80px); opacity: .15;
}
.left-glow { background: var(--accent); top: 20%; left: -10%; }
.right-glow { background: var(--accent2); top: 10%; right: -10%; }

.half-content { position: relative; z-index: 2; max-width: 440px; }
.half-tag {
  font-family: var(--mono); font-size: .75rem;
  color: var(--accent2); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.half-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 1rem;
  letter-spacing: -1px;
}
.half-desc {
  font-size: .95rem; color: var(--text2);
  margin-bottom: 1.5rem; line-height: 1.7;
}
.half-list {
  list-style: none; display: flex; flex-direction: column; gap: .6rem;
}
.half-list li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: var(--text2);
}
.half-list li svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--accent2); stroke-width: 2.5;
}

/* Network canvas */
.half-network-vis {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 50%; opacity: .3; pointer-events: none;
}
.half-network-vis canvas { width: 100%; height: 100%; }

/* CCTV grid */
.half-cctv-vis {
  position: absolute; right: 2rem; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.cctv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
}
.cctv-feed {
  width: 90px; height: 64px;
  background: rgba(0,200,255,.05);
  border: 1px solid rgba(0,200,255,.2);
  border-radius: 6px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 4px 6px;
}
.cctv-feed span {
  font-family: var(--mono); font-size: .55rem;
  color: rgba(0,200,255,.6); z-index: 1;
}
.feed-scan {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: rgba(0,200,255,.4);
  animation: scan 2s var(--delay, 0s) infinite linear;
}
@keyframes scan {
  0% { top: 0; opacity: 1; }
  90% { top: 100%; opacity: .5; }
  100% { top: 100%; opacity: 0; }
}

/* Hero divider */
.hero-divider {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 2px; position: relative; z-index: 3; flex-shrink: 0;
}
.divider-line {
  flex: 1; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}
.divider-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0,200,255,.3);
}

/* Hero Portfolio Slider */
.hero-portfolio-slider {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(13,21,32,.8) 0%, rgba(13,21,32,.4) 100%);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 2rem 0;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.portfolio-slider-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3.5rem; gap: 1.5rem;
}
.portfolio-slider-title {
  display: flex; align-items: center; gap: 1.2rem;
}
.portfolio-bar-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0,200,255,.1); border: 1px solid rgba(0,200,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.portfolio-bar-icon svg { width: 24px; height: 24px; }
.portfolio-bar-text h3 {
  font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .2rem;
}
.portfolio-bar-text p {
  font-size: .85rem; color: var(--text2); margin: 0; max-width: 600px; line-height: 1.4;
}
.portfolio-slider-nav {
  display: flex; gap: .8rem;
}
.slider-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover {
  background: rgba(0,200,255,.1); border-color: var(--accent); color: var(--accent);
}
.portfolio-slider-track {
  display: flex; gap: 1.2rem;
  padding: 0 3.5rem 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.portfolio-slider-track::-webkit-scrollbar { display: none; }
.portfolio-slider-track .portfolio-card {
  min-width: 320px; max-width: 320px;
  flex-shrink: 0; scroll-snap-align: start;
}

@media (max-width: 900px) {
  .portfolio-slider-header { flex-direction: column; align-items: stretch; padding: 0 1.5rem; text-align: center; }
  .portfolio-slider-title { flex-direction: column; text-align: center; }
  .portfolio-bar-icon { margin: 0 auto; }
  .portfolio-slider-nav { justify-content: center; margin-top: .5rem; }
  .portfolio-slider-track { padding: 0 1.5rem 1rem; }
  .portfolio-slider-track .portfolio-card { min-width: 280px; max-width: 280px; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.8rem;
  background: linear-gradient(135deg, var(--accent), #0080aa);
  color: #000; font-weight: 700; font-size: .9rem;
  border: none; border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 20px rgba(0,200,255,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0,200,255,.5);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.8rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2); font-weight: 600; font-size: .9rem;
  border-radius: 8px; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  font-family: var(--mono); font-size: .75rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
  padding: .3rem .8rem;
  border: 1px solid rgba(0,200,255,.3);
  border-radius: 4px;
  background: rgba(0,200,255,.05);
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; color: #fff;
  margin-bottom: .8rem; letter-spacing: -1px;
}
.section-sub { color: var(--text2); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ===== SERVICES GRID ===== */
.services-section { background: var(--bg2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: default;
  opacity: 0; transform: translateY(24px);
}
.service-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease, border-color .3s, box-shadow .3s;
}
.service-card:hover {
  border-color: rgba(0,200,255,.4);
  box-shadow: 0 8px 32px rgba(0,200,255,.1);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px; height: 48px;
  background: rgba(0,200,255,.08);
  border: 1px solid rgba(0,200,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p { font-size: .88rem; color: var(--text2); line-height: 1.6; }

/* ===== PIPELINE FLOW ===== */
.pipeline-section { background: var(--bg); }
.pipeline-flow {
  display: flex; align-items: center; gap: 0;
}
.flow-step { flex: 1; }
.flow-number {
  font-family: var(--mono); font-size: .75rem;
  color: var(--accent); letter-spacing: 2px;
  margin-bottom: .8rem;
}
.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.flow-card--accent {
  border-color: rgba(0,200,255,.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0,200,255,.05) 100%);
  box-shadow: 0 0 30px rgba(0,200,255,.1);
}
.flow-icon {
  width: 48px; height: 48px;
  background: rgba(0,200,255,.08);
  border: 1px solid rgba(0,200,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 1rem;
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.flow-card p { font-size: .88rem; color: var(--text2); line-height: 1.6; margin-bottom: 1rem; }
.flow-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.flow-tags span {
  font-size: .72rem; padding: .25rem .6rem;
  background: rgba(0,200,255,.08);
  border: 1px solid rgba(0,200,255,.2);
  border-radius: 50px; color: var(--accent2);
  font-family: var(--mono);
}
.flow-connector {
  width: 60px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; gap: .3rem;
  color: var(--text2); opacity: .4;
}
.connector-line { width: 1px; height: 20px; background: var(--accent); }
.connector-arrow svg { width: 20px; height: 20px; }

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}
.stats-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; color: var(--accent);
  font-family: var(--mono); line-height: 1;
  display: inline;
}
.stat-plus {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--accent2);
  display: inline;
}
.stat-label {
  font-size: .82rem; color: var(--text2);
  margin-top: .5rem; max-width: 140px;
  line-height: 1.4;
}

/* ===== CONTACT ===== */
.contact-section { background: var(--bg2); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-info .section-sub { text-align: left; margin: 0 0 2rem; }
.contact-info .section-tag { display: inline-block; }
.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(0,200,255,.08);
  border: 1px solid rgba(0,200,255,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-label { font-size: .75rem; color: var(--text2); margin-bottom: .2rem; font-family: var(--mono); }
.contact-value {
  font-size: .95rem; font-weight: 600; color: var(--text);
  text-decoration: none;
}
a.contact-value:hover { color: var(--accent); }

/* Form */
.contact-form-wrap { position: relative; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .8rem; color: var(--text2); font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .7rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,200,255,.1);
}
.form-group select option { background: var(--bg2); }
.form-note { font-size: .72rem; color: var(--text2); text-align: center; opacity: .6; }
.btn-primary svg { width: 16px; height: 16px; }

/* Form success */
.form-success {
  display: none;
  flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  background: var(--surface);
  border: 1px solid rgba(10,240,176,.3);
  border-radius: 16px; padding: 3rem 2rem;
  gap: 1rem;
}
.form-success.show { display: flex; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(10,240,176,.1);
  border: 2px solid var(--accent2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent2);
}
.success-icon svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 1.3rem; font-weight: 700; }
.form-success p { color: var(--text2); font-size: .9rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-brand p { font-size: .8rem; color: var(--text2); margin-top: .3rem; max-width: 280px; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text2); text-decoration: none;
  font-size: .85rem; transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .78rem; color: var(--text2); opacity: .5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .hero-split { flex-direction: column; }
  .hero-divider { flex-direction: row; width: 100%; height: 2px; }
  .divider-line { flex: 1; height: 1px; }
  .hero-half { padding: 2.5rem 1.5rem; min-height: 420px; }
  .half-network-vis, .half-cctv-vis { display: none; }
  .pipeline-flow { flex-direction: column; gap: 1rem; }
  .flow-connector { flex-direction: row; width: 100%; height: auto; }
  .connector-line { width: 40px; height: 1px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-bar { flex-wrap: wrap; gap: .5rem; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ===== PORTFOLIO CARD ===== */
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,255,.4);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.portfolio-card-img {
  height: 140px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-img-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.portfolio-placeholder-icon { width: 48px; height: 48px; opacity: .2; color: var(--accent); }
.portfolio-placeholder-icon svg { width: 100%; height: 100%; }
.portfolio-card-badge {
  position: absolute; top: .6rem; right: .6rem;
  font-family: var(--mono); font-size: .65rem;
  padding: .2rem .5rem; border-radius: 4px;
  background: rgba(0,0,0,.65); border: 1px solid var(--border);
  color: var(--accent2); backdrop-filter: blur(4px);
}
.portfolio-card-body { padding: 1rem 1.1rem 1.2rem; }
.portfolio-card-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.portfolio-cat-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.portfolio-card-year { font-family: var(--mono); font-size: .7rem; color: var(--text2); }
.portfolio-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); line-height: 1.3; }
.portfolio-card p { font-size: .8rem; color: var(--text2); line-height: 1.5; }



/* ===== FOOTER LEGAL ===== */
.footer {
  padding: 0;
}
.footer-container {
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-requisites {
  display: flex; flex-wrap: wrap; gap: .4rem .8rem;
  margin-top: .8rem;
}
.footer-requisites span {
  font-family: var(--mono); font-size: .7rem;
  color: var(--text2); opacity: .75;
  background: rgba(0,200,255,.04);
  border: 1px solid var(--border);
  border-radius: 4px; padding: .2rem .5rem;
}
.footer-legal {
  display: flex; flex-direction: column; gap: .5rem; justify-content: center;
}
.footer-legal-link {
  color: var(--text2); text-decoration: none;
  font-size: .78rem; transition: color .2s;
  white-space: nowrap;
}
.footer-legal-link:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .72rem; color: var(--text2); opacity: .55;
}
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { align-items: center; }
}

/* ===== CONSENT CHECKBOX ===== */
.consent-label {
  display: flex; align-items: flex-start; gap: .6rem;
  cursor: pointer; padding: .3rem 0;
  border: 1px solid transparent; border-radius: 6px;
  transition: border-color .2s;
}
.consent-label input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-text {
  font-size: .72rem; color: var(--text2);
  line-height: 1.5;
}
.consent-text a {
  color: var(--accent); text-decoration: underline;
}
.consent-error {
  border-color: rgba(255, 70, 70, .6) !important;
  background: rgba(255, 70, 70, .04);
  border-radius: 6px;
  animation: shake .3s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: rgba(13,21,32,.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
}
.cookie-banner--visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-icon { color: var(--accent2); flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text strong { font-size: .95rem; display: block; margin-bottom: .25rem; }
.cookie-text p { font-size: .8rem; color: var(--text2); line-height: 1.5; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn {
  padding: .6rem 1.3rem; border-radius: 8px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: all .2s; border: none;
}
.cookie-btn--settings {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
}
.cookie-btn--settings:hover { border-color: var(--accent); color: var(--accent); }
.cookie-btn--accept {
  background: linear-gradient(135deg, var(--accent), #0080aa);
  color: #000;
  box-shadow: 0 0 16px rgba(0,200,255,.3);
}
.cookie-btn--accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0,200,255,.5);
}

/* ===== COOKIE SETTINGS MODAL ===== */
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(4,8,14,.88);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cookie-modal-overlay--open { opacity: 1; pointer-events: all; }
.cookie-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%; max-width: 480px;
  overflow: hidden;
  transform: scale(.95) translateY(16px);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.cookie-modal-overlay--open .cookie-modal { transform: scale(1) translateY(0); }
.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.cookie-modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.cookie-modal-body { padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: .2rem; }
.cookie-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
  border-bottom: 1px solid rgba(0,200,255,.07);
}
.cookie-toggle-row:last-child { border-bottom: none; }
.cookie-toggle-row strong { font-size: .9rem; display: block; margin-bottom: .2rem; }
.cookie-toggle-row p { font-size: .75rem; color: var(--text2); line-height: 1.4; }
.cookie-toggle--always {
  font-size: .72rem; font-family: var(--mono);
  color: var(--accent2); padding: .25rem .6rem;
  border: 1px solid rgba(10,240,176,.3);
  border-radius: 50px; white-space: nowrap;
}
.cookie-modal-footer {
  padding: 1rem 1.5rem 1.4rem;
  display: flex; justify-content: flex-end;
}

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: background .3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 2px; top: 50%; transform: translateY(-50%);
  background: var(--text2);
  border-radius: 50%;
  transition: transform .3s, background .3s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(0,200,255,.25); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translate(20px, -50%); background: var(--accent); }
