:root {
  --bg-deep: #08090d;
  --bg-surface: #0f1117;
  --bg-card: #161821;
  --bg-card-hover: #1c1f2b;
  --border: #252838;
  --border-hover: #3a3e54;
  --text-primary: #e4e5ec;
  --text-secondary: #8e92a8;
  --text-dim: #555770;
  --accent: #c8a44e;
  --accent-dim: rgba(200, 164, 78, 0.10);
  --accent-glow: rgba(200, 164, 78, 0.25);
  --white: #ffffff;
  --font-primary: 'Space Mono', 'DM Mono', 'SF Mono', monospace;
  --max-w: 1120px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
  --space-2xl: 140px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Typography ───────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-primary); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.5px; }
h2 { font-size: clamp(22px, 3.5vw, 36px); letter-spacing: -0.3px; }
h3 { font-size: clamp(16px, 2vw, 22px); }

p { color: var(--text-secondary); max-width: 640px; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }

.mono {
  font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-dim);
}

/* ── Layout ───────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); position: relative; z-index: 1; }

section { padding: var(--space-xl) 0; }

/* ── Navigation ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
nav.scrolled {
  padding: 14px 0;
  border-bottom-color: var(--border);
}

nav .container {
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 700;
  color: var(--text-primary); text-decoration: none; letter-spacing: 0.5px;
}
.nav-brand img {
  height: 48px; width: auto;
  filter: invert(1);
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 12px; font-weight: 400;
  text-transform: lowercase; letter-spacing: 1.5px;
  color: var(--text-secondary); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 101;
}
.nav-toggle span {
  display: block; width: 100%; height: 1.5px; background: var(--text-primary);
  position: absolute; left: 0; transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ── Point Cloud Background ──────────────────────────────────────── */
.bg-pointcloud {
  position: relative;
}
.bg-pointcloud::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: url('../assets/images/point-cloud-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
  pointer-events: none;
}
.bg-pointcloud > .container { position: relative; z-index: 1; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px;
}

.hero-content { max-width: 780px; }

.hero-eyebrow {
  display: inline-block; margin-bottom: var(--space-md);
  padding: 6px 16px; border: 1px solid var(--border);
  border-radius: 100px;
}

.hero h1 { margin-bottom: var(--space-md); }
.hero h1 em {
  font-style: normal; color: var(--accent);
}

.hero p {
  font-size: 18px; line-height: 1.8; margin-bottom: var(--space-lg);
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 400;
  text-transform: lowercase; letter-spacing: 1.5px;
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none; transition: all 0.25s;
  cursor: pointer; border: none;
}

.btn-primary {
  background: var(--accent-dim); border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-glow); color: var(--accent);
  box-shadow: 0 0 24px var(--accent-dim);
}

.btn-ghost {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  border-color: var(--border-hover); color: var(--text-primary);
}

/* ── Product Card ─────────────────────────────────────────────────── */
.product-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg);
  align-items: center;
}

.product-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: var(--space-lg);
  display: flex; align-items: center; justify-content: center;
  min-height: 360px; position: relative; overflow: hidden;
}

.product-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, var(--accent-dim) 0%, transparent 60%);
}

.product-name {
  font-size: 48px; font-weight: 700;
  color: var(--text-primary); position: relative; z-index: 1;
  letter-spacing: -1px;
}
.product-name .sub {
  display: block; font-size: 10px;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--text-dim); margin-top: 8px;
}

.product-info h2 { margin-bottom: var(--space-sm); }
.product-info p { margin-bottom: var(--space-md); }

.product-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: var(--space-md);
}

.stat {
  padding: 16px 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
}
.stat-num {
  font-size: 24px; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.stat-desc {
  font-size: 12px; color: var(--text-dim); margin-top: 4px;
}

/* ── Feature Grid ─────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-dim); border: 1px solid rgba(200,164,78,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 18px;
}

.feature-card h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; line-height: 1.6; }

/* ── Section headers ──────────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-lg); max-width: 600px;
}
.section-header .mono { margin-bottom: 12px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 16px; }

/* ── Dual Mode (LOOK + LEARN) ─────────────────────────────────────── */
.dual-mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.mode-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 40px 36px;
  transition: border-color 0.25s;
  position: relative; overflow: hidden;
}
.mode-card:hover { border-color: var(--border-hover); }

