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

:root {
  --primary: #6c63ff;
  --primary-dark: #574fd6;
  --accent: #43d98a;
  --bg: #0d0d14;
  --bg2: #12121f;
  --surface: #1a1a2e;
  --border: #ffffff12;
  --text: #e8e8f0;
  --muted: #8888aa;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

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

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,20,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

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

.nav-links a:hover { color: #fff; }

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--primary-dark) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  max-width: 1160px;
  margin: auto;
  gap: 60px;
}

.hero-content { flex: 1; }

.badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  color: var(--primary);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--primary); transform: translateY(-2px); }

/* ── CODE CARD ── */
.hero-visual { flex: 1; display: flex; justify-content: center; }

.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.code-dots {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: #0f0f1a;
  border-bottom: 1px solid var(--border);
}

.code-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #444;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-card pre {
  padding: 24px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-x: auto;
}

.kw  { color: #c792ea; }
.fn  { color: #82aaff; }
.str { color: #c3e88d; }
.bool{ color: #ff9d00; }

/* ── SECTIONS ── */
.section { padding: 100px 24px; }
.section-dark { background: var(--bg2); }
.container { max-width: 1160px; margin: auto; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 56px;
  font-size: 1.05rem;
}

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--primary); }

.stat-card h3 {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card p { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

.about-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.about-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.about-detail-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.about-detail-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-detail-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.about-list {
  padding-left: 18px;
  color: var(--text);
}

.about-list li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #c8c8da;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-tags span {
  background: rgba(67,217,138,0.12);
  border: 1px solid rgba(67,217,138,0.25);
  color: var(--accent);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.about-principles {
  margin-top: 26px;
  background: linear-gradient(145deg, rgba(108,99,255,0.08), rgba(67,217,138,0.06));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
}

.about-principles h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.principle-item {
  background: rgba(16,16,28,0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.principle-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.principle-item p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

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

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.project-icon { font-size: 2rem; margin-bottom: 16px; }

.project-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

.project-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.project-tags span {
  background: rgba(108,99,255,0.12);
  color: var(--primary);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 0.75; }

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.team-card:hover { border-color: var(--primary); }

.avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 18px;
}

.team-card h4 { font-weight: 700; margin-bottom: 4px; }
.team-card p  { color: var(--muted); font-size: 0.88rem; }

/* ── CONTACT ── */
.contact-container { max-width: 680px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }

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

.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.form-success {
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(67,217,138,0.12);
  border: 1px solid rgba(67,217,138,0.3);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 600;
}

.hidden { display: none; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 36px 24px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer p { color: var(--muted); font-size: 0.88rem; }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.08s ease, top 0.08s ease;
  z-index: 0;
  mix-blend-mode: screen;
}

/* ── PARTICLE CANVAS ── */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

body > *:not(#particleCanvas):not(.cursor-glow) {
  position: relative;
  z-index: 1;
}

/* ── TYPEWRITER ── */
.typewriter::after {
  content: '|';
  animation: blink 0.75s step-end infinite;
  color: var(--accent);
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── TECH STRIP ── */
.tech-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 14px 0;
  white-space: nowrap;
}

.tech-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 28s linear infinite;
}

.tech-track span {
  display: inline-block;
  padding: 6px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-right: 1px solid var(--border);
  transition: color 0.2s;
}

.tech-track span:hover { color: var(--primary); }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── PROCESS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: steps;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.process-step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.25s;
}

.process-step:hover::before { opacity: 1; }

.step-num {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0.3;
}

.process-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step p { color: var(--muted); font-size: 0.91rem; }

/* ── JOIN CTA ── */
.join-section { padding-top: 0; }

.join-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.join-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.join-orb-1 {
  width: 300px; height: 300px;
  background: rgba(108,99,255,0.18);
  top: -80px; left: -80px;
}

.join-orb-2 {
  width: 260px; height: 260px;
  background: rgba(67,217,138,0.14);
  bottom: -60px; right: -40px;
}

.join-content { flex: 1; }

.join-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 14px 0 12px;
}

.join-content p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 420px;
}

.join-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.join-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
}

.role-badge {
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.role-badge:hover {
  border-color: var(--primary);
  background: rgba(108,99,255,0.18);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 110px; }
  .hero-content p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { width: 100%; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 20px;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .join-card { flex-direction: column; padding: 40px 28px; gap: 36px; }
  .join-roles { grid-template-columns: repeat(3, 1fr); }
  .about-principles { padding: 24px 18px; }
}
