/* iMasiv — shared design system */

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

:root {
  --purple:  #7c3aed;
  --cyan:    #06b6d4;
  --orange:  #f97316;
  --pink:    #ec4899;
  --bg:      #06060f;
  --surface: #0e0e1a;
  --border:  rgba(255,255,255,0.07);
  --text:    #e2e8f0;
  --muted:   #94a3b8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  background: rgba(6,6,15,0.6);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .2s;
}

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

.nav-cta {
  padding: .55rem 1.4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff !important;
  font-weight: 600;
  transition: opacity .2s, transform .2s !important;
}

.nav-cta:hover { opacity: .85; transform: scale(1.04); }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 5vw 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(6,182,212,.35);
  background: rgba(6,182,212,.08);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp .8s ease both;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.8s infinite;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp .9s .1s ease both;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 45%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  animation: fadeUp 1s .2s ease both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1s .3s ease both;
}

.btn-primary {
  padding: .85rem 2.2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 40px rgba(124,58,237,.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 60px rgba(124,58,237,.6);
}

.btn-ghost {
  padding: .85rem 2.2rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  background: rgba(255,255,255,.03);
}

.btn-ghost:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: fadeUp 1s .6s ease both;
}

.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollLine 2s infinite;
}

/* ── MISSION ── */
.mission {
  position: relative;
  z-index: 1;
  padding: 7rem 5vw;
  text-align: center;
}

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

.mission h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.mission h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ── PILLARS ── */
.pillars {
  position: relative;
  z-index: 1;
  padding: 4rem 5vw 7rem;
}

.pillars-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pillars-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
}

.pillars-header p { color: var(--muted); font-size: 1.05rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .3s;
}

.card:hover { transform: translateY(-6px); }

.card:hover::before { opacity: 1; }

.card-1::before { background: linear-gradient(135deg, rgba(124,58,237,.12), transparent 70%); box-shadow: 0 0 40px rgba(124,58,237,.2) inset; }
.card-2::before { background: linear-gradient(135deg, rgba(6,182,212,.12), transparent 70%); box-shadow: 0 0 40px rgba(6,182,212,.2) inset; }
.card-3::before { background: linear-gradient(135deg, rgba(249,115,22,.12), transparent 70%); box-shadow: 0 0 40px rgba(249,115,22,.2) inset; }

.card:hover { box-shadow: 0 20px 60px rgba(0,0,0,.5); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.icon-purple { background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); }
.icon-cyan   { background: rgba(6,182,212,.15);  border: 1px solid rgba(6,182,212,.3); }
.icon-orange { background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.3); }

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.card p { color: var(--muted); font-size: .92rem; line-height: 1.65; }

.card-tag {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .2rem .7rem;
  border-radius: 9999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tag-purple { background: rgba(124,58,237,.15); color: #a78bfa; border: 1px solid rgba(124,58,237,.3); }
.tag-cyan   { background: rgba(6,182,212,.15);  color: #67e8f9; border: 1px solid rgba(6,182,212,.3); }
.tag-orange { background: rgba(249,115,22,.15); color: #fdba74; border: 1px solid rgba(249,115,22,.3); }

/* ── STATS ── */
.stats {
  position: relative;
  z-index: 1;
  padding: 2rem 5vw 7rem;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.stats-inner::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(124,58,237,.25), transparent 70%);
  pointer-events: none;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .4rem;
}

.stat-label { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ── FOUNDER ── */
.founder {
  position: relative;
  z-index: 1;
  padding: 4rem 5vw 7rem;
  text-align: center;
}

.founder h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.founder-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 150px;
  background: radial-gradient(ellipse, rgba(6,182,212,.2), transparent 70%);
}

.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  position: relative;
}

.avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan), var(--orange));
  z-index: -1;
  opacity: .7;
}

.founder-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.founder-title {
  color: var(--cyan);
  font-size: .875rem;
  font-weight: 500;
  margin-top: -.5rem;
}

.founder-bio {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  text-align: center;
}

/* ── CTA ── */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 4rem 5vw 8rem;
  text-align: center;
}

.cta-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 3rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(124,58,237,.1) 0%,
    rgba(6,182,212,.05) 50%,
    rgba(249,115,22,.08) 100%);
}

.cta-box h2 {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-box p {
  position: relative;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 50px rgba(124,58,237,.4);
  transition: transform .2s, box-shadow .2s;
}

.cta-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 70px rgba(124,58,237,.6);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy { color: var(--muted); font-size: .8rem; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .stats-inner { padding: 2rem 1rem; }
  .cta-box { padding: 2.5rem 1.5rem; }
  footer { flex-direction: column; text-align: center; }
}

/* ── CTA INLINE LINK ── */
.cta-inline {
  display: inline-block;
  margin-top: 1rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: opacity .2s, transform .2s;
}
.cta-inline:hover { opacity: .8; transform: translateX(3px); }

/* ── CAREERS ── */
.page-head {
  position: relative;
  z-index: 1;
  padding: 10rem 5vw 3rem;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.page-head h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.page-head > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.stealth-note {
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--cyan);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  text-align: left;
}

.roles {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 5vw 5rem;
  display: grid;
  gap: 1.25rem;
}

.role {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.role:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.role-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}

.role h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.role-meta {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.role > p { color: var(--muted); font-size: .95rem; line-height: 1.7; }

.role-need {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.65;
}

.role-need strong { color: #67e8f9; font-weight: 600; }

.role-apply {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .55rem 1.3rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s, border-color .2s;
}

.role-apply:hover { background: rgba(255,255,255,.06); border-color: rgba(6,182,212,.5); }

.careers-foot {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 5vw 6rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

.careers-foot a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.careers-foot a:hover { opacity: .8; }

@media (max-width: 640px) {
  .page-head { padding-top: 8rem; }
  .role { padding: 1.5rem; }
}

.apply-note {
  max-width: 820px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  text-align: left;
  padding: 0 .25rem;
}
.apply-note strong { color: var(--text); }
