:root {
  --bg: #050508;
  --surface: #0c0c12;
  --card: #111118;
  --border: #1e1e2a;
  --text: #e0e0ee;
  --muted: #6b6b7e;
  --accent: #0a84ff;
  --accent2: #30d158;
  --accent3: #ff6b6b;
  --accent4: #ffd76b;
  --c1: #64d2ff;
  --c2: #30d158;
  --c3: #bf5af2;
  --c4: #ff9f0a;
  --glow: rgba(10,132,255,0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Fira Code', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.nav-logo {
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.1em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.75rem;
  letter-spacing: 0.05em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.nav-gh {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.04em; transition: all 0.25s;
}
.nav-gh:hover { border-color: var(--accent); color: var(--text); background: var(--glow); }
.nav-gh svg { width: 14px; height: 14px; fill: currentColor; }

.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; flex-direction: column; gap: 4px;
}
.nav-hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text); border-radius: 1px; transition: 0.3s;
}

/* MOBILE NAV */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(5,5,8,0.95); backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-nav.active { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.mobile-nav a:hover { color: var(--accent); }

/* HERO */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 8rem 2.5rem 4rem;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,132,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,132,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

.hero-orb {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,132,255,0.08) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-tag {
  font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.6s 0.2s forwards;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  line-height: 1.05; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.6s 0.4s forwards;
}
.hero-title em { color: var(--accent); font-style: italic; }

.hero-sub {
  font-size: 0.85rem; color: var(--muted);
  max-width: 560px; line-height: 1.8; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.6s 0.6s forwards;
}

.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 0.6s 0.7s forwards;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.6rem; border-radius: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.05em; color: #fff;
  background: linear-gradient(135deg, var(--accent), #0060c0);
  border: 1px solid rgba(10,132,255,0.4);
  box-shadow: 0 0 20px rgba(10,132,255,0.25), 0 0 60px rgba(10,132,255,0.1);
  transition: all 0.3s ease;
}
.hero-cta:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 0 30px rgba(10,132,255,0.4), 0 0 80px rgba(10,132,255,0.15);
}
.hero-cta svg { width: 16px; height: 16px; fill: currentColor; }

.hero-cta-secondary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.6rem; border-radius: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.05em; color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.hero-cta-secondary:hover {
  border-color: var(--accent); color: var(--text);
  background: var(--glow); transform: translateY(-2px);
}
.hero-cta-secondary svg { width: 16px; height: 16px; fill: currentColor; }

.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.6s 0.8s forwards;
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-val {
  font-size: 2rem; font-weight: 600;
  font-family: 'DM Serif Display', serif;
}
.stat-label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; }
.stat-val.blue { color: var(--c1); }
.stat-val.green { color: var(--accent2); }
.stat-val.purple { color: var(--c3); }
.stat-val.orange { color: var(--c4); }

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem; color: var(--muted);
  letter-spacing: 0.15em;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); }

/* SECTIONS */
section { padding: 6rem 2.5rem; max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.68rem; color: var(--accent);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15; margin-bottom: 1rem;
}

.section-sub {
  font-size: 0.85rem; color: var(--muted);
  max-width: 600px; line-height: 1.8; margin-bottom: 2.5rem;
}

/* IDEA / ORIGIN GRID */
.origin-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-top: 2rem;
}

.origin-text p {
  font-size: 0.85rem; line-height: 1.9;
  color: var(--muted); margin-bottom: 1.2rem;
}
.origin-text p strong { color: var(--text); font-weight: 500; }

.origin-visual {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
  position: relative; overflow: hidden;
}
.origin-visual::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(10,132,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.flow-step {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.2rem; position: relative;
}
.flow-step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 16px; top: 36px; width: 1px;
  height: calc(100% + 0.2rem);
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.flow-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--glow); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--accent);
  flex-shrink: 0; font-weight: 600;
}
.flow-content h4 { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.flow-content p { font-size: 0.72rem; color: var(--muted); line-height: 1.6; }

/* TECH STACK */
.tech-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6rem 0; }
.tech-inner { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }

