:root {
  --accent: #4CAF50;
  --accent-soft: #ffe8e2;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --text: #0d0d0e;
  --muted: #636b77;
  --border: #e5e8ee;
}

:root[data-theme="dark"] {
  --accent: #4CAF50;
  --accent-soft: #3d2621;
  --bg: #202020;
  --surface: #2B2B2B;
  --surface-alt: #141821;
  --text: #eef1f6;
  --muted: #a7afbd;
  --border: #2a3140;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --accent: #4CAF50;
    --accent-soft: #364e37;
    --bg: #202020;
    --surface: #2B2B2B;
    --surface-alt: #141821;
    --text: #eef1f6;
    --muted: #a7afbd;
    --border: #1f1f1f;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-weight: 600;
}

.theme-btn:hover {
  color: var(--text);
}

.theme-btn:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4.5rem;
}

section {
  margin-bottom: 4rem;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.8rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 16ch;
}

.hero-copy {
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.65rem 1.05rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface);
}

.hero-panel,
.tier-card,
.card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.hero-panel {
  padding: 1.1rem;
}

.hero-panel h2 {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-top: 1px solid var(--border);
}

.stat:first-of-type {
  border-top: 0;
}

.stat span {
  color: var(--muted);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.section-copy {
  color: var(--muted);
  margin-top: 0.45rem;
}

.tiers-grid,
.projects {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.tier-card {
  padding: 1.15rem;
}

.tier-card h3 {
  margin-bottom: 0.25rem;
}

.tier-card .price {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.tier-card.featured {
  background: linear-gradient(180deg, var(--surface), var(--accent-soft));
}

.card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.card p {
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.project-link {
  margin-top: 0.2rem;
  color: var(--accent);
  font-weight: 700;
}

.contact-card {
  padding: 1.2rem;
}

.contact-card p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.contact-card a {
  color: var(--text);
}

.contact-card a:hover {
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 1.4rem 1rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.3rem;
  }
}

@media (max-width: 620px) {
  main {
    padding-top: 2rem;
  }

  .card img {
    height: 155px;
  }
}
