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

:root {
  --blue: #4f8ef7;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --gradient: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  --gradient-text: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  --bg: #050508;
  --bg2: #08080f;
  --bg3: #0d0d18;
  --text: #f0f0ff;
  --text-muted: #6b7280;
  --border: rgba(79,142,247,0.12);
  --border-hover: rgba(79,142,247,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Grid Background ── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.glow-top {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(79,142,247,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

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

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

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

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

.btn-nav {
  padding: 0.65rem 1.5rem;
  background: var(--gradient);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79,142,247,0.35);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 4rem 4rem;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(79,142,247,0.08);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 2rem;
  width: fit-content;
  font-family: 'Space Mono', monospace;
}

.tag-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -2px;
}

.outline-text {
  -webkit-text-stroke: 2px rgba(255,255,255,0.3);
  color: transparent;
}

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

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

.btn-primary {
  padding: 0.9rem 2rem;
  background: var(--gradient);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(79,142,247,0.3);
}

.btn-outline {
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Hero Marquee ── */
.hero-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  margin-bottom: 3rem;
}

.marquee-inner {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.sep { color: var(--blue); }

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

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

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

.stat-n {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Space Mono', monospace;
}

.stat-l {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.stat-line {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Sections ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 4rem;
}

.label {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--blue);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 1rem;
}

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

/* ── Services ── */
.services { background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg2);
  padding: 2.5rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::before { opacity: 0.03; }
.service-card:hover { background: var(--bg3); }

.service-card.featured {
  background: var(--bg3);
  border: 1px solid var(--border-hover);
}

.service-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  background: rgba(79,142,247,0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--blue);
  font-family: 'Space Mono', monospace;
}

/* ── Work ── */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  gap: 3rem;
  transition: padding-left 0.3s;
}

.work-item:first-child { border-top: 1px solid var(--border); }
.work-item:hover { padding-left: 1rem; }

.work-left {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex: 1;
}

.work-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--blue);
  margin-top: 4px;
  flex-shrink: 0;
}

.work-left h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.work-left p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-tags span {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 4px;
  color: var(--purple);
  font-family: 'Space Mono', monospace;
}

.work-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

.work-preview {
  width: 200px;
  height: 130px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.fin { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.lum { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.med { background: linear-gradient(135deg, #0a3d2b, #1a6b45, #0d5c35); }

.work-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s;
}

.work-link:hover { color: var(--purple); }

/* ── Team ── */
.team { background: var(--bg2); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}

.team-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.av1 { background: linear-gradient(135deg, #4f8ef7, #8b5cf6); color: white; }
.av2 { background: linear-gradient(135deg, #06b6d4, #4f8ef7); color: white; }
.av3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: white; }
.av4 { background: linear-gradient(135deg, #22c55e, #06b6d4); color: white; }

.team-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.team-role {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--blue);
  display: block;
  margin-bottom: 0.8rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Contact ── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-left p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.info-icon { font-size: 1.1rem; }

.contact-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus { border-color: var(--blue); }
.form-input option { background: var(--bg2); }
textarea.form-input { resize: none; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79,142,247,0.3);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

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

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

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

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .hero-title { letter-spacing: -1px; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .work-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .work-item:hover { padding-left: 0; }

  .work-right {
    align-items: flex-start;
    width: 100%;
  }

  .work-preview {
    width: 100%;
    height: 160px;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  body { overflow-x: hidden; }
  * { max-width: 100%; box-sizing: border-box; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; letter-spacing: -1px; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-line { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .work-left { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.2rem; }
  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
  }
  .hero-btns { flex-direction: column; }
  .services-grid { border: none; gap: 1rem; }
  .service-card { border: 1px solid var(--border); border-radius: 12px; }
}