@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&family=Outfit:wght@300;400;500;600&display=swap');

/* =============================================================
   MOMENTUM COGNITION - Main Stylesheet
   ============================================================= */

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

:root {
  --bg-dark:       #1e2127;
  --bg-darker:     #16191e;
  --bg-darkest:    #0f1114;
  --bg-light:      #f5f6f8;
  --bg-light-card: #ffffff;

  --purple-hi:     #9a8de8;
  --purple-mid:    #7c6dd4;
  --purple-lo:     #6b4fcf;
  --purple-glow:   rgba(124, 109, 212, 0.25);

  --text-white:    #ffffff;
  --text-muted:    #9aa0aa;
  --text-dim:      #6b7280;
  --text-dark:     #1e2433;
  --text-dark-sub: #4b5563;

  --border-dark:   rgba(255,255,255,0.08);
  --border-light:  rgba(0,0,0,0.07);

  --font: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-display: 'Orbitron', 'Outfit', sans-serif;

  --r: 8px;
  --container: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-white);
  background: var(--bg-darker);
  overflow-x: hidden;
}

/* --- Google Fonts loaded at top of file --- */

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

/* =============================================================
   SCROLL PROGRESS BAR
   ============================================================= */
.spx {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-hi), var(--purple-lo));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* =============================================================
   NAV
   ============================================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(70, 78, 95, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-dark);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Inner nav content constrained to content width */
nav > * {
  /* handled by nav-inner below */
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(2rem, 6vw, 8rem);
  transition: padding 0.3s ease;
}

nav.stuck {
  background: rgba(22, 25, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-dark);
}

nav.stuck .nav-inner {
  padding: 0.85rem clamp(2rem, 6vw, 8rem);
}

.nav-logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-monogram svg {
  width: 34px;
  height: 34px;
}

.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wm-top {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wm-bot {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px var(--purple-glow);
}

.nav-cta:hover {
  opacity: 0.88;
  box-shadow: 0 0 32px rgba(124,109,212,0.45);
}

/* =============================================================
   HERO
   ============================================================= */
#hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: 0;
}

/* Subtle radial glow behind hero text */
#hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,79,207,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 8rem;  /* clear the fixed nav */
  padding-bottom: 6rem;
  /* Override container max-width - hero fills viewport like Lazarev */
  max-width: 100%;
  padding-left: clamp(2rem, 6vw, 8rem);
  padding-right: clamp(2rem, 6vw, 8rem);
}

/* Animate-in helpers */
.ha { opacity: 0; transform: translateY(24px); animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.t1 { animation-delay: 0.1s; }
.t2 { animation-delay: 0.25s; }
.t3 { animation-delay: 0.38s; }
.t4 { animation-delay: 0.5s; }
.t5 { animation-delay: 0.62s; }
.t6 { animation-delay: 0.75s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1.1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.hero-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-hi), var(--purple-lo));
  margin-bottom: 1.6rem;
  border-radius: 2px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 99rem);  /* grows with viewport, no ceiling */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  max-width: 14ch;  /* keep to ~2-3 lines regardless of size */
}

.hero-tagline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.4rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Shared button base */
.btn-fill, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
}

.btn-fill {
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  color: #fff;
  box-shadow: 0 0 24px var(--purple-glow);
}
.btn-fill:hover {
  box-shadow: 0 0 40px rgba(124,109,212,0.5);
  opacity: 0.92;
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--bg-darkest);
  background: rgba(255,255,255,0.9);
}
.btn-ghost:hover {
  background: rgba(255,255,255,1);
  border-color: rgba(255,255,255,0.4);
  color: var(--bg-darkest);
}

/* Ticker */
.hero-ticker {
  margin-top: 2.5rem;
  width: 100%;
}

.ticker-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.ticker-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes ticker-px {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--ticker-w))); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.4rem 1rem;
  margin: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  transition: background 0.2s, border-color 0.2s;
}

.ticker-item:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(154,141,232,0.4);
}

.ticker-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ticker-item span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-white);
}

