html {
  overflow-x: hidden;
}

:root {
  --header-height: 78px;
}

body {
  margin: 0;
  background: #0A0A0C;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #D4FF3F;
  color: #0A0A0C;
}

a {
  color: #D4FF3F;
}

/* GSAP reveal targets start hidden to avoid a flash of unanimated content */
.gsap-reveal,
.gsap-stagger {
  opacity: 0;
}

.accent-text {
  color: #D4FF3F;
}

/* Page wrap */
.page-wrap {
  background: #0A0A0C;
  color: #F5F5F0;
  width: 100%;
}

/* Shared section rhythm */
.section-padded {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 14vw, 120px) clamp(20px, 6vw, 80px);
  border-bottom: 1px solid #232327;
  box-sizing: border-box;
}

.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  max-width: 820px;
  line-height: 1.15;
  margin: 0 0 64px;
}

.section-heading--tight {
  margin: 0 0 16px;
}

.section-statement {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  max-width: 760px;
  margin: 56px 0 0;
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 3vw, 16px);
  background: #D4FF3F;
  color: #0A0A0C;
  border: none;
  padding: clamp(14px, 3vw, 18px) clamp(20px, 5vw, 32px);
  border-radius: 100px;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-submit {
  padding: clamp(14px, 3vw, 16px) clamp(20px, 5vw, 32px);
  margin-top: 8px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid transparent;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(8px);
  transition: padding 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(10, 10, 12, 0.65);
  backdrop-filter: blur(12px);
  border-bottom-color: #232327;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link-desktop {
  display: none;
  position: relative;
  text-decoration: none;
  font-size: 14px;
  color: #F5F5F0;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link-desktop::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #D4FF3F;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-cta {
  background: #D4FF3F;
  color: #0A0A0C;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta::after {
  content: none;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 61;
}

