:root {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: #0f172a;
  --surface-hover: #152038;
  --border: rgba(148, 163, 184, 0.16);
  --border-bright: rgba(56, 189, 248, 0.42);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --cyan: #38bdf8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --purple: #818cf8;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.container {
  width: min(1220px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.12rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.92rem;
  background: linear-gradient(135deg, #10b981, #0284c7);
  color: #fff;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}

.brand-badge.sm {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}

.brand-tld {
  color: var(--cyan);
}

.version-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 0.82rem 1.35rem;
  font-size: 0.98rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #041019;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-bright);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center top, black 35%, transparent 78%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero h1 {
  margin: 0 auto 1.1rem;
  max-width: 860px;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(90deg, #38bdf8 0%, #34d399 55%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 2rem;
  max-width: 740px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

/* Metrics */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.75rem;
  text-align: left;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
}

.metric-value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}

.metric-label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Hero Preview Frame */
.hero-preview-frame {
  background: #0a0f1c;
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(14, 165, 233, 0.14);
  text-align: left;
  cursor: pointer;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #111827;
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.window-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expand-chip {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 0.22rem 0.6rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.8rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.inline-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Feature Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon.cyan { background: rgba(56, 189, 248, 0.14); color: var(--cyan); }
.card-icon.emerald { background: rgba(16, 185, 129, 0.14); color: var(--emerald); }
.card-icon.amber { background: rgba(245, 158, 11, 0.14); color: var(--amber); }
.card-icon.purple { background: rgba(129, 140, 248, 0.14); color: var(--purple); }

.feature-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
}

.feature-card p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

/* Pipeline Steps */
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.step-item h4 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.step-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Gallery */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-bright);
}

.filter-btn.active {
  background: rgba(56, 189, 248, 0.16);
  color: var(--cyan);
  border-color: var(--cyan);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card.hidden {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #060911;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.02);
}

.zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  background: rgba(7, 11, 20, 0.85);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.24rem 0.58rem;
  border-radius: 6px;
}

.gallery-card figcaption {
  padding: 1.25rem 1.35rem 1.4rem;
}

.cat-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  margin-bottom: 0.55rem;
}

.gallery-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.gallery-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(14, 116, 144, 0.18));
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-text {
  max-width: 660px;
}

.cta-text h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
}

.cta-text p {
  margin: 0 0 1.3rem;
  color: var(--text-muted);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.45rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.84rem;
}

.contact-key {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.contact-pill a {
  color: var(--cyan);
  font-weight: 600;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 240px;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1260px, 95vw);
  max-height: 92vh;
  background: #0b1120;
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  background: #111827;
  border-bottom: 1px solid var(--border);
}

.lightbox-top h3 {
  margin: 0;
  font-size: 0.98rem;
  text-align: center;
}

.lb-counter {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
}

.lb-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050811;
  overflow: auto;
  max-height: 74vh;
}

.lightbox-stage img {
  max-height: 73vh;
  width: auto;
  object-fit: contain;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-bright);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.5rem;
  cursor: pointer;
}

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-caption {
  margin: 0;
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 120;
  background: #0f172a;
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.45);
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .metrics-strip,
  .pipeline-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links,
  .version-pill {
    display: none;
  }
}

@media (max-width: 720px) {
  .cards-grid,
  .gallery-grid,
  .metrics-strip,
  .pipeline-steps {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    width: 100%;
  }
}
