:root {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0f172a;
  --accent-2: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 16%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 18%),
    linear-gradient(135deg, #f8fbff 0%, #f3f6fb 42%, #eef2f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.4;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

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

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-grid,
.content-grid,
.work-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.hero-grid > div,
.info-card,
.project-card,
.contact-card,
.hero-panel {
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: var(--shadow);
}

.eyebrow,
.info-kicker,
.project-tag,
.panel-label {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--accent-2);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 2vw + 1.5rem, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-copy,
.page-intro p,
.info-card p,
.project-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0.85rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #111827 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 18px 30px rgba(29, 78, 216, 0.22);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 251, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.stat-card strong {
  font-size: 1.8rem;
  color: var(--text);
}

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

.page-intro {
  padding: 1.2rem 0.2rem 0.4rem;
}

.project-card.featured {
  grid-column: 1 / -1;
}

.inline-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  display: inline-block;
  margin-top: 0.85rem;
}

.inline-link:hover {
  color: var(--accent-2);
}

.site-footer {
  padding: 2rem 0 0.5rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .hero-grid,
  .content-grid,
  .work-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 1.25rem;
    padding: 1rem;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1120px);
  }

  .hero-grid > div,
  .info-card,
  .project-card,
  .contact-card,
  .hero-panel {
    padding: 1.2rem;
  }

  h1 {
    font-size: 2rem;
  }
}
