/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #09090b;
  --bg-card: rgba(255,140,50,0.04);
  --bg-card-hover: rgba(255,140,50,0.08);
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --accent: #f97316;
  --accent-glow: rgba(249,115,22,0.35);
  --cyan: #fbbf24;
  --cyan-glow: rgba(251,191,36,0.25);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(249,115,22,0.2);
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== Utility ===== */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: #000;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); border-radius: 1px; transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; width: 24px; }
.mobile-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Mobile menu */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 40px;
    background: rgba(10,10,15,0.95); backdrop-filter: blur(24px);
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links a { font-size: 1.25rem; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero.hero-compact {
  min-height: auto;
  padding: 160px 0 60px;
}
.hero.hero-compact h1 {
  margin-bottom: 16px;
}
.hero.hero-compact p {
  margin-bottom: 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 80%, rgba(34,211,238,0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  font-size: 0.8rem; font-weight: 500; color: var(--accent);
  margin-bottom: 32px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--accent-glow); }
.btn-secondary {
  background: transparent; border: 1px solid var(--border-hover);
  color: var(--text-muted);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--text); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 100px;
}
.stat {
  background: var(--bg);
  padding: 48px 24px;
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== Product Cards (shared) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 40%);
  opacity: 0; transition: opacity var(--transition); pointer-events: none;
}
.product-card:hover { border-color: var(--border-hover); transform: translateY(-4px); background: var(--bg-card-hover); }
.product-card:hover::before { opacity: 0.15; }

.product-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.product-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.product-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-live { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.badge-beta { background: rgba(234,179,8,0.1); color: #eab308; border: 1px solid rgba(234,179,8,0.2); }
.badge-soon { background: rgba(99,102,241,0.1); color: var(--accent); border: 1px solid rgba(99,102,241,0.2); }

.platform-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.platform-badge {
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-muted);
}

.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.card-link {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }
.card-link svg { width: 14px; height: 14px; }

/* ===== Featured Products ===== */
.featured-section { padding-top: 40px; }

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.featured-card:hover {
  border-color: var(--border-hover);
}

/* Primary featured card (LoL Insights) — full width with gradient border */
.featured-primary {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)), linear-gradient(135deg, var(--accent), var(--cyan));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  margin-bottom: 20px;
}
.featured-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}
.featured-text {
  padding: 48px;
}
.featured-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.featured-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.feature-list {
  list-style: none;
  margin-bottom: 32px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.feature-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.featured-visual {
  padding: 48px 48px 48px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mock UI for LoL Insights */
.mock-ui {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.mock-dots {
  display: flex;
  gap: 6px;
}
.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:nth-child(3) { background: #28c840; }
.mock-url {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
}
.mock-body {
  padding: 24px;
}
.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.mock-stat-block {
  text-align: center;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.mock-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.mock-value {
  font-size: 1.25rem;
  font-weight: 800;
}
.mock-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 16px;
}
.mock-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--accent), var(--cyan));
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  animation: barGrow 1s ease-out var(--delay) both;
}
@keyframes barGrow {
  from { height: 0; }
  to { height: var(--h); }
}
.mock-dna-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Featured duo (two-column) */
.featured-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.featured-secondary {
  padding: 40px;
}
.featured-secondary h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 12px 0 6px;
}
.featured-secondary .featured-tagline {
  font-size: 1rem;
  margin-bottom: 8px;
}
.featured-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Voting demo */
.voting-demo {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vote-option {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vote-champ {
  font-size: 0.85rem;
  font-weight: 600;
  width: 56px;
  flex-shrink: 0;
}
.vote-bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  overflow: hidden;
}
.vote-bar-fill {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 6px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.vote-bar-secondary {
  background: linear-gradient(90deg, rgba(99,102,241,0.4), rgba(34,211,238,0.4));
}
.vote-pct {
  font-size: 0.85rem;
  font-weight: 700;
  width: 36px;
  text-align: right;
  color: var(--text-muted);
}

/* Format demo */
.format-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.format-tag {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.format-tag.active {
  background: rgba(99,102,241,0.15);
  border-color: var(--accent);
  color: var(--text);
}

/* ===== Section Headers ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* ===== About / Story ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px;
}
.about-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.value-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 28px;
  transition: all var(--transition);
}
.value-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.value-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== Team ===== */
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  display: flex; align-items: center; gap: 32px;
  max-width: 560px; margin: 0 auto;
}
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #000;
}
.team-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.team-info .role { font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.team-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== CTA ===== */
.cta-section {
  text-align: center; padding: 120px 0;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(99,102,241,0.08) 0%, transparent 70%);
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.cta-section p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); background: rgba(99,102,241,0.1); }
.footer-socials svg { width: 16px; height: 16px; fill: var(--text-muted); }

/* ===== Products Page Hero ===== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-bg { opacity: 0.6; }
.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto; position: relative; z-index: 1; }

/* ===== Product detail cards on products page ===== */
.product-detail {
  padding: 40px;
}
.product-detail .product-desc { margin-bottom: 24px; }
.product-detail .product-desc p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== About page ===== */
.mission-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.mission-block h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.mission-block p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }

.story-section { max-width: 720px; margin: 0 auto; }
.story-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 24px; }
.story-section p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .featured-card-inner { grid-template-columns: 1fr; }
  .featured-visual { padding: 0 32px 32px; }
  .featured-duo { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 32px 24px; }
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero.hero-compact { padding: 120px 0 40px; }
  .featured-text { padding: 32px; }
  .featured-secondary { padding: 28px; }
  .mock-stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .product-card, .product-detail { padding: 24px; }
  .featured-text { padding: 24px; }
  .featured-visual { padding: 0 16px 24px; }
  .featured-secondary { padding: 24px; }
  .mock-stat-row { grid-template-columns: 1fr; }
}
