:root {
  --bg: #04070f;
  --bg-accent: #071426;
  --glow: #67d6ff;
  --glow-secondary: #f5a623;
  --text: #f5f7fb;
  --muted: #a9b5cc;
  --card: rgba(9, 18, 32, 0.8);
  --stroke: rgba(255, 255, 255, 0.08);
  --pill: rgba(255, 255, 255, 0.12);
  --success: #4ade80;
  --warning: #facc15;
  font-size: clamp(14px, 1vw + 8px, 18px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  background: var(--bg);
}

.background-glow {
  position: fixed;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(103, 214, 255, 0.3), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(245, 166, 35, 0.25), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1), transparent 40%);
  z-index: -2;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  z-index: -1;
}

main,
header,
footer {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.hero {
  padding: 3rem 0 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 90px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content h1 span {
  display: block;
  color: var(--glow-secondary);
  font-size: 0.7em;
}

.hero-content .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.hero-stats div {
  padding: 1rem 1.25rem;
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: rgba(4, 7, 15, 0.6);
}

.hero-stats span {
  display: block;
  font-size: 2rem;
  font-weight: 600;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--glow);
}

.section {
  padding: 4rem 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-top: 0.5rem;
}

.service-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-grid article,
.project-grid article,
.contact-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1.5rem;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  position: relative;
}

.service-grid article::after,
.project-grid article::after,
.kofi-entry::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(103, 214, 255, 0.2), rgba(245, 166, 35, 0.2));
  mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
  mask-composite: exclude;
  pointer-events: none;
}

.service-grid h3,
.project-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-grid p,
.project-grid p {
  color: var(--muted);
}

.service-grid ul {
  list-style: none;
  margin-top: 1rem;
  color: var(--muted);
}

.service-grid li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.service-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--glow);
  border-radius: 50%;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tags span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

.kofi {
  position: relative;
}

.kofi-cta .cta-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta-points {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.cta-points li {
  padding-left: 1.5rem;
  position: relative;
}

.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glow);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.kofi-utility {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.kofi-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.kofi-controls select {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-family: inherit;
}

.kofi-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.kofi-entry {
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  appearance: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
}

.kofi-entry .amount {
  font-weight: 600;
  color: var(--glow);
}

.kofi-entry:hover,
.kofi-entry:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  border-color: rgba(103, 214, 255, 0.4);
  outline: none;
}

.entry-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.entry-top strong {
  font-size: 1.05rem;
}

.entry-top span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.entry-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.entry-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  gap: 0.5rem;
}

.kofi-entry .status {
  font-size: 0.8rem;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  text-transform: capitalize;
}

.status.tip,
.status.ko-fi,
.status.ko-fi-support,
.status.support {
  color: var(--glow);
  border-color: rgba(103, 214, 255, 0.35);
}

.status[class*="monthly-tip"] {
  color: var(--glow-secondary);
  border-color: rgba(245, 166, 35, 0.35);
}

.status[class*="shop-order"],
.status[class*="product"] {
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.35);
}

.feed-status {
  color: var(--muted);
  padding: 1rem 0;
}

.contact {
  padding-bottom: 6rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  background: var(--pill);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill.primary {
  background: linear-gradient(120deg, var(--glow), var(--glow-secondary));
  color: #03111d;
}

.pill.ghost {
  background: transparent;
  border-color: var(--stroke);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.footer {
  border-top: 1px solid var(--stroke);
  padding: 2rem 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  main,
  header,
  footer {
    width: 92vw;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .kofi-entry {
    grid-template-columns: 1fr;
  }

  .kofi-utility {
    flex-direction: column;
    align-items: stretch;
  }
}
