:root {
  --bg: #0a0e14;
  --bg-alt: #0d1219;
  --card: #121821;
  --card-hover: #161e29;
  --border: #202a38;
  --text: #e7edf5;
  --text-muted: #8fa0b3;
  --text-dim: #5c6b7d;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-3: #f472b6;
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(45, 212, 191, 0.14), transparent 60%),
    radial-gradient(700px 500px at 90% 20%, rgba(56, 189, 248, 0.10), transparent 60%),
    var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04211c;
}
.btn-primary:hover { opacity: 0.92; }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 18px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 20, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: auto;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04211c;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand-text strong { color: var(--accent); font-weight: 800; }

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 168px 0 90px;
}
.hero-inner { max-width: 780px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--border);
  background: rgba(45, 212, 191, 0.06);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.pulse-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.text-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.about-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}
.chip {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--card);
}

/* ---------- Systems ---------- */
.systems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.system-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.system-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  transform: translateY(-3px);
}

.system-shot {
  position: relative;
  background: #05070a;
}

.shot-frame {
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  padding-top: 26px;
  background: #11151c;
}
.shot-frame .dot {
  position: absolute;
  top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dot-r { left: 14px; background: #ff5f57; }
.dot-y { left: 28px; background: #febc2e; }
.dot-g { left: 42px; background: #28c840; }

.shot-img {
  position: absolute;
  top: 26px; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: calc(100% - 26px);
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  cursor: zoom-in;
}
.shot-img.active { opacity: 1; visibility: visible; }

.shot-nav {
  position: absolute;
  top: calc(50% + 13px);
  transform: translateY(-50%);
  background: rgba(10, 14, 20, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.system-shot:hover .shot-nav { opacity: 1; }
.shot-nav:hover { background: rgba(45, 212, 191, 0.85); }
.shot-nav.prev { left: 12px; }
.shot-nav.next { right: 12px; }

.shot-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.shot-dots .sdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.shot-dots .sdot.active {
  background: var(--accent);
  transform: scale(1.25);
}

.system-body { padding: 26px 26px 30px; }
.system-body h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 800;
}
.system-tag {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}
.system-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.system-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}
.system-more:hover .arrow { transform: translateX(4px); }
.system-more .arrow { display: inline-block; transition: transform 0.2s ease; }

/* ---------- System detail page ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 22px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--accent); }

.system-hero .hero-badge { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

.gallery-card { max-width: 980px; }
.gallery-card .shot-frame { aspect-ratio: 16 / 9.2; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-card h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.feature-card.optional {
  border-style: dashed;
}
.feature-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.process-step h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
}
.process-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Contact ---------- */
.contact-box {
  background: linear-gradient(135deg, rgba(45,212,191,0.08), rgba(56,189,248,0.06));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
  font-weight: 800;
  max-width: 480px;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-frame {
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 8.6;
  max-height: 85vh;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.lightbox-close {
  position: absolute;
  top: 26px; right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.lightbox-nav:hover { background: rgba(45, 212, 191, 0.8); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .systems { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process::before { display: none; }
}

@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 18px 24px; gap: 16px; transform: translateY(-130%); opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease; }
  .nav.open { transform: translateY(0); opacity: 1; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 140px 0 70px; }
  .contact-box { padding: 34px; }
  .contact-actions { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .lightbox-nav { width: 40px; height: 40px; }
}
