:root {
  color-scheme: dark;
  --bg: #07111d;
  --bg-deep: #050c16;
  --surface: rgba(10, 18, 30, 0.7);
  --surface-strong: rgba(11, 22, 38, 0.92);
  --surface-bright: linear-gradient(180deg, rgba(18, 57, 104, 0.92), rgba(10, 24, 40, 0.94));
  --line: rgba(139, 169, 221, 0.16);
  --line-strong: rgba(125, 211, 252, 0.22);
  --text: #edf4ff;
  --muted: #9fb2d2;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  color: var(--text);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0.08) 36%, transparent 68%);
  filter: blur(24px);
  transform: translate(-999px, -999px);
}

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

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.18), transparent 24%),
    radial-gradient(circle at 86% 10%, rgba(59, 130, 246, 0.14), transparent 24%),
    radial-gradient(circle at 50% 42%, rgba(14, 165, 233, 0.08), transparent 22%);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 28px 0 46px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 24px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 44px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-strong), #2563eb);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 72px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.brand {
  font-size: 15px;
  font-weight: 700;
}

.brand-sub,
.nav-links,
.lead,
.section-head p,
.project-card p,
.info-card p,
.timeline-card p,
.contact-shell p,
.floating-card p,
.project-points li {
  color: var(--muted);
}

.brand-sub {
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  padding: 22px;
  min-height: 620px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(4, 10, 18, 0.88) 0%, rgba(4, 10, 18, 0.7) 42%, rgba(4, 10, 18, 0.52) 100%),
    linear-gradient(180deg, rgba(3, 9, 16, 0.3), rgba(3, 9, 16, 0.72)),
    url("./assets/hero-bg.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-stack,
.project-card,
.info-card,
.timeline-card,
.contact-shell,
.floating-card,
.hero-strip article {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 52px;
  background: linear-gradient(180deg, rgba(8, 16, 26, 0.72), rgba(8, 16, 26, 0.84));
  backdrop-filter: blur(12px);
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
}

.hero-logo {
  display: block;
  width: 132px;
  height: auto;
  object-fit: contain;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.status-pill.subtle {
  background: rgba(255, 255, 255, 0.02);
}

.hero-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-mini-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.eyebrow,
.tag,
.meta,
.mini-label,
.time-badge {
  font-size: 12px;
  font-weight: 700;
}

.eyebrow,
.tag,
.mini-label,
.time-badge {
  color: var(--accent);
}

.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  max-width: 720px;
}

.lead,
.section-head p,
.project-card p,
.info-card p,
.timeline-card p,
.contact-shell p,
.floating-card p,
.project-points li {
  line-height: 1.76;
}

.lead {
  max-width: 680px;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent-strong), #2563eb);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.button.primary:hover {
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.hero-stack {
  position: relative;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(8, 15, 25, 0.52), rgba(8, 15, 25, 0.74));
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.floating-card {
  position: absolute;
  background: rgba(10, 18, 30, 0.8);
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: floatCard 7s ease-in-out infinite;
}

.small-card.top-right {
  animation-delay: 0.8s;
}

.small-card.middle-right {
  animation-delay: 1.6s;
}

.wide-card.bottom-card {
  animation-delay: 2.4s;
}

.floating-card:hover,
.hoverable:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
}

.primary-card {
  top: 26px;
  left: 24px;
  right: 24px;
  min-height: 170px;
}

.small-card.top-right {
  left: 24px;
  bottom: 168px;
  width: 40%;
}

.small-card.middle-right {
  right: 24px;
  bottom: 168px;
  width: 42%;
}

.wide-card.bottom-card {
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.hero-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-strip article,
.project-card,
.info-card,
.timeline-card,
.contact-shell {
  background: rgba(255, 255, 255, 0.03);
}

.hero-strip article {
  padding: 20px;
}

.hero-strip strong {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.hero-strip span {
  color: var(--muted);
}

.section {
  padding: 28px 0 24px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.project-grid,
.focus-grid,
.timeline-grid {
  display: grid;
  gap: 18px;
}

.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.more-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.info-card,
.timeline-card,
.contact-shell {
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before,
.info-card::before,
.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.project-card:hover::before,
.info-card:hover::before,
.timeline-card:hover::before {
  opacity: 1;
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tag,
.meta {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.meta {
  color: var(--muted);
}

.project-card h3,
.info-card h3,
.timeline-card h3,
.contact-shell h2,
.floating-card h3,
.section-head h2 {
  margin: 12px 0;
}

.project-index {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 28px;
  font-weight: 800;
  color: rgba(125, 211, 252, 0.14);
}

.project-index.small {
  font-size: 22px;
}

.project-icon {
  width: 44px;
  height: 44px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.project-icon.small {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.project-points {
  margin: 14px 0 0;
  padding-left: 18px;
}

.project-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.state-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  margin-top: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.state-row.compact {
  min-height: 28px;
  padding: 0 10px;
}

.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 12px currentColor;
}

.state-dot.live {
  color: #22c55e;
  background: #22c55e;
}

.state-dot.hot {
  color: #f97316;
  background: #f97316;
}

.state-dot.stable {
  color: #38bdf8;
  background: #38bdf8;
}

.state-dot.lab {
  color: #a855f7;
  background: #a855f7;
}

.bright-card {
  background: var(--surface-bright);
}

.muted-card {
  background: var(--surface-strong);
}

.focus-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.time-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.contact-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1080px) {
  .hero-stage,
  .featured-grid,
  .focus-grid,
  .more-grid,
  .timeline-grid,
  .hero-strip,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-stack {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo-frame {
    width: 82px;
    height: 40px;
  }

  .brand-logo {
    max-width: 64px;
  }

  .hero-stage {
    padding: 14px;
  }

  .hero-badge-row {
    flex-wrap: wrap;
  }

  .hero-mini-list {
    margin-top: 16px;
  }

  .hero-logo {
    width: 112px;
  }

  .hero-copy,
  .project-card,
  .info-card,
  .timeline-card,
  .contact-shell,
  .hero-strip article {
    padding: 20px;
  }

  .cursor-glow {
    display: none;
  }

  .lead {
    font-size: 16px;
  }

  .hero-stack {
    min-height: 500px;
  }

  .primary-card,
  .small-card.top-right,
  .small-card.middle-right,
  .wide-card.bottom-card {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .primary-card {
    top: 16px;
  }

  .small-card.top-right {
    top: 210px;
    bottom: auto;
  }

  .small-card.middle-right {
    top: 300px;
    bottom: auto;
  }

  .wide-card.bottom-card {
    top: 390px;
    bottom: auto;
  }
}
