:root {
  --cyan: #00D4FF;
  --green: #7BFF2A;
  --teal: #00C9A7;
  --dark: #08080C;
  --surface: #111116;
  --surface-2: #19191F;
  --surface-3: #222229;
  --border: rgba(255,255,255,0.06);
  --border-glow: rgba(0,212,255,0.15);
  --text-1: #F0F0F5;
  --text-2: #8A8A9A;
  --text-3: #55555F;
  --gradient-brand: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 50%, var(--green) 100%);
  --glow-cyan: 0 0 60px rgba(0,212,255,0.15);
  --glow-green: 0 0 60px rgba(123,255,42,0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Sora', sans-serif;
  background: var(--dark);
  color: var(--text-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0,212,255,0.3);
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: .4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

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

.reveal-d1 {
  transition-delay: .12s;
}

.reveal-d2 {
  transition-delay: .24s;
}

.reveal-d3 {
  transition-delay: .36s;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all .4s ease;
}

nav.scrolled {
  background: rgba(8,8,12,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color .3s;
}

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

.nav-cta {
  background: var(--gradient-brand);
  color: var(--dark) !important;
  padding: 7px 18px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: .75rem !important;
  letter-spacing: .5px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: .2;
  pointer-events: none;
}

.hero-glow-1 {
  background: var(--cyan);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  background: var(--green);
  bottom: -200px;
  left: -200px;
  opacity: .12;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  max-width: 560px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--cyan);
  margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}

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

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp .8s ease .15s both;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
  animation: fadeUp .8s ease .3s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp .8s ease .45s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-brand);
  color: var(--dark);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .3s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-cyan);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  transition: all .3s;
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  background: var(--surface-2);
}

/* Hero image */
.hero-right {
  position: relative;
  animation: fadeUp 1s ease .5s both;
}

.hero-img-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--glow-cyan), 0 30px 60px rgba(0,0,0,.5);
}

.hero-img-wrapper img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(8,8,12,.9));
}

.hero-img-stats {
  display: flex;
  gap: 20px;
}

.hero-img-stat {
  display: flex;
  flex-direction: column;
}

.hero-img-stat .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
}

.hero-img-stat .label {
  font-size: .68rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.hero-float-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(8,8,12,.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 4s ease-in-out infinite;
}

.hero-float-badge .icon {
  width: 28px;
  height: 28px;
  background: var(--gradient-brand);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float-badge .icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--dark);
  fill: none;
  stroke-width: 2.5;
}

.hero-float-badge span {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-1);
}

/* Section common */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '//';
  color: var(--text-3);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

/* MANIFIESTO */
.manifiesto {
  padding: 120px 0 80px;
}

.manifiesto .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.manifiesto-label {
  position: sticky;
  top: 120px;
}

.manifiesto-line {
  width: 60px;
  height: 2px;
  background: var(--gradient-brand);
  margin-top: 12px;
  border-radius: 2px;
}

.manifiesto-body p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 20px;
  font-weight: 300;
}

.manifiesto-body strong {
  color: var(--text-1);
  font-weight: 600;
}

/* ROLES */
.roles {
  padding: 100px 0;
}

.roles-header {
  margin-bottom: 64px;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .4s, box-shadow .4s;
}

.role-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-cyan);
}

.role-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.role-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.role-card:hover .role-card-img img {
  transform: scale(1.04);
}

.role-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, var(--surface));
}

.role-card-body {
  padding: 24px;
}

.role-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}

.role-card-body p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}

/* FEATURES BENTO */
.features {
  padding: 100px 0;
}

.features-header {
  margin-bottom: 64px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: border-color .3s, box-shadow .3s;
  overflow: hidden;
}

.bento-card:hover {
  border-color: rgba(0,212,255,.12);
  box-shadow: 0 0 40px rgba(0,212,255,.06);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.6;
}

.bento-terminal {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  color: var(--text-2);
  line-height: 1.8;
}

.bento-terminal .prompt {
  color: var(--green);
}

.bento-terminal .cmd {
  color: var(--text-1);
}

.bento-terminal .output {
  color: var(--cyan);
}

/* CTA */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--cyan);
  border-radius: 50%;
  filter: blur(200px);
  opacity: .08;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cta-sub {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 40px;
}

.social-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .3s;
}

.social-btn:hover {
  border-color: var(--border-glow);
  background: var(--surface-2);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer img {
  height: 24px;
  opacity: .5;
}

.footer-center {
  font-size: .75rem;
  color: var(--text-3);
  font-style: italic;
}

.footer-right {
  font-size: .72rem;
  color: var(--text-3);
}
.footer-right a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .3s;
}
.footer-right a:hover {
  color: var(--cyan);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    max-width: 500px;
  }

  .manifiesto .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .manifiesto-label {
    position: static;
  }

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

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

  .bento-card.span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 80px 0 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .bento-card.span-2 {
    grid-column: span 1;
  }

  footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
