
:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --surface: #12121d;
  --border: #29293b;
  --text: #f2f2fa;
  --muted: #9999b2;
  --purple: #a78bfa;
  --blue: #60a5fa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -20%, #30204b 0%, transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.7;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(1050px, calc(100% - 40px));
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0b0b12dd;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #ffffff10;
}

.navbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 850;
  letter-spacing: -1px;
}

.brand span {
  color: var(--purple);
}

nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.menu-toggle {
  display: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
}

.hero {
  padding-top: 90px;
  padding-bottom: 50px;
}

.eyebrow {
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin-top: 12px;
}

.gradient {
  background: linear-gradient(100deg, var(--purple), var(--blue));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  max-width: 620px;
  margin-top: 18px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 13px;
  cursor: pointer;
  font-size: 0.84rem;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.filter:hover,
.filter.active {
  color: var(--text);
  background: #a78bfa1a;
  border-color: #a78bfa80;
}

.filter:focus-visible,
.menu-toggle:focus-visible,
.search:focus-visible,
a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.search {
  width: min(100%, 260px);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  outline: none;
}

.search:focus {
  border-color: var(--purple);
}

.search::placeholder {
  color: var(--muted);
}

.count {
  color: var(--muted);
  font-size: 0.83rem;
  margin: 22px 0 15px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 90px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, #151521, #101019);
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #62518c;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #a78bfa30;
  border-radius: 13px;
  background: #a78bfa15;
  color: #c4b5fd;
  font-size: 1.35rem;
}

.status {
  color: #c4b5fd;
  background: #a78bfa15;
  border: 1px solid #a78bfa30;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 0.72rem;
}

.status.completed {
  color: #86efac;
  background: #22c55e12;
  border-color: #22c55e30;
}

.status.prototype {
  color: #fcd34d;
  background: #f59e0b12;
  border-color: #f59e0b30;
}

.project-card h2 {
  font-size: 1.2rem;
  margin-top: 22px;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.description {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
  flex: 1;
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag {
  color: #b9b9d0;
  background: #ffffff05;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 0.73rem;
  overflow-wrap: anywhere;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: #c4b5fd;
  font-size: 0.88rem;
  font-weight: 650;
  width: fit-content;
}

.project-link:hover {
  color: white;
}

.empty {
  display: none;
  color: var(--muted);
  text-align: center;
  padding: 50px 15px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  grid-column: 1 / -1;
}

footer {
  border-top: 1px solid var(--border);
  padding: 25px 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

@media (max-width: 700px) {
  .navbar {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0b0b12;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 10px 0;
  }

  .hero {
    padding-top: 65px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .search {
    width: 100%;
  }

  .toolbar {
    align-items: stretch;
  }

  .filters {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .project-card:hover {
    transform: none;
  }
}
