:root {
  --bg: #0a0a0f;
  --bg-dark: #07070b;
  --fg: #f5f5f5;
  --primary: #7b2fff;
  --font-heading: "Bebas Neue", sans-serif;
  --font-body: "Space Grotesk", -apple-system, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123, 47, 255, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  height: 2.25rem;
  width: auto;
}

.logo-sm {
  height: 2rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(245, 245, 245, 0.55);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.btn-outline {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(123, 47, 255, 0.2);
  transition: all 0.3s;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle.open .icon-menu {
  display: none;
}

.menu-toggle.open .icon-close {
  display: block;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.open {
  display: flex;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 60%, rgba(123, 47, 255, 0.12) 0%, transparent 70%);
}

.hero-watermark {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  line-height: 0.85;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(80px, 18vw, 260px);
  color: rgba(123, 47, 255, 0.04);
  letter-spacing: -0.02em;
  transform: translateY(30%);
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(123, 47, 255, 0.8);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2rem;
  font-size: clamp(48px, 8vw, 112px);
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 14ch;
}

.text-glow {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(123, 47, 255, 0.5);
}

.hero-desc {
  max-width: 36rem;
  margin-bottom: 3rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(245, 245, 245, 0.5);
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.125rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 24px rgba(123, 47, 255, 0.4);
  transition: all 0.3s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-primary svg {
  transition: transform 0.2s;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(245, 245, 245, 0.15);
  color: rgba(245, 245, 245, 0.6);
  transition: all 0.3s;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}

/* Sections */
.section {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.02em;
  color: var(--fg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.4);
  transition: color 0.2s;
}

.link-arrow:hover {
  color: var(--fg);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.link-arrow svg {
  transition: transform 0.2s;
}

/* Projects */
.projects {
  background: var(--bg);
}

.projects-line {
  position: absolute;
  top: 0;
  left: 10%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(123, 47, 255, 0.3), transparent);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(123, 47, 255, 0.08);
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 2rem;
  background: rgba(16, 14, 26, 0.85);
  border: 1px solid rgba(123, 47, 255, 0.15);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.project-card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-card-glow {
  opacity: 1;
}

.project-card:hover .project-explore {
  opacity: 1;
}

.project-tag {
  display: block;
  margin-bottom: 1rem;
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(245, 245, 245, 0.5);
}

.project-explore {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Studio */
.studio {
  background: var(--bg-dark);
}

.studio-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(123, 47, 255, 0.08) 0%, transparent 70%);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .studio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.studio-quote {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
}

.studio-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.studio-text p {
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(245, 245, 245, 0.5);
}

.studio-text p.muted {
  color: rgba(245, 245, 245, 0.35);
}

.link-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.link-primary:hover svg {
  transform: translateX(4px);
}

.link-primary svg {
  transition: transform 0.2s;
}

/* Social */
.social {
  background: var(--bg);
}

.hex-decoration {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.12;
  pointer-events: none;
}

.social-content {
  max-width: 42rem;
}

.social-desc {
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(245, 245, 245, 0.45);
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(245, 245, 245, 0.15);
  color: rgba(245, 245, 245, 0.5);
  transition: all 0.3s;
}

.btn-social.primary {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 16px rgba(123, 47, 255, 0.2);
}

/* Footer */
.footer {
  position: relative;
  margin-top: auto;
  background: var(--bg-dark);
  border-top: 1px solid rgba(123, 47, 255, 0.15);
}

.footer-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 47, 255, 0.6), transparent);
}

.footer .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
  color: rgba(245, 245, 245, 0.35);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 245, 245, 0.25);
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(245, 245, 245, 0.45);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(123, 47, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom span {
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.2);
}

.footer-mono {
  font-family: monospace;
  color: rgba(123, 47, 255, 0.4) !important;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 640px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
  }
}

.cookie-text h3 {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.cookie-text p {
  font-size: 0.875rem;
  color: #4b5563;
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

.btn-decline,
.btn-accept {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.btn-decline {
  background: #ec4899;
}

.btn-decline:hover {
  background: #db2777;
}

.btn-accept {
  background: var(--primary);
}

.btn-accept:hover {
  background: #6a1fe6;
}