.mode-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}
.mode-card.look::before { background: linear-gradient(90deg, #00cec9, #0984e3); }
.mode-card.learn::before { background: linear-gradient(90deg, var(--accent), #e8d5a0); }

.mode-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 16px;
}
.mode-card.look .mode-label { color: #00cec9; }
.mode-card.learn .mode-label { color: var(--accent); }

.mode-card h3 { margin-bottom: 12px; }
.mode-card p { font-size: 14px; }

.mode-features {
  list-style: none; margin-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.mode-features li {
  font-size: 13px; color: var(--text-secondary);
  padding-left: 20px; position: relative;
}
.mode-features li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-hover);
}

/* ── About / Team ─────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-lg);
  align-items: start;
}

.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 40px; position: sticky; top: 120px;
}

.about-card .mono { margin-bottom: 16px; display: block; }
.about-card h3 { margin-bottom: 16px; }
.about-card p { font-size: 14px; margin-bottom: 12px; }

.about-content h2 { margin-bottom: var(--space-md); }
.about-content p { margin-bottom: var(--space-sm); font-size: 15px; }

.contact-list {
  list-style: none; margin-top: var(--space-md);
  display: flex; flex-direction: column; gap: 12px;
}
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.contact-list li a { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 11px;
  text-transform: lowercase; letter-spacing: 1.5px;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ── Divider ──────────────────────────────────────────────────────── */
.divider {
  width: 100%; height: 1px; background: var(--border);
  margin: 0;
}

/* ── Scroll Animations ────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Badge row ────────────────────────────────────────────────────── */
.badge-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-sm);
}
.badge {
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--text-dim);
}

/* ── Infographic Stats ────────────────────────────────────────────── */
.infographic-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.infographic-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px;
  transition: border-color 0.3s, transform 0.3s;
}
.infographic-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.ring-container {
  position: relative; width: 96px; height: 96px;
}
.ring-container svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 6; }
.ring-fill {
  fill: none; stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: var(--dash); stroke-dashoffset: var(--dash);
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ring-container.visible .ring-fill { stroke-dashoffset: var(--offset); }

.ring-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--text-primary);
}

.bar-container {
  width: 100%; display: flex; flex-direction: column; gap: 6px;
}
.bar-track {
  height: 8px; border-radius: 4px; background: var(--border);
  overflow: hidden; width: 100%;
}
.bar-fill {
  height: 100%; border-radius: 4px; width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-container.visible .bar-fill { width: var(--bar-width); }

.infographic-label {
  font-size: 11px; color: var(--text-dim); letter-spacing: 1px;
  text-transform: uppercase; line-height: 1.4;
}

.infographic-value {
  font-size: 28px; font-weight: 700; color: var(--text-primary);
  line-height: 1;
}

.ring-color-gold { stroke: var(--accent); }
.ring-color-teal { stroke: #00cec9; }
.ring-color-pink { stroke: #e17055; }
.ring-color-blue { stroke: #74b9ff; }
.bar-color-gold { background: linear-gradient(90deg, var(--accent), #e8d5a0); }
.bar-color-teal { background: linear-gradient(90deg, #00cec9, #55efc4); }
.bar-color-pink { background: linear-gradient(90deg, #e17055, #fab1a0); }
.bar-color-blue { background: linear-gradient(90deg, #74b9ff, #a29bfe); }

/* ── Image Grid ───────────────────────────────────────────────────── */
.image-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  border-radius: 12px; overflow: hidden;
}
.image-grid img {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.7);
}
.image-grid img:hover { transform: scale(1.04); filter: saturate(1); }

.image-grid.two-col { grid-template-columns: 1fr 1fr; }
.image-grid.two-col img { height: 280px; }

.hero-image {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border);
  margin-top: var(--space-md);
}

.concept-image {
  max-width: 360px; border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-showcase { grid-template-columns: 1fr; }
  .product-visual { min-height: 240px; }
  .features-grid { grid-template-columns: 1fr; }
  .dual-mode { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .image-grid { grid-template-columns: 1fr 1fr; }
  .image-grid img { height: 160px; }
  .image-grid.two-col img { height: 200px; }
  .infographic-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --space-xl: 64px; --space-lg: 40px; --space-md: 24px; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; background: var(--bg-deep);
    justify-content: center; align-items: center; gap: 28px;
    z-index: 100;
  }
  .nav-links.open a { font-size: 14px; letter-spacing: 3px; }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding-top: 140px; padding-bottom: var(--space-xl); }
  .product-stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .image-grid { grid-template-columns: 1fr; }
  .image-grid img { height: 180px; }
  .image-grid.two-col { grid-template-columns: 1fr; }
  .image-grid.two-col img { height: 200px; }
}
