:root {
  --bg: #07111f;
  --bg-soft: #0e1b2f;
  --card: rgba(255,255,255,.075);
  --card-strong: rgba(255,255,255,.12);
  --text: #f8fafc;
  --muted: #b6c3d6;
  --line: rgba(255,255,255,.14);
  --accent: #54d6ff;
  --accent-2: #a7f3d0;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(84,214,255,.18), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(167,243,208,.12), transparent 32%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(7,17,31,.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(84,214,255,.28), rgba(167,243,208,.12));
  box-shadow: 0 10px 35px rgba(84,214,255,.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text)!important;
  background: var(--card);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 26px;
}

.section-pad { padding: 90px 6vw; }

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}

h1,h2,h3,p { margin-top: 0; }

h1 {
  font-size: clamp(44px,6vw,82px);
  line-height: .98;
  letter-spacing: -.07em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(30px,4vw,52px);
  line-height: 1.04;
  letter-spacing: -.05em;
  margin-bottom: 20px;
}

h3 {
  line-height: 1.15;
  letter-spacing: -.03em;
}

.hero-subtitle,
.section-head p {
  font-size: 18px;
  color: var(--muted);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.btn {
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.btn.primary {
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  color: #062033;
}

.btn.ghost { background: var(--card); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  max-width: 720px;
}

.stats-grid div,
.content-card,
.timeline-card,
.project-card,
.sample-card,
.contact-card,
.setup-grid div {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.stats-grid div { padding: 18px; }

.stats-grid strong {
  display: block;
  font-size: 25px;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  box-shadow: var(--shadow);
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #0a1324;
}

.carousel img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #08111f;
}

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  border: 0;
  background: rgba(255,255,255,.35);
  padding: 0;
}

.carousel-dots button.active {
  width: 26px;
  background: #fff;
}

.tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tool-strip span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.06);
}

.split-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
}

.content-card {
  padding: 32px;
  color: var(--muted);
  font-size: 17px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.timeline-card {
  padding: 28px;
  cursor: default;
}

.timeline-content {
  max-height: none;
  overflow: visible;
}

.year {
  display: inline-block;
  margin-bottom: 16px;
  color: #08111f;
  background: var(--accent-2);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.timeline-card p { color: var(--muted); }

.section-head { margin-bottom: 34px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 28px;
}

.project-loading {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  color: var(--muted);
  text-align: center;
}

.project-card {
  overflow: hidden;
  padding: 0;
  transition: .25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  background: var(--card-strong);
}

.project-card.is-hidden { display: none; }

.card-carousel {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #0b1220;
  padding: 12px;
}

.card-carousel img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity .35s ease;
  cursor: zoom-in;
}

.card-carousel img.active { opacity: 1; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(8,16,30,.75);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }

.card-carousel.no-arrows .carousel-btn { display: none; }

.card-content { padding: 22px; }

.card-content span,
.sample-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-content h3 {
  font-size: 20px;
  margin: 6px 0 10px;
}

.card-content p,
.sample-card em {
  color: var(--muted);
  font-style: normal;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.project-tags em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,255,255,.05);
}

.project-toggle-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.project-toggle-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s ease;
}

.project-toggle-btn:hover {
  transform: translateY(-2px);
  background: var(--card-strong);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}

.sample-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: .25s ease;
}

.sample-card:hover {
  transform: translateY(-4px);
  background: var(--card-strong);
}

.workflow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 12px;
}

.workflow-list li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}

.workflow-list span {
  display: block;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 8px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.setup-grid div {
  padding: 18px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-card {
  padding: 30px;
  display: grid;
  gap: 14px;
}

.contact-card a {
  color: var(--accent);
  font-weight: 800;
}

footer {
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.9);
  padding: 24px;
}

.image-lightbox.active { display: flex; }

.image-lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 56px; }

  .project-grid,
  .sample-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .workflow-list { grid-template-columns: repeat(2,1fr); }

  .setup-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    left: 6vw;
    right: 6vw;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #081526;
  }

  .nav-links.open { display: flex; }
}

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

  .card-carousel { height: 420px; }
}

@media (max-width: 620px) {
  .section-pad { padding: 64px 20px; }

  .site-header { padding: 14px 20px; }

  h1 { font-size: 42px; }

  .hero-subtitle,
  .section-head p {
    font-size: 16px;
  }

  .project-grid,
  .sample-grid,
  .timeline,
  .setup-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .workflow-list { grid-template-columns: 1fr; }

  .hero-actions { display: grid; }

  .btn { text-align: center; }

  .brand span:last-child { display: none; }

  .card-carousel { height: 320px; }
}
