:root {
  font-size: 112.5%;
  --bg: #080b10;
  --bg-raised: #0e131a;
  --border: rgba(255,255,255,0.06);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-dim: rgba(56,189,248,0.12);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
}

*::-webkit-scrollbar {
  width: 4px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.45);
  border-radius: 999px;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.site-header {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Space Mono', monospace;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
}

.logo-accent {
  color: var(--accent);
}

.hero {
  padding: 2.2rem 0 2.6rem;
}

.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(3.8rem, 7vw, 6rem);
  line-height: 1.03;
  font-weight: 600;
}

.title-accent {
  color: var(--accent);
}

.hero-spec {
  margin-top: 1.3rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.spec-item {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--muted);
}

.spec-key {
  color: var(--accent);
}

.infrastructure {
  padding: 1.6rem 0;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.infra-grid {
  display: flex;
  gap: 0.8rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.infra-card {
  flex: 1 1 520px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.infra-icon {
  font-size: 1.6rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.infra-body {
  display: flex;
  flex-direction: column;
}

.infra-title {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
}

.infra-desc {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--muted);
}

.infra-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--muted);
}

.projects {
  padding-bottom: 2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 1.4rem;
}

.project-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: 
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #111826;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

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

.project-card:hover {
  border-color: rgba(56,189,248,0.5);
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(56,189,248,0.15),
    0 10px 30px rgba(0,0,0,0.4);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  line-height: 1;
}

.card-body {
  flex: 1;
}

.card-name {
  font-weight: 500;
  font-size: 1.05rem;
}

.card-desc {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--muted);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: calc(1.3em * 2);
}

.card-addr {
  margin-top: 0.3rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

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

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

.footer-inner {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .inner {
    padding: 0 1.3rem;
  }

  .hero-title {
    font-size: 3rem;
    margin-top: 0.2rem;
  }

  .infrastructure {
    padding: 1.2rem 0;
  }

  .infra-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .infra-card {
    flex: none;
    width: 100%;
    padding: 1.1rem 1.3rem;
  }

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

  .project-card {
    padding: 1.3rem;
  }

  .infra-arrow {
    width: 100%;
    margin: 0.3rem 0;
  }
}