:root {
  --bg: #080b12;
  --panel: #101522;
  --panel-2: #151c2c;
  --text: #f3f6ff;
  --muted: #a8b3c7;
  --line: rgba(255,255,255,.12);
  --accent: #7cf7d4;
  --accent-2: #8da2ff;
  --warning: #ffcc66;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,247,212,.16), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(141,162,255,.14), transparent 34rem),
    var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: rgba(8,11,18,.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
}

.logo-mark img {
  height: 42px;
  width: auto;
  display: block;
}

.logo span:last-child {
  white-space: nowrap;
}

.logo span {
  line-height: 1;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 80px 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
  cursor: default;
  transition: transform .18s ease, letter-spacing .18s ease, color .18s ease;
  transform-origin: left center;
}

.eyebrow:hover {
  transform: scale(1.18);
  letter-spacing: .22em;
  color: var(--text);
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: .94;
  letter-spacing: -.06em;
}

.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.button.primary {
  color: #06110e;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  font-weight: 800;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -.04em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}

.card.released {
  background:
    radial-gradient(circle at top right, rgba(124,247,212,.16), transparent 16rem),
    var(--panel);
}

.card.development {
  background:
    radial-gradient(circle at top right, rgba(255,204,102,.13), transparent 16rem),
    var(--panel);
}

.status {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card h3 {
  margin: 24px 0 10px;
  font-size: 30px;
  letter-spacing: -.03em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 30px;
}

.card-actions a,
.card-actions span {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.card-actions a:hover {
  text-decoration: underline;
}

.card-actions.muted span {
  color: var(--warning);
}

.about,
.contact {
  max-width: 820px;
}

.about p:not(.eyebrow),
.contact p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.mail {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.mail:hover {
  text-decoration: underline;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 52px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding: 72px 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}

.card {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(124,247,212,.42);
  box-shadow: 0 34px 100px rgba(0,0,0,.38);
}

.project-preview {
  position: relative;
  height: 150px;
  margin: -12px -12px 22px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, rgba(124,247,212,.22), transparent 34%),
    radial-gradient(circle at 70% 70%, rgba(141,162,255,.18), transparent 36%),
    linear-gradient(135deg, #121827, #080b12);
}

.preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.2);
  transition: opacity 2500ms ease, transform 8000ms ease;
}

.preview-slide.active {
  opacity: 1;
  transform: scale(1);
}

.preview-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.empty-preview::after {
  content: "Preview coming soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.project-preview {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 10, .88);
  backdrop-filter: blur(14px);
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  width: 80vw;
  height: 80vh;
  display: grid;
  place-items: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 34px 120px rgba(0,0,0,.6);
}

.lightbox-arrow,
.lightbox-close {
  position: absolute;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
  transform: scale(1.08);
  background: rgba(124,247,212,.16);
}

.lightbox-close {
  top: 28px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 58px;
  height: 86px;
  border-radius: 22px;
  font-size: 64px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 34px;
}

.lightbox-next {
  right: 34px;
}

@media (max-width: 880px) {
  .lightbox-content {
    width: 92vw;
    height: 76vh;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
