/* ═══════════════════════════════════════════════════════════════
   GitSyn Landing — Design System
   Brand: Electric Violet #7C3AED / Obsidian #050505
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Tokens ─────────────────────────────────────────── */
:root {
  --violet:       #7C3AED;
  --violet-light: #A78BFA;
  --violet-dark:  #5B21B6;
  --violet-glow:  rgba(124,58,237,.25);
  --violet-glow-strong: rgba(124,58,237,.45);

  --obsidian:       #050505;
  --obsidian-light: #0D0D0D;
  --obsidian-card:  #111113;
  --obsidian-raised:#161618;
  --border:         #1F1F23;
  --border-hover:   #2C2C32;

  --text-primary:   #F5F5F5;
  --text-secondary: #A3A3A3;
  --text-tertiary:  #6B6B6B;

  --cyan:   #22D3EE;
  --green:  #4ADE80;
  --amber:  #FBBF24;
  --rose:   #FF006E;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 72px;
  --section-gap: 140px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background: var(--obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }

::selection {
  background: var(--violet);
  color: #fff;
}

/* ── Animations (on-scroll) ─────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="100"] { transition-delay: .1s; }
[data-delay="200"] { transition-delay: .2s; }
[data-delay="300"] { transition-delay: .3s; }
[data-delay="400"] { transition-delay: .4s; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .938rem;
  letter-spacing: -.01em;
  transition: all .25s var(--ease-out-expo);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 0 var(--violet-glow), 0 1px 2px rgba(0,0,0,.4);
}
.btn--primary:hover {
  background: var(--violet-light);
  box-shadow: 0 0 32px var(--violet-glow-strong), 0 4px 16px rgba(0,0,0,.3);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,.04);
}

.btn--lg { padding: 16px 32px; font-size: 1rem; border-radius: 14px; }
.btn--full { width: 100%; justify-content: center; }

/* ── Navbar ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(5,5,5,.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 110;
}
.nav__logo img { border-radius: 8px; }
.nav__wordmark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--violet);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform .25s var(--ease-out-expo);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav__actions .btn { padding: 8px 20px; font-size: .875rem; }

.nav__burger { display: none; flex-direction: column; gap: 5px; z-index: 110; }
.nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: all .3s var(--ease-out-expo);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease-out-expo);
}
.nav__mobile.is-open {
  opacity: 1;
  pointer-events: all;
}
.nav__mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color .2s;
}
.nav__mobile-link:hover { color: var(--text-primary); }
.nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 260px;
  margin-top: 16px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 24px 0;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, var(--violet-glow-strong) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__particles .dot {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--violet-light);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite;
}
@keyframes float-particle {
  0%   { opacity: 0; transform: translateY(0); }
  15%  { opacity: .6; }
  85%  { opacity: .6; }
  100% { opacity: 0; transform: translateY(-200px); }
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 720px;
  z-index: 2;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-size: .8rem;
  font-weight: 500;
  color: var(--violet-light);
  letter-spacing: .02em;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero__title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}
.hero__title--gradient {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-light) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Social proof row */
.hero__social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}
.hero__avatars {
  display: flex;
}
.hero__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--obsidian);
  margin-left: -8px;
}
.hero__avatar:first-child { margin-left: 0; }
.hero__proof-text {
  font-size: .82rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Mockup */
.hero__mockup {
  position: relative;
  margin-top: 64px;
  z-index: 2;
  max-width: 900px;
}
.hero__mockup-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse, var(--violet-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero__mockup-img {
  position: relative;
  border-radius: 20px;
  filter: drop-shadow(0 32px 80px rgba(124,58,237,.2));
}

/* ── Section shared ─────────────────────────────────────────── */
.section__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--section-gap);
}
.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--violet-light);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-bottom: 20px;
}
.section__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Features ───────────────────────────────────────────────── */
.features {
  padding: var(--section-gap) 0;
  position: relative;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--obsidian-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all .35s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--violet-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-card--wide { grid-column: span 2; }

.feature-card__icon {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--violet-light);
}
.feature-card__icon--accent {
  background: rgba(34,211,238,.1);
  border-color: rgba(34,211,238,.2);
  color: var(--cyan);
}
.feature-card__title {
  position: relative;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.feature-card__desc {
  position: relative;
  font-size: .925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Community ──────────────────────────────────────────────── */
.community {
  padding: var(--section-gap) 0;
}
.community__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
.stat-card {
  background: var(--obsidian-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: all .3s var(--ease-out-expo);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.stat-card__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-card__label {
  font-size: .85rem;
  color: var(--text-tertiary);
  font-weight: 500;
}
.community__collab {
  text-align: center;
}
.community__collab-img {
  margin: 0 auto;
  border-radius: 24px;
  filter: drop-shadow(0 24px 64px rgba(124,58,237,.15));
}

/* ── Builders ───────────────────────────────────────────────── */
.builders {
  padding: var(--section-gap) 0;
}
.builders__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.builder-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 32px;
  background: var(--obsidian-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all .3s var(--ease-out-expo);
}
.builder-row:hover {
  border-color: var(--border-hover);
  transform: translateX(8px);
  box-shadow: -4px 0 0 var(--violet);
}
.builder-row__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
}
.builder-row__text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 6px;
}
.builder-row__text p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  padding: var(--section-gap) 0;
  position: relative;
  text-align: center;
}
.cta-section__glow {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, var(--violet-glow-strong) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}
.cta-section__content { position: relative; z-index: 2; }
.cta-section__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}
.cta-section__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__brand img { border-radius: 6px; }
.footer__wordmark { font-weight: 700; font-size: 1rem; }
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__link {
  font-size: .85rem;
  color: var(--text-tertiary);
  transition: color .2s;
}
.footer__link:hover { color: var(--text-primary); }
.footer__copy {
  font-size: .8rem;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
  .community__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 100px;
    --nav-height: 64px;
  }

  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }

  .hero { padding-top: calc(var(--nav-height) + 40px); }
  .hero__title { font-size: 2.5rem; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 320px; justify-content: center; }

  .section__header { margin-bottom: 60px; }

  .features__grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }

  .community__cards { grid-template-columns: repeat(2, 1fr); }

  .builder-row { flex-direction: column; gap: 16px; }
  .builder-row:hover { transform: translateX(0) translateY(-4px); }

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

@media (max-width: 480px) {
  .community__cards { grid-template-columns: 1fr; }
  .hero__social-proof { flex-direction: column; gap: 8px; }
}
