:root {
  --bg: #0b0d14;
  --bg-2: #11141e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9ecf3;
  --muted: #9aa3b5;
  --code: #4f8cff;
  --game: #ff5c7a;
  --media: #ffb547;
  --three: #a46bff;
  --cloud: #2fd4b0;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(11, 13, 20, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: conic-gradient(from 200deg, var(--code), var(--three), var(--game), var(--media), var(--cloud), var(--code));
  color: #fff; font-size: 1.05rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 7px 6px; transition: transform .25s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 600;
  background: var(--text); color: var(--bg);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); box-shadow: none; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; color: var(--bg) !important; }
.btn-lg { padding: 18px 36px; font-size: 1.15rem; }

/* Hero */
.hero { position: relative; padding: 180px 0 110px; overflow: hidden; text-align: center; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 700px; pointer-events: none;
  background:
    radial-gradient(closest-side at 25% 40%, rgba(79,140,255,.28), transparent),
    radial-gradient(closest-side at 50% 30%, rgba(164,107,255,.25), transparent),
    radial-gradient(closest-side at 75% 45%, rgba(255,92,122,.2), transparent);
  filter: blur(40px);
}
.hero .container { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--c, var(--muted)); margin-bottom: 18px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.grad {
  background: linear-gradient(90deg, var(--code), var(--three), var(--game), var(--media));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 640px; margin: 26px auto 0; font-size: 1.15rem; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

/* Brand cards */
.brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-bottom: 60px; }
.brand-card {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.brand-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%);
}
.brand-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.brand-card:hover::before { opacity: 1; }
.brand-card > * { position: relative; }
.brand-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-weight: 700;
}
.brand-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.brand-card p { font-size: .9rem; color: var(--muted); }

/* Divisions */
.division { padding: 110px 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.division::before {
  content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 14%, transparent), transparent);
  pointer-events: none;
}
.division.reverse::before { right: auto; left: -200px; }
.division-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; position: relative; }
.division.reverse .division-text { order: 2; }
.division h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 18px; }
.division-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.features { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; align-items: baseline; }
.features li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 12px var(--c); transform: translateY(-2px);
}
.division-visual { display: grid; place-items: center; min-height: 320px; }

/* Mock visuals */
.mock {
  width: 100%; max-width: 440px; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.mock-bar { height: 10px; width: 40%; border-radius: 6px; background: color-mix(in srgb, var(--c) 50%, transparent); margin-bottom: 20px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.mock-row span { height: 54px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.mock-chart { display: flex; align-items: flex-end; gap: 10px; height: 45%; }
.mock-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, color-mix(in srgb, var(--c) 30%, transparent), var(--c)); }

.mock-game { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 20%, var(--bg-2)), var(--bg-2)); }
.pad { position: relative; width: 140px; height: 140px; animation: float 4s ease-in-out infinite; }
.pad b { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: 0 0 24px var(--c); }
.pad b:nth-child(1) { top: 0; left: 48px; }
.pad b:nth-child(2) { bottom: 0; left: 48px; opacity: .6; }
.pad b:nth-child(3) { left: 0; top: 48px; opacity: .8; }
.pad b:nth-child(4) { right: 0; top: 48px; opacity: .4; }

.mock-feed { display: grid; gap: 14px; align-content: center; }
.post { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.post span { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c); }
.post p { height: 10px; flex: 1; border-radius: 6px; background: rgba(255,255,255,.12); }
.post:nth-child(2) p { flex: .7; }
.post:nth-child(3) p { flex: .85; }

.cube-wrap { perspective: 900px; width: 200px; height: 200px; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: spin 14s linear infinite; }
.cube i {
  position: absolute; inset: 0; border: 1.5px solid var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--c) 30%, transparent);
}
.cube i:nth-child(1) { transform: translateZ(100px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(100px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(100px); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(100px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(100px); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(100px); }

.mock-cloud { position: relative; }
.node { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 18px var(--c); }
.node.core { width: 64px; height: 64px; left: calc(50% - 32px); top: calc(50% - 32px); animation: pulse 2.6s ease-in-out infinite; }
.n1 { left: 14%; top: 18%; } .n2 { right: 14%; top: 22%; } .n3 { left: 20%; bottom: 16%; } .n4 { right: 18%; bottom: 20%; }
.mock-cloud::before, .mock-cloud::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent); transform: rotate(18deg);
}
.mock-cloud::after { transform: rotate(-18deg); }

@keyframes spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes pulse { 50% { transform: scale(1.12); box-shadow: 0 0 50px var(--c); } }

/* Why */
.why { padding: 110px 0; border-top: 1px solid var(--line); }
.why h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; margin-bottom: 40px; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-grid div { padding: 30px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.why-grid h3 { margin-bottom: 8px; }
.why-grid p { color: var(--muted); }

/* Contact */
.contact { padding: 120px 0; text-align: center; background: radial-gradient(60% 100% at 50% 100%, rgba(164,107,255,.18), transparent); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; }
.contact p { color: var(--muted); margin: 14px 0 34px; font-size: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }
.footer nav a:hover { color: var(--text); }
.footer .logo { color: var(--text); font-size: 1.1rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .brands { grid-template-columns: repeat(3, 1fr); }
  .division-inner { grid-template-columns: 1fr; gap: 48px; }
  .division.reverse .division-text { order: 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .nav-links .btn-sm { margin: 10px 24px 18px; width: auto; }
  .nav.open .nav-links { max-height: 420px; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .brands { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .division { padding: 80px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
