/* Fonts */
@font-face {
  font-family: "InterVar";
  src: local("Inter"), local("Inter var");
  font-display: swap;
}

:root {
  --bg: #0b0e13;
  --bg-2: #0f131a;
  --text: #e9eef7;
  --muted: #a7b1c2;
  --accent: #7aa2ff;
  --accent-2: #9b7aff;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --blur: 18px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 30px 80px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: InterVar, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -20%, #142033 0%, transparent 70%),
              radial-gradient(1000px 800px at -10% 20%, #19122a 0%, transparent 70%),
              var(--bg);
  overflow-x: hidden;
}

.app { position: relative; isolation: isolate; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,14,19,0.7), rgba(11,14,19,0));
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.4px; }
.brand .logo { display:inline-flex; width: 28px; height: 28px; align-items:center; justify-content:center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 8px; box-shadow: var(--shadow-1); }
.brand .name { font-size: 16px; color: var(--text); opacity: 0.9; }
.links { display: flex; gap: 18px; }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s ease; }
.links a:hover { color: var(--text); }
.links .cta { color: var(--text); padding: 8px 14px; border-radius: 999px; background: linear-gradient(135deg, rgba(122,162,255,.18), rgba(155,122,255,.18)); border: 1px solid rgba(255,255,255,.08); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.aurora {
  position: absolute; inset: 0; overflow: hidden; mix-blend-mode: screen; opacity: .6; filter: blur(20px) saturate(1.2);
}
.aurora::before,
.aurora::after {
  content: ""; position: absolute; inset: -20%; background: 
    radial-gradient(1200px 400px at 10% 30%, rgba(122,162,255,.35), transparent 70%),
    radial-gradient(900px 300px at 80% 60%, rgba(155,122,255,.28), transparent 70%),
    radial-gradient(700px 260px at 50% -10%, rgba(90,210,255,.2), transparent 70%);
  animation: auroraShift 16s ease-in-out infinite alternate;
}
.aurora::after { animation-duration: 22s; animation-delay: -6s; transform: rotate(8deg) scale(1.1); }

.grain { position:absolute; inset:0; pointer-events:none; opacity:.08; mix-blend-mode: overlay; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.6"/></svg>'); }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/bg.jpg');
  background-size: cover; background-position: center; filter: saturate(0.7) brightness(0.55) contrast(1.05);
  transform: translateZ(0);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; /* revealed by JS when ready */
  transition: opacity .6s ease;
  filter: saturate(0.85) brightness(0.5) contrast(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 20% 18%, rgba(122,162,255,0.28), transparent 72%),
    radial-gradient(1000px 640px at 80% 52%, rgba(155,122,255,0.26), transparent 72%),
    radial-gradient(140% 120% at 50% 110%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, transparent 100%),
    linear-gradient(to bottom, rgba(11,14,19,0.65), rgba(11,14,19,0.9));
}
.glass {
  background: linear-gradient(180deg, var(--glass), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  box-shadow: var(--shadow-1);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 980px; margin: 0 24px; padding: 36px 32px;
  text-align: center;
  animation: rise 900ms cubic-bezier(.2,.8,.2,1) both 100ms;
}
.hero-content .btn { animation: float 6s ease-in-out infinite; }
.hero-content .btn.ghost { animation-delay: 1.2s; }
.hero h1 {
  margin: 0 0 12px; font-size: clamp(34px, 6vw, 68px); line-height: 1.06; letter-spacing: -0.02em;
}
.hero .accent { display:block; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 10px auto 22px; max-width: 720px; color: var(--muted); font-size: clamp(14px, 2vw, 18px); }
.hero-actions { display:flex; gap: 12px; justify-content:center; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding: 12px 18px; border-radius: 12px; text-decoration:none; font-weight:600; letter-spacing:.2px; border: 1px solid rgba(255,255,255,.08); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn.primary { color: #0b0e13; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px rgba(122,162,255,.25); }
.btn.ghost { color: var(--text); background: rgba(255,255,255,.06); }
.btn.large { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0,0,0,.4); }

.scroll-indicator { position:absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 999px; border:1px solid rgba(255,255,255,.18); display:flex; align-items:flex-start; justify-content:center; padding-top:6px; opacity:.8; }
.scroll-indicator span { width:4px; height:8px; background: #fff; border-radius: 2px; animation: scroll 1.6s ease-in-out infinite; }

.section { padding: 90px 24px; position: relative; }
.section-header { max-width: 980px; margin: 0 auto 30px; text-align:center; }
.title { font-size: clamp(24px, 4vw, 40px); margin: 0 0 6px; }
.subtitle { color: var(--muted); margin: 0; }

.grid { max-width: 1100px; margin: 20px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.card { padding: 22px; min-height: 140px; transition: transform .25s ease, background .25s ease; }
.card:hover { transform: translateY(-4px); background: var(--glass-strong); }

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

.gallery { position: relative; }
.masonry { max-width: 1200px; margin: 10px auto 0; columns: 3 280px; column-gap: 18px; }
.item { break-inside: avoid; height: 220px; margin: 0 0 18px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); backdrop-filter: blur(var(--blur)); box-shadow: var(--shadow-1); }
.item.wide { height: 320px; }
.item.tall { height: 440px; }

.cta-section { display:grid; place-items:center; padding-bottom: 120px; }
.cta-card { max-width: 900px; padding: 34px 32px; text-align:center; }

.footer { padding: 40px 24px; text-align:center; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); background: linear-gradient(to top, rgba(255,255,255,.02), transparent); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll { 0% { transform: translateY(0); opacity: .9;} 60% { transform: translateY(12px); opacity: .3;} 100% { transform: translateY(0); opacity: .9;} }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes auroraShift { 0% { transform: translate3d(-2%, -2%, 0) scale(1.02); } 100% { transform: translate3d(2%, 2%, 0) scale(1.06); } }

/* Cursor glow */
.cursor-glow { position: fixed; left: 0; top: 0; width: 40vmax; height: 40vmax; border-radius: 50%; pointer-events: none; opacity: .18; transform: translate(-50%, -50%); z-index: 50; background: radial-gradient(closest-side, rgba(122,162,255,.7), rgba(155,122,255,.4), transparent 70%); filter: blur(26px) saturate(1.2); mix-blend-mode: screen; transition: opacity .2s ease; }

/* Magnetic buttons and tilt */
.magnet-area { position: relative; }
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .18s linear; }
.tilt > * { transform: translateZ(18px); }

/* Parallax helpers */
.parallax-layer { position: absolute; inset: 0; pointer-events: none; }


