/* The Chakra Petch webfont is loaded from each page's <head> with a
   preconnect + <link rel="stylesheet">. Loading it here with @import would
   chain two round trips before rendering and hurt LCP. */

:root {
  --bg: #101014;
  --bg-elevated: #141319;
  --border: #1c1b22;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --muted-2: rgba(255, 255, 255, 0.55);
  --accent: #15cf61;
  --accent-soft: rgba(21, 207, 97, 0.16);
  --navy: #0a1132;
  --glass: rgba(255, 255, 255, 0.15);
  --max: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Chakra Petch", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

main {
  flex: 1;
}

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

img {
  max-width: 100%;
  display: block;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(24px);
  background: rgba(16, 16, 20, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  height: 36px;
  padding: 0 16px;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #062214;
}

.btn-primary:hover {
  background: #12b856;
  box-shadow: 0 8px 24px rgba(21, 207, 97, 0.25);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #9ca3af;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 8px 24px 20px;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
}

.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 64px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(21, 207, 97, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(10, 17, 50, 0.8), transparent 70%);
  pointer-events: none;
}

.hero {
  position: relative;
  max-width: 900px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 18px;
}

.kicker-bar {
  width: 16px;
  height: 3px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero h1 {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero p {
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-glass {
  position: relative;
  overflow: hidden;
  height: auto;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--glass);
  color: #fff;
  backdrop-filter: blur(24px);
  font-size: 16px;
}

.btn-glass:hover {
  background: var(--accent);
  color: #062214;
  box-shadow: 0 12px 32px rgba(21, 207, 97, 0.25);
}

.btn-glass svg {
  transition: transform 0.3s ease;
}

.btn-glass:hover svg {
  transform: rotate(12deg);
}

.section {
  max-width: var(--max);
  margin: 0 auto 72px;
  padding: 0 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
}

.section-head p {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 500;
  color: var(--muted-2);
  margin-top: 4px;
}

.grid-3,
.grid-stats,
.projects-grid {
  display: grid;
  border: 3px solid var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 3px solid var(--bg-elevated);
}

.card:last-child {
  border-right: 0;
}

.icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 19, 25, 0.35);
  border: 3px solid rgba(20, 19, 25, 0.25);
  margin-bottom: 16px;
  color: #fff;
}

.card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
}

.grid-stats {
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 32px 16px;
  text-align: center;
  border-right: 3px solid var(--bg-elevated);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}

.projects-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project {
  padding: 0;
  min-height: 240px;
  border-right: 3px solid var(--bg-elevated);
  border-bottom: 3px solid var(--bg-elevated);
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}

.project-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project:hover .project-media img {
  transform: scale(1.05);
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.project:last-child:nth-child(odd) .project-media {
  max-height: 360px;
}

.project:nth-child(2n) {
  border-right: 0;
}

.project:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.project:hover {
  background: rgba(21, 207, 97, 0.04);
}

.badge {
  display: inline-flex;
  width: fit-content;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(21, 207, 97, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
}

.project h3 {
  font-size: 22px;
  font-weight: 600;
}

.project p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}

.project-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto;
}

.stack span {
  border: 1px solid var(--border);
  background: rgba(20, 19, 25, 0.5);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 3px solid var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
}

.review {
  padding: 24px;
  border-right: 3px solid var(--bg-elevated);
  border-bottom: 3px solid var(--bg-elevated);
}

.review:nth-child(2n) {
  border-right: 0;
}

.review:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.review p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.review strong {
  display: block;
  font-size: 14px;
}

.review small {
  color: var(--muted-2);
  font-weight: 300;
}

.faq {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}

.faq-item button:hover {
  text-decoration: underline;
}

.faq-item button svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--muted-2);
}

.faq-item.open button svg {
  transform: rotate(180deg);
}

.faq-body {
  display: none;
  padding: 0 0 18px;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.open .faq-body {
  display: block;
}

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 840px;
  height: 840px;
  transform: translate(-50%, -40%);
  background: radial-gradient(closest-side, rgba(21, 207, 97, 0.22), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.footer-left {
  max-width: 360px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 44px;
  filter: drop-shadow(0 0 16px rgba(21, 207, 97, 0.25));
}

.footer-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.footer-brand span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-2);
  margin-top: 2px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  opacity: 1;
  background: var(--accent-soft);
  border-color: rgba(21, 207, 97, 0.4);
  transform: translateY(-2px);
}

.socials img,
.socials svg {
  width: 18px;
  height: 18px;
}

.footer-cols {
  display: flex;
  gap: 72px;
}

.footer-cols h4 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--muted-2);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer-cols a:hover {
  color: var(--accent);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted-2);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.page-hero {
  padding: 140px 24px 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 600;
}

.page-hero p {
  color: var(--muted);
  font-weight: 300;
  font-size: 18px;
  margin-top: 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border: 3px solid var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 3px solid var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
}

.about-copy,
.contact-card {
  padding: 32px;
  border-right: 3px solid var(--bg-elevated);
}

.contact-card {
  border-bottom: 3px solid var(--bg-elevated);
}

.contact-card:nth-child(2n) {
  border-right: 0;
}

.contact-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.about-copy p,
.contact-card p {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-side {
  padding: 32px;
}

.about-side h3,
.contact-card h3 {
  margin-bottom: 12px;
}

.contact-card a.big-link {
  display: inline-block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  margin-top: 8px;
}

.section-cta {
  text-align: center;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .grid-3,
  .grid-stats,
  .projects-grid,
  .reviews,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .stat,
  .project,
  .review,
  .about-copy,
  .contact-card {
    border-right: 0;
    border-bottom: 3px solid var(--bg-elevated);
  }

  .card:last-child,
  .stat:last-child,
  .project:last-child,
  .review:last-child,
  .project:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .footer-inner,
  .footer-cols,
  .footer-bottom {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}
