/* ============================================
   CLIENT VECTORS — styles.css
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg:           #08080F;
  --bg-alt:       #0C0C18;
  --surface:      #111120;
  --border:       #1E1E30;
  --text:         #EDEAE2;
  --text-muted:   #9292B5;
  --accent:       #4D7EFF;
  --accent-hover: #3A6AEE;
  --accent-rgb:   77, 126, 255;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container:  1100px;
  --radius:     12px;
  --radius-sm:  8px;
  --space-md:   2rem;
  --space-xl:   7rem;
}

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

html {
  scroll-behavior: auto; /* GSAP handles smooth scrolling; CSS smooth conflicts and ignores reduced-motion */
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.28);
}

.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.38);
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__brand {
  display: flex;
  align-items: center;
}

/* Transparent PNG: renders as-is. Dark-bg PNG: uncomment mix-blend-mode below. */
.nav__logo {
  height: 44px;
  width: auto;
  display: block;
  transform: scale(2.4);
  transform-origin: left center;
  filter: brightness(2.4);
  /* mix-blend-mode: screen; */
}

/* --- Hero --- */
.hero {
  padding: 5.5rem 0;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 760px;
}

.hero__headline {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

/* --- Sections --- */
.section {
  padding: var(--space-xl) 0;
}

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

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
  line-height: 1.15;
}

/* --- Cards (What We Do) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
}

.card__icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card__body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* --- Steps (How It Works) --- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step__number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  opacity: 0.75;
  line-height: 1;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.step__body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.step__arrow {
  color: rgba(var(--accent-rgb), 0.3);
  align-self: center;
  user-select: none;
}

/* --- Who This Is For --- */
.who {
  max-width: 640px;
}

.who__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--text);
}

/* --- Contact Form --- */
.form-wrap {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem 2rem;
}

.form-wrap__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form__group--submit {
  margin-bottom: 0;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.form__input {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form__input::placeholder {
  color: #40405A;
}

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  min-height: 1.5rem;
  line-height: 1.5;
}

.form__status--success { color: #5DDE8A; }
.form__status--error   { color: #FF6B6B; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Transparent PNG: renders as-is. Dark-bg PNG: uncomment mix-blend-mode below. */
.footer__logo {
  height: 28px;
  width: auto;
  display: block;
  transform: scale(2.2);
  transform-origin: left center;
  filter: brightness(2.4);
  /* mix-blend-mode: screen; */
}

.footer__email {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__email:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
/* --- Prelude --- */
#prelude {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.prelude__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%; /* slight overlap prevents hairline gap between panels */
  background: var(--bg);
}

.prelude__panel--top    { top: 0; }
.prelude__panel--bottom { bottom: 0; }

.prelude__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
}

.prelude__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.prelude__logo {
  display: block;
  height: 192px;
  width: auto;
  filter: brightness(3.2) drop-shadow(0 0 28px rgba(77, 126, 255, 0.6));
}

.prelude__bar {
  height: 2px;
  background: var(--accent);
  width: 320px;
  max-width: 80vw;
  margin: 1.25rem auto 0;
  transform: scaleX(0);
  transform-origin: center;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.6);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .step__arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --space-xl: 4.5rem;
    --space-md: 1.25rem;
  }

  .hero {
    min-height: 75vh;
  }

  /* Scale logo down so it doesn't collide with the CTA button */
  .nav__logo {
    transform: scale(1.4);
  }

  /* Hide nav CTA on mobile — hero CTA directly below serves the same purpose */
  .nav .btn--sm {
    display: none;
  }

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

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