.ticker-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.ticker-sep-wrap {
  background: none !important;
  border-color: transparent !important;
  padding: 0 0.1rem;
}

.ticker-sep {
  font-size: 0.45rem;
  color: var(--purple-mid);
  opacity: 0.5;
}

/* Hero stats (kept for future use) */
.hero-stats {
  display: flex;
  gap: 3rem;
}

.hs { display: flex; flex-direction: column; }

.hs-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hs-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Decorative ring */
.hero-deco {
  display: none;
}

.deco-ring {
  position: relative;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(154,141,232,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 40s linear infinite;
}

.deco-ring::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid rgba(154,141,232,0.1);
}

@keyframes spin { to { transform: rotate(360deg); } }

.deco-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  box-shadow: 0 0 16px var(--purple-glow);
}

.deco-core {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(107,79,207,0.1);
  border: 1px solid rgba(154,141,232,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 40s linear infinite reverse;
}

.deco-txt {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--purple-hi);
  text-transform: uppercase;
}

/* =============================================================
   PARALLAX SECTIONS
   ============================================================= */

.px-outer {
  width: 100%;
}

.px-wrap {
  position: relative;
  width: 100%;
  height: clamp(450px, 58vw, 1100px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* The scrolling background layer - fills the section */
.px-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: background-position;
  z-index: 0;
}

/* Dark overlay - directional, left-heavy so text is readable */
.px-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Text content - z-index 4, sits IN FRONT of objects */
.px-body {
  position: relative;
  z-index: 4;
  padding: 8rem 2rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.px-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-hi);
  margin-bottom: 1.2rem;
}

.px-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 99rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-white);
  max-width: 22ch;
  margin-bottom: 1.4rem;
}

.px-h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.px-p {
  font-size: clamp(1rem, 1.5vw, 99rem);
  color: rgba(255,255,255,0.75);
  max-width: 58ch;
  line-height: 1.75;
}

/* =============================================================
   PARALLAX 1 - Vivid Scene (#px-cables)
   Exact Lazarev gradient. Objects overlap the text zone.
   Text z-index 4 > objects z-index 2/3 > background z-index 0
   ============================================================= */
#px-cables .px-bg {
  background-image: linear-gradient(312deg, #342f6c 0%, #4f5bff 0.01%, #0b1040 99%);
}

#px-cables .px-overlay {
  /* Radial dark zone behind center text, fades to edges */
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(5,6,25,0.7) 0%, rgba(5,6,25,0) 100%),
    linear-gradient(105deg, rgba(5,6,25,0.5) 0%, rgba(5,6,25,0) 60%);
}

/* 3D foreground objects - clean alpha PNGs, no blend mode needed */
.px-obj {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/*
  Brain: large, bleeds off right and bottom.
  Behind text (z-index 2), slow parallax = feels far back.
*/
/* Brain: anchored bottom-right, bleeds off right and bottom */
.px-obj-brain {
  width: 45vw;
  z-index: 2;
  top: auto;
  bottom: -5%;
  right: -5vw;
  left: auto;
  opacity: 0.45;
}

.px-obj-cube {
  width: 23vw;
  z-index: 3;
  top: auto;
  bottom: -30%;
  left: 5vw;
  transform: none;
  opacity: 1;
}

/* Tablet: upper-left, bleeds off top and left */
.px-obj-tablet {
  width: 52vw;
  z-index: 2;
  top: -60px;
  left: -24vw;
  opacity: 0.4;
}

/* =============================================================
   PARALLAX 2 - Fluid Wave (#px-wave)
   ============================================================= */
#px-wave .px-bg {
  background-image: url('../images/fluid-wave.jpg');
}

#px-wave .px-overlay {
  background: linear-gradient(
    to right,
    rgba(20,10,40,0.82) 0%,
    rgba(20,10,40,0.55) 55%,
    rgba(20,10,40,0.2) 100%
  );
}

.cta-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 99rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 1.2rem;
}

