:root {
  --ink: #f8fafc;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);
  --neon: #4f46e5;
  --aurora: #0ea5e9;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(15, 23, 42, 0.08);
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk/space-grotesk-300.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk/space-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk/space-grotesk-700.woff2") format("woff2");
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background: var(--ink);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}
.bg-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 10% 10%, rgba(79, 70, 229, 0.14), transparent 60%),
    radial-gradient(700px 450px at 90% 20%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(900px 500px at 50% 100%, rgba(99, 102, 241, 0.12), transparent 70%);
  pointer-events: none;
}
.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  background: transparent;
  color: var(--text);
}
.btn-primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}
.badge {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(15, 23, 42, 0.7);
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}
header.scrolled {
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
header .nav,
header .mobile-menu {
  position: relative;
  z-index: 2;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo-mark {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 80px;
  width: auto;
  display: block;
}
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-links {
  display: none;
  gap: 32px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.7);
}
.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
}
.mobile-menu {
  display: none;
  padding: 0 0 20px;
}
.mobile-menu-card {
  border-radius: 16px;
  padding: 16px;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mobile-menu.open {
  display: block;
}
.hero {
  position: relative;
  min-height: 86vh;
  padding: 160px 0 120px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
  z-index: 1;
}
canvas#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 64px;
  position: relative;
  z-index: 2;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 1.12;
  margin: 28px 0 0;
}
.hero-sub {
  margin: 6px 0 0;
  font-size: 16px;
  color: rgba(15, 23, 42, 0.68);
}
.cards {
  display: grid;
  gap: 24px;
}
.cards.spaced {
  margin-top: 24px;
}
.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}
.card.glass {
  border: none;
}
.card h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}
.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.text-muted {
  color: var(--muted);
}
section {
  padding: 80px 0;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 10px 0 0;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.5);
}
form {
  display: grid;
  gap: 16px;
}
.contact-form {
  padding: 22px;
  border-radius: 20px;
  margin-top: 24px;
}
.form-notice {
  display: none;
}
input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-family: inherit;
}
label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.6);
}
footer {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding: 30px 0 50px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.6);
}
.footer-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  font-size: 14px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .portfolio-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  form {
    grid-template-columns: repeat(2, 1fr);
  }
  form textarea,
  form .full {
    grid-column: span 2;
  }
}