.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem; margin-top: 2.5rem;
}

.tech-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.8rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.tech-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform 0.3s;
}
.tech-card:hover { border-color: rgba(10,132,255,0.3); transform: translateY(-3px); }
.tech-card:hover::before { transform: scaleX(1); }

.tech-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.tech-icon svg { width: 18px; height: 18px; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.ti-blue { background: rgba(10,132,255,0.12); border: 1px solid rgba(10,132,255,0.2); }
.ti-blue svg { stroke: var(--accent); }
.ti-green { background: rgba(48,209,88,0.12); border: 1px solid rgba(48,209,88,0.2); }
.ti-green svg { stroke: var(--accent2); }
.ti-orange { background: rgba(255,159,10,0.12); border: 1px solid rgba(255,159,10,0.2); }
.ti-orange svg { stroke: var(--c4); }
.ti-red { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.2); }
.ti-red svg { stroke: var(--accent3); }
.ti-purple { background: rgba(191,90,242,0.12); border: 1px solid rgba(191,90,242,0.2); }
.ti-purple svg { stroke: var(--c3); }
.ti-cyan { background: rgba(100,210,255,0.12); border: 1px solid rgba(100,210,255,0.2); }
.ti-cyan svg { stroke: var(--c1); }

.tech-card h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.5rem; }
.tech-card p { font-size: 0.72rem; color: var(--muted); line-height: 1.7; }

/* VIDEO SECTION */
.video-wrapper {
  margin: 2.5rem auto 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(10,132,255,0.06);
  max-width: 800px; background: #000;
}
.video-wrapper video { width: 100%; display: block; }

/* GALLERY */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 2.5rem;
}
.gallery-item {
  border-radius: 12px; overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; position: relative;
  border: 1px solid var(--border); transition: all 0.3s;
}
.gallery-item:hover { border-color: rgba(10,132,255,0.3); transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.4) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,5,8,0.9); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; border: 1px solid var(--border); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: var(--muted); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lightbox-close:hover { background: var(--glow); border-color: var(--accent); color: var(--text); }

/* CIRCUIT */
.circuit-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6rem 0; }
.circuit-inner { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.circuit-img {
  margin-top: 2.5rem; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(10,132,255,0.06);
}
.circuit-img img { width: 100%; }

/* FUTURE */
.future-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem; margin-top: 2.5rem;
}
.future-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.8rem;
  transition: all 0.3s; display: flex; align-items: flex-start; gap: 1rem;
}
.future-card:hover { border-color: rgba(10,132,255,0.3); transform: translateY(-2px); }

.future-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--glow); border: 1px solid rgba(10,132,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.future-icon svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.future-card h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.future-card p { font-size: 0.72rem; color: var(--muted); line-height: 1.7; }

/* FOOTER */
footer {
  padding: 4rem 2.5rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 2rem;
}
.footer-left { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-name { font-family: 'DM Serif Display', serif; font-size: 1.3rem; }
.footer-sub { font-size: 0.72rem; color: var(--muted); }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.72rem;
  color: var(--muted); letter-spacing: 0.05em; transition: all 0.2s;
}
.footer-link:hover { border-color: var(--accent); color: var(--text); background: var(--glow); }
.footer-link svg { width: 14px; height: 14px; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-stats { gap: 1.5rem; }
  .stat-val { font-size: 1.5rem; }
  section { padding: 4rem 1.5rem; }
  .origin-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .future-grid { grid-template-columns: 1fr; }
  .tech-inner, .circuit-inner { padding: 0 1.5rem; }
  .tech-section, .circuit-section { padding: 4rem 0; }
  footer { flex-direction: column; padding: 3rem 1.5rem; }
}
@media (max-width: 480px) {
  .tech-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}