.mobile-menu-btn-bar {
  width: 24px;
  height: 2px;
  background: #F5F5F0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.is-open .mobile-menu-btn-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open .mobile-menu-btn-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open .mobile-menu-btn-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in mobile menu, closed by default; toggled via script.js */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(320px, 84vw);
  height: 100vh;
  background: rgba(10, 10, 12, 0.98);
  backdrop-filter: blur(12px);
  border-left: 1px solid #232327;
  flex-direction: column;
  justify-content: center;
  padding: 32px clamp(24px, 8vw, 48px);
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: clamp(20px, 6vw, 32px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #232327;
  background: transparent;
  color: #F5F5F0;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-link {
  text-decoration: none;
  font-size: 18px;
  color: #F5F5F0;
  padding: 14px 0;
  border-bottom: 1px solid #232327;
  transition: color 0.3s ease;
}

.mobile-menu-link--last {
  color: #D4FF3F;
  border-bottom: none;
}

/* Hero */
.hero {
  position: relative;
  z-index: 0;
  min-height: calc(100vh - var(--header-height));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(48px, 10vw, 80px) clamp(20px, 6vw, 80px);
  border-bottom: 1px solid #232327;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(110, 91, 255, 0.15), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(212, 255, 63, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  flex: 1 1 480px;
  min-width: 0;
  max-width: 720px;
}

.hero-visual {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas {
  width: min(100%, 640px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  color: #8A8A93;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6.5vw, 84px);
  line-height: 1.05;
  margin: 0 0 28px;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: #8A8A93;
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-note {
  font-size: 13px;
  color: #8A8A93;
}

/* Comparison */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.comparison-card {
  background: #151519;
  border: 1px solid #232327;
  border-radius: 20px;
  padding: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card--highlight {
  border-color: #D4FF3F;
  box-shadow: 0 0 40px rgba(212, 255, 63, 0.08);
}

.comparison-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #8A8A93;
  margin-bottom: 24px;
}

.comparison-card-label--accent {
  color: #D4FF3F;
}

.comparison-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-item {
  display: flex;
  gap: 12px;
  font-size: 17px;
  color: #8A8A93;
}

.comparison-item--positive {
  color: #F5F5F0;
}

.comparison-icon--positive {
  color: #D4FF3F;
}

/* Process */
.process-list {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 32px 24px;
  margin: 0 -24px;
  border-top: 1px solid #232327;
  border-radius: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.process-step--last {
  border-bottom: 1px solid #232327;
}

.process-step-number {
  font-family: 'JetBrains Mono', monospace;
  color: #8A8A93;
  font-size: 16px;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.process-step-number--accent {
  color: #D4FF3F;
}

.process-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  margin: 0 0 10px;
}

.process-step-desc {
  color: #8A8A93;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

/* Portfolio */
.portfolio-lead {
  color: #8A8A93;
  font-size: 17px;
  margin: 0 0 56px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: #151519;
  border: 1px solid #232327;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
  background: #1B1B21;
  color: #8A8A93;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.portfolio-body {
  padding: 24px;
}

.portfolio-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
}

.portfolio-badge--accent {
  color: #D4FF3F;
  background: rgba(212, 255, 63, 0.1);
}

.portfolio-badge--purple {
  color: #6E5BFF;
  background: rgba(110, 91, 255, 0.12);
}

.portfolio-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin: 16px 0 8px;
}

.portfolio-desc {
  color: #8A8A93;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Contact */
.contact-section {
  min-height: calc(100vh - var(--header-height));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 14vw, 120px) clamp(20px, 6vw, 80px);
  position: relative;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(110, 91, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  margin: 0 0 24px;
}

.contact-text {
  color: #8A8A93;
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

.contact-form {
  background: #151519;
  border: 1px solid #232327;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  color: #8A8A93;
}

.form-control {
  background: #0A0A0C;
  border: 1px solid #232327;
  border-radius: 10px;
  padding: 14px 16px;
  color: #F5F5F0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

.form-control--textarea {
  resize: vertical;
}

.form-footnote {
  font-size: 13px;
  color: #8A8A93;
  text-align: center;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #232327;
  background: #151519;
  color: #F5F5F0;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-arrow {
  transition: transform 0.3s ease;
}

/* Footer */
.site-footer {
  padding: 32px clamp(20px, 6vw, 80px);
  border-top: 1px solid #232327;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #8A8A93;
}

/* Hover-only effects, scoped to devices with a real pointer so touch
   taps on mobile/tablet don't leave a "stuck" hover state behind. */
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: #6E5BFF;
  }

  .btn:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 32px rgba(212, 255, 63, 0.35);
  }

  .btn:hover .btn-arrow {
    transform: translate(4px, -4px);
  }

  .nav-link-desktop:hover {
    color: #D4FF3F;
  }

  .nav-link-desktop:hover::after {
    transform: scaleX(1);
  }

  .nav-cta:hover {
    color: #0A0A0C;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 255, 63, 0.3);
  }

  .mobile-menu-close:hover {
    border-color: #D4FF3F;
    color: #D4FF3F;
    transform: rotate(90deg);
  }

  .mobile-menu-link:hover {
    color: #D4FF3F;
  }

  .comparison-card:hover {
    transform: translateY(-6px);
    border-color: #6E5BFF;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .comparison-card--highlight:hover {
    border-color: #D4FF3F;
    box-shadow: 0 16px 46px rgba(212, 255, 63, 0.18);
  }

  .process-step:hover {
    transform: translateY(-6px);
    background: #151519;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .process-step:hover .process-step-number {
    color: #D4FF3F;
    transform: scale(1.15);
  }

  .portfolio-card:hover {
    transform: translateY(-6px);
    border-color: #D4FF3F;
    box-shadow: 0 16px 40px rgba(212, 255, 63, 0.12);
  }

  .back-to-top:hover {
    border-color: #D4FF3F;
    box-shadow: 0 8px 24px rgba(212, 255, 63, 0.25);
    transform: translateY(-4px);
  }

  .back-to-top:hover .back-to-top-arrow {
    transform: translateY(-2px);
  }
}

@media (min-width: 800px) {
  .nav-link-desktop {
    display: inline-block !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .hero-visual {
    display: none;
  }
}
