/* ═══════════════════════════════════════════
   SA Ventures — Deep Space + Apple Typography
   Black void. Stars. Clean brutal type.
   ═══════════════════════════════════════════ */

:root {
  --bg: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f7;
  --gray-300: #d1d1d6;
  --gray-400: #86868b;
  --gray-500: #6e6e73;
  --gray-700: #333336;
  --gray-800: #1d1d1f;
  --gray-900: #0a0a0a;
  --surface: #0d0d0f;
  --border: rgba(255, 255, 255, 0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'Space Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: var(--white);
  color: var(--bg);
}

/* ─── Canvas ─── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 60px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-400);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--white);
  display: block;
  transition: all 0.3s;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem;
}

.hero-content {
  max-width: 1000px;
}

.hero-title {
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}

.hero-title .line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line-1 {
  font-size: clamp(4rem, 12vw, 10rem);
  color: var(--gray-500);
  animation-delay: 0.1s;
}

.hero-title .line-2 {
  font-size: clamp(4rem, 12vw, 10rem);
  color: var(--white);
  animation-delay: 0.25s;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 16px 40px;
  background: var(--white);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.hero-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

/* ─── Sections ─── */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 4vw, 4rem);
}

.section-alt {
  background: var(--surface);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.big-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

/* ─── Services ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  padding: clamp(2rem, 3vw, 3rem);
  transition: background 0.3s;
}

.service-card:hover {
  background: var(--surface);
}

.service-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gray-700);
  display: block;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--gray-100);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  font-weight: 400;
}

/* ─── Approach ─── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.approach-line {
  width: 40px;
  height: 2px;
  background: var(--white);
  margin-bottom: 2rem;
  opacity: 0.2;
}

.approach-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--gray-100);
}

.approach-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ─── Statement ─── */
.statement {
  text-align: center;
  padding: clamp(6rem, 12vw, 14rem) 2rem;
  background: var(--bg);
}

.statement-text {
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto;
  color: var(--white);
}

/* ─── Solutions ─── */
.solutions-sub {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.7;
  margin-top: -2rem;
  margin-bottom: 4rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-block {
  border-top: 2px solid var(--white);
  padding-top: 2rem;
}

.solution-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--gray-100);
}

.solution-block ul {
  list-style: none;
}

.solution-block li {
  font-size: 0.9rem;
  color: var(--gray-500);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.solution-block li:last-child {
  border-bottom: none;
}

/* ─── Contact ─── */
.contact-inner {
  max-width: 700px;
}

.contact-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  margin-top: -2rem;
  color: var(--gray-500);
}

.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  background: var(--white);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.contact-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color 0.2s;
  margin-bottom: 0.25rem;
}

.contact-col a:hover {
  color: var(--white);
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.footer-legal,
.footer-copy {
  font-size: 0.75rem;
  color: var(--gray-700);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Keyframes ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }

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

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
