:root {
  --bg: #05060a;
  --bg-2: #0a0b14;
  --fg: #f4f5fb;
  --muted: #9aa0b5;
  --accent: #7c5cff;
  --accent-2: #20e3b2;
  --accent-3: #ff5cb8;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: "Space Grotesk", sans-serif; }

/* ---------- 3D canvas ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* everything sits above the canvas */
header, section, footer, .marquee { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.6);
}
.brand-name { font-weight: 700; letter-spacing: 1px; font-size: 18px; }
.brand-name span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 100px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124, 92, 255, 0.6); }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }
.nav-cta { padding: 10px 20px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.hero-inner { max-width: 880px; }
.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: fadeUp .8s ease both;
}
.hero-title {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp .8s .1s ease both;
}
.grad {
  background: linear-gradient(120deg, var(--accent-2), var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
  animation: fadeUp .8s .2s ease both;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .8s .3s ease both; }

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 100px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-hint span { width: 4px; height: 8px; background: var(--accent); border-radius: 4px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 28px; white-space: nowrap; width: max-content; animation: scrollX 22s linear infinite; }
.marquee-track span { font-family: "Space Grotesk"; font-weight: 600; letter-spacing: 2px; color: var(--muted); font-size: 15px; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 110px clamp(20px, 6vw, 80px); max-width: var(--max); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.kicker { color: var(--accent); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.section-head h2, .build-card h2, .community h2 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 700; letter-spacing: -1px; line-height: 1.1; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  transition: transform .3s, border-color .3s, background .3s;
  backdrop-filter: blur(8px);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(124, 92, 255, 0.06); }
.card-ico { font-size: 30px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(30px, 5vw, 52px);
  background: linear-gradient(120deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Build ---------- */
.build-card {
  background: linear-gradient(160deg, rgba(124,92,255,0.12), rgba(32,227,178,0.06));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(30px, 5vw, 60px);
  text-align: center;
}
.build-card p { color: var(--muted); max-width: 560px; margin: 16px auto 28px; }
.code-block {
  margin-top: 36px; text-align: left;
  background: #07080e; border: 1px solid var(--border); border-radius: 14px;
  padding: 38px 22px 22px; position: relative; overflow-x: auto;
}
.code-block .dot { position: absolute; top: 14px; width: 11px; height: 11px; border-radius: 50%; }
.code-block .dot.r { left: 16px; background: #ff5f57; }
.code-block .dot.y { left: 34px; background: #ffbd2e; }
.code-block .dot.g { left: 52px; background: #28c940; }
.code-block pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; color: var(--accent-2); line-height: 1.8; }

/* ---------- Community ---------- */
.social-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chip {
  padding: 14px 28px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg); text-decoration: none; font-weight: 600;
  transition: transform .2s, border-color .2s, background .2s;
}
.chip:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(124,92,255,0.08); }

/* ---------- Brand logo ---------- */
.brand-logo { display: inline-flex; filter: drop-shadow(0 0 12px rgba(124,92,255,.5)); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { text-align: center; padding-top: 160px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 18px; }
.page-sub { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: clamp(16px,2vw,19px); }
.nav-links a.active { color: var(--fg); }

/* ---------- Services list ---------- */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { display: flex; gap: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; transition: transform .3s, border-color .3s; }
.svc:hover { transform: translateY(-5px); border-color: var(--accent); }
.svc-ico { font-size: 34px; flex-shrink: 0; }
.svc h3 { font-size: 20px; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.svc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc ul li { font-size: 13px; color: var(--accent-2); border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; }

/* ---------- Portfolio grid ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj {
  display: block; text-decoration: none; color: var(--fg);
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; min-height: 180px; position: relative;
  transition: transform .3s, border-color .3s, background .3s;
}
.proj:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(124,92,255,.06); }
.proj-thumb {
  height: 150px; border-radius: 14px; margin-bottom: 18px; overflow: hidden;
  background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(32,227,178,.25), rgba(255,92,184,.3));
  display: flex; align-items: center; justify-content: center;
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-2); border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; margin-bottom: 16px; }
.proj h3 { font-size: 22px; margin-bottom: 6px; }
.proj p { color: var(--muted); font-size: 14px; }
.proj-link { position: absolute; bottom: 24px; right: 24px; color: var(--accent); font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .3s; }
.proj:hover .proj-link { opacity: 1; }

/* ---------- Clients strip ---------- */
.client-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.client-chip { padding: 12px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--muted); font-family: "Space Grotesk"; font-weight: 600; font-size: 15px; transition: color .2s, border-color .2s; }
.client-chip:hover { color: var(--fg); border-color: var(--accent); }

/* ---------- About ---------- */
.about-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-text h2 { font-size: 26px; margin: 0 0 14px; }
.about-text h2:not(:first-child) { margin-top: 32px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-values { display: grid; gap: 16px; }
.value { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.value h4 { font-size: 17px; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.info-ico { font-size: 26px; margin-bottom: 10px; }
.info-card h4 { font-size: 15px; margin-bottom: 8px; }
.info-card a, .info-card p { color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.5; }
.info-card a:hover { color: var(--accent-2); }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 34px; }
.contact-form h3 { font-size: 22px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: #07080e; border: 1px solid var(--border); color: var(--fg);
  font-family: inherit; font-size: 15px; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--accent-2); min-height: 18px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px clamp(20px, 6vw, 80px) 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  max-width: var(--max); margin: 80px auto 0;
}
.footer-col h4 { font-size: 14px; margin-bottom: 14px; letter-spacing: .5px; }
.footer-col p { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 10px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.footer .social { display: flex; gap: 8px; margin-top: 12px; }
.footer .social a {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 9px; margin: 0; font-size: 12px; font-weight: 600;
}
.footer .social a:hover { border-color: var(--accent); color: var(--accent-2); }
.copyright { text-align: center; color: var(--muted); font-size: 12.5px; padding: 0 20px 36px; max-width: var(--max); margin: 0 auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .service-list { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; gap: 28px; }
  
}
.site-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-logo,
.brand-name,
.brand > svg {
  display: none !important;
}
