/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #000000;
  --bg-alt: #0c0f0a;
  --surface: #111311;
  --text: #f5f7f2;
  --text-soft: #a3a89d;
  --border: #252a22;
  --accent: #84f03d;
  --accent-hover: #a2ff66;
  --accent-soft: rgba(132, 240, 61, 0.12);
  --on-accent: #000000;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: var(--on-accent);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: .95rem;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 10px 30px -10px rgba(132, 240, 61, 0.55);
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(10px)) {
  .nav { background: var(--bg); }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-logo img { width: 40px; height: 40px; border-radius: 8px; }
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-soft);
  transition: color .2s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* =============================================================
   6. Sections
   ============================================================= */
.hero {
  padding-block: clamp(4.5rem, 12vw, 8rem) clamp(3.5rem, 8vw, 6rem);
}
.hero-inner { max-width: 720px; }
.hero-kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: .6rem;
}
.section-sub {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 2.75rem;
  max-width: 50ch;
}

.work { padding-block: clamp(2rem, 6vw, 3rem) clamp(4rem, 8vw, 6rem); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 200px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(132, 240, 61, 0.35);
  border-color: var(--accent);
}
.card-tag {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card-title { font-size: 1.35rem; font-weight: 800; }
.card-desc { color: var(--text-soft); font-size: .95rem; }
.card-cta {
  margin-top: auto;
  padding-top: .5rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform .25s var(--ease-out);
}
.card:hover .card-cta { transform: translateX(4px); }

.contact {
  background: var(--bg-alt);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-inner {
  max-width: 640px;
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .section-sub { margin-inline: auto; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer { padding-block: 2rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: .9rem;
}

/* =============================================================
   7. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-actions { gap: 1.25rem; }
}