.cta-h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub {
  font-size: clamp(1rem, 1.3vw, 99rem);
  color: rgba(255,255,255,0.72);
  max-width: 58ch;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.cta-note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.cta-note a {
  color: var(--purple-hi);
  text-decoration: none;
}
.cta-note a:hover { text-decoration: underline; }

/* =============================================================
   SERVICES
   ============================================================= */
#services {
  background: var(--bg-darker);
  padding: 6rem 0;
}

.sec-hdr {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 3.5rem;
}

.sec-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-hi);
  margin-bottom: 0.8rem;
}

.sec-label.lt { color: var(--purple-hi); }

.sec-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 99rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.sec-h2.lt { color: var(--text-white); }

.sec-p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.sec-p.lt { color: rgba(255,255,255,0.65); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--r);
  overflow: hidden;
}

.svc-card {
  background: var(--bg-dark);
  padding: 2.4rem 2.2rem;
  transition: background 0.2s;
}

.svc-card:hover { background: #22262e; }

.svc-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--purple-mid);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.svc-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.svc-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================================
   PRODUCTS
   ============================================================= */
#products {
  background: var(--bg-darkest);
  padding: 6rem 0;
}

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

.prod-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--r);
  padding: 2rem 1.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.prod-card:hover {
  border-color: rgba(154,141,232,0.3);
  box-shadow: 0 0 32px rgba(107,79,207,0.12);
}

/* Featured card spans 2 columns */
.prod-card.ft {
  grid-column: span 2;
}

.prod-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.tg-live { background: rgba(34,197,94,0.15); color: #4ade80; }
.tg-dev  { background: rgba(154,141,232,0.15); color: var(--purple-hi); }
.tg-beta { background: rgba(251,191,36,0.15); color: #fbbf24; }

.prod-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.prod-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-hi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.prod-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================================
   ABOUT
   ============================================================= */
#about {
  background: var(--bg-light);
  padding: 6rem 0;
  color: var(--text-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.about-eye {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 1rem;
}

.about-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 99rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.4rem;
  line-height: 1.2;
}

.about-p {
  font-size: 1rem;
  color: var(--text-dark-sub);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.creds { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }

.cred { display: flex; gap: 1rem; align-items: flex-start; }

.cred-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  margin-top: 0.45rem;
}

.cred-txt {
  font-size: 0.9rem;
  color: var(--text-dark-sub);
  line-height: 1.6;
}

.cred-txt strong { color: var(--text-dark); }

.about-card {
  background: var(--bg-dark);
  border-radius: var(--r);
  padding: 2.2rem;
  border: 1px solid var(--border-dark);
  position: sticky;
  top: 6rem;
}

.ac-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.3rem;
}

.ac-title {
  font-size: 0.8rem;
  color: var(--purple-hi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.ac-quote {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  font-style: italic;
}

/* =============================================================
   PORTFOLIO (hidden until ready)
   ============================================================= */
#portfolio { display: none; }

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--bg-darkest);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-dark);
}

.ft-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4rem;
  margin-bottom: 3rem;
}

.ft-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.8rem;
}

.ft-grad {
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ft-tag {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 1.2rem;
}

.ft-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ft-contact a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ft-contact a:hover { color: var(--text-white); }

.ft-col-ttl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.ft-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ft-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ft-links a:hover { color: var(--text-white); }

.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
}

.ft-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.ft-li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ft-li:hover { color: var(--text-white); }

/* =============================================================
   CONTACT MODAL
   ============================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-dark);
  border: 1px solid rgba(154,141,232,0.2);
  border-radius: 12px;
  padding: 2.8rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 80px rgba(107,79,207,0.2);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.06);
}

.modal-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-hi);
  margin-bottom: 0.6rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(124,109,212,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px var(--purple-glow);
}

.form-submit:hover {
  opacity: 0.88;
  box-shadow: 0 0 40px rgba(124,109,212,0.5);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
}

.form-status.error {
  display: block;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
}

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.sr {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.sr.d1 { transition-delay: 0.1s; }
.sr.d2 { transition-delay: 0.2s; }
.sr.d3 { transition-delay: 0.3s; }
.sr.d4 { transition-delay: 0.4s; }

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