:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-soft: #f4f1ec;
  --text: #171717;
  --muted: #5f5f63;
  --line: #ded9d1;
  --accent: #2b5cff;
  --accent-dark: #173ab8;
  --shadow: 0 18px 50px rgba(22, 22, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #eef3ff 0, rgba(238, 243, 255, 0) 32rem), var(--bg);
  line-height: 1.6;
}

body::selection {
  background: #dce5ff;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(251, 250, 248, 0.78);
  border-bottom: 1px solid rgba(222, 217, 209, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: -0.06em;
  background: var(--surface);
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.section-heading a:hover,
.project-card a:hover,
.contact-links a:hover,
.footer a:hover {
  color: var(--accent);
}

.hero {
  padding: 92px 0 68px;
}

.hero-content {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 9vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero-subtitle {
  max-width: 780px;
  margin-bottom: 30px;
  color: #333336;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #262628;
  font-weight: 650;
  box-shadow: 0 6px 22px rgba(20, 20, 20, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #b9c4ff;
  background: #fff;
}

.button.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading a {
  color: var(--muted);
  font-weight: 600;
}

.text-block {
  max-width: 830px;
  color: #353538;
  font-size: 1.05rem;
}

.text-block p:last-child,
.feature-card p:last-child,
.project-card p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.feature-card,
.contact-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.feature-card p,
.contact-card p {
  color: #3b3b3f;
}

.feature-card.compact {
  display: block;
}

.feature-card.compact a {
  color: var(--accent);
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #49494d;
  font-size: 0.88rem;
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 38px rgba(22, 22, 22, 0.05);
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.project-card p {
  color: #46464a;
  font-size: 0.96rem;
}

.project-meta {
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-links a {
  color: var(--accent);
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 52px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  font-weight: 700;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

  .nav-links {
    gap: 14px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }

  .hero {
    padding: 62px 0 42px;
  }

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

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .feature-card,
  .contact-card {
    padding: 22px;
    border-radius: 22px;
  }

  .footer {
    flex-direction: column;
  }
}
