:root {
  --bg: #0a0a0d;
  --bg-elev: #111118;
  --surface: #16161d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-mute: #9ca0ad;
  --text-dim: #6b6e7a;
  --accent: #a6218e;
  --accent-hover: #c12ea7;
  --accent-soft: rgba(166, 33, 142, 0.18);
  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  scroll-behavior: smooth;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* -----------------------------
   Header
-------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 13, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 56px;
  width: auto;
}

.brand-logo-sm { height: 40px; }

.header-contact {
  display: flex;
  gap: 32px;
  align-items: center;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.contact-link:hover .contact-value { color: var(--accent); }

.contact-label {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 500;
}

.contact-value {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .15s ease;
}

/* -----------------------------
   Buttons
-------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text); }

/* -----------------------------
   Hero
-------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,13,0.55) 0%, rgba(10,10,13,0.5) 40%, rgba(10,10,13,0.96) 100%),
    linear-gradient(90deg, rgba(10,10,13,0.85) 0%, rgba(10,10,13,0.25) 55%, rgba(10,10,13,0.45) 100%);
}

.hero-inner {
  padding-top: clamp(90px, 12vh, 170px);
  padding-bottom: clamp(90px, 12vh, 170px);
  max-width: 880px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 30px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
}

.hero-tagline {
  margin: 28px 0 0;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
}

.hero-desc {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--text-mute);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* -----------------------------
   Specs strip
-------------------------------- */
.specs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.spec {
  padding: 32px clamp(20px, 2vw, 32px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec:last-child { border-right: none; }

.spec-label {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.spec-value {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* -----------------------------
   Sections shared
-------------------------------- */
section.capabilities,
section.portfolio,
section.split,
section.cta {
  padding-block: clamp(72px, 10vw, 140px);
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}

.section-desc {
  color: var(--text-mute);
  margin: 16px 0 0;
  max-width: 620px;
  line-height: 1.65;
}

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

/* -----------------------------
   Capabilities
-------------------------------- */
.caps-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.caps-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.cap {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.cap-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  padding-top: 6px;
  letter-spacing: 0.05em;
}

.cap h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cap p {
  margin: 0;
  color: var(--text-mute);
  line-height: 1.65;
}

/* -----------------------------
   Gallery grid (dynamic, scalable)
-------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  align-items: start;
}

.gallery-item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: transform .3s ease, border-color .3s ease;
}

.gallery-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* -----------------------------
   Split section
-------------------------------- */
.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy > p {
  color: var(--text-mute);
  margin: 16px 0 0;
  line-height: 1.65;
  max-width: 560px;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}

.bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  line-height: 1.55;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

/* -----------------------------
   CTA
-------------------------------- */
.cta {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta > .container > .section-eyebrow,
.cta-inner .section-eyebrow {
  margin-bottom: 18px;
}

.cta p {
  color: var(--text-mute);
  margin: 16px 0 0;
  font-size: 1.05rem;
  max-width: 560px;
}

.cta-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* -----------------------------
   Footer
-------------------------------- */
.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--border);
}

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

.footer-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* -----------------------------
   Responsive
-------------------------------- */
@media (max-width: 1024px) {
  .header-contact { gap: 18px; }
  .caps-inner { grid-template-columns: 1fr; }
  .split-inner { grid-template-columns: 1fr; gap: 40px; }
  .split-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 820px) {
  .header-contact .contact-link { display: none; }
  .brand-logo { height: 44px; }

  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec { padding: 22px; }
  .spec:nth-child(2) { border-right: none; }
  .spec:nth-child(1),
  .spec:nth-child(2) { border-bottom: 1px solid var(--border); }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .brand-logo { height: 38px; }
  .header-contact .btn { padding: 10px 16px; font-size: 0.85rem; }

  .hero-inner { padding-top: 110px; padding-bottom: 90px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }

  .spec-grid { grid-template-columns: 1fr; }
  .spec { border-right: none; border-bottom: 1px solid var(--border); }
  .spec:last-child { border-bottom: none; }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .footer-inner { justify-content: flex-start; }
}
