:root {
  --bg: #06070a;
  --surface: #101319;
  --surface-hover: #161a22;
  --border: #232838;
  --text: #f3f5f9;
  --muted: #97a0b3;
  --accent-a: #5b9bff;
  --accent-b: #2f5fe0;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

/* Hero */

.hero {
  padding: 96px 0 80px;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 2.75rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero-tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 32px;
  max-width: 40ch;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  transition: opacity 0.15s ease, transform 0.15s ease;
}

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

/* Sections */

section h2 {
  font-size: 1.6rem;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

.projects {
  padding: 32px 0 88px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

a.project-card:hover {
  border-color: var(--accent-a);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.project-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.tag {
  font-size: 0.75rem;
  color: var(--accent-a);
  background: rgba(91, 155, 255, 0.1);
  border: 1px solid rgba(91, 155, 255, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
}

.contact {
  padding: 32px 0 96px;
  border-top: 1px solid var(--border);
}

.contact p {
  color: var(--muted);
  margin: 0 0 12px;
}

.contact a {
  color: var(--accent-a);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* App detail pages */

.back-link {
  display: inline-block;
  margin: 32px 0 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--text);
}

.detail-hero {
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--border);
}

.detail-hero h1 {
  font-size: 2.25rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.detail-tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 20px;
  max-width: 640px;
}

.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7ee0a8;
  background: rgba(126, 224, 168, 0.1);
  border: 1px solid rgba(126, 224, 168, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.detail-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-of-type {
  border-bottom: none;
}

.detail-section h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.detail-section p {
  color: var(--muted);
  max-width: 680px;
  margin: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.feature-list li {
  color: var(--muted);
  padding-left: 22px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 560px) {
  .site-nav {
    gap: 16px;
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}
