/* Global Styles */
:root {
  --bg: #0b0c10;
  --surface: #0f1117;
  --muted: #a1a1aa;
  --text: #e5e7eb;
  --primary: #7c3aed;
  --primary-2: #6366f1;
  --accent: #22d3ee;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(99, 102, 241, 0.12);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.04);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1000px 600px at 10% -10%, rgba(124,58,237,0.25), transparent 60%),
              radial-gradient(1000px 600px at 100% 10%, rgba(99,102,241,0.2), transparent 60%),
              linear-gradient(180deg, #0b0c10 0%, #0b0c10 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  overflow-x: hidden;
}

.container { width: min(1200px, 92%); margin: 0 auto; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(12,14,20,0.8), rgba(12,14,20,0.2)); border-bottom: 1px solid var(--border); }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; width: min(1200px, 92%); margin: 0 auto; }
.logo { width: 28px; height: 28px; }
.logo-container { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 700; letter-spacing: 0.4px; font-size: 18px; }
.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s ease; }
.nav-link:hover { color: var(--text); }
.nav-cta { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; border: 0; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); cursor: pointer; font-weight: 600; }

/* Hero */
.hero { padding: 120px 0 60px; position: relative; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.grid-pattern { position: absolute; inset: -20% -20% 0 -20%; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%); }
.floating-shapes .shape { position: absolute; filter: blur(40px); opacity: .35; }
.shape-1 { width: 400px; height: 400px; background: radial-gradient(circle at 30% 30%, #8b5cf6, transparent 60%); top: -80px; left: -120px; animation: float1 12s ease-in-out infinite; }
.shape-2 { width: 500px; height: 500px; background: radial-gradient(circle at 60% 40%, #22d3ee, transparent 60%); bottom: -120px; right: -160px; animation: float2 14s ease-in-out infinite; }
.shape-3 { width: 300px; height: 300px; background: radial-gradient(circle at 70% 30%, #6366f1, transparent 60%); top: 40%; right: 20%; animation: float3 16s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(20px) } }
@keyframes float2 { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-24px) } }
@keyframes float3 { 0%, 100% { transform: translateX(0) } 50% { transform: translateX(20px) } }

.hero-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; width: min(1200px, 92%); margin: 0 auto; }
.hero-badge { display: inline-flex; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--glass); color: var(--accent); font-weight: 600; letter-spacing: 0.3px; }
.hero-title { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin: 16px 0; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(90deg, var(--accent), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 640px; }
.hero-actions { margin-top: 24px; display: flex; gap: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; border: 0; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(99,102,241,0.3); cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.btn-secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid var(--border); padding: 12px 18px; border-radius: 12px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.btn-secondary .play-icon { width: 18px; height: 18px; }
.btn-icon { width: 18px; height: 18px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.stat { background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; }
.stat-number { font-size: 20px; font-weight: 800; color: white; }
.stat-label { color: var(--muted); font-size: 12px; }

/* Demo Visual */
.demo-container { perspective: 1200px; }
.demo-screen { background: rgba(17, 24, 39, 0.65); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transform: rotateY(-12deg) rotateX(4deg); box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.04); }
.demo-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(99,102,241,0.08), rgba(12,14,20,0.2)); }
.demo-controls { display: flex; gap: 8px; }
.control { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #22c55e; }
.demo-title { color: var(--muted); font-size: 12px; }
.demo-content { position: relative; height: 320px; background: radial-gradient(600px 240px at 50% 0%, rgba(124,58,237,0.2), transparent 80%); }
.face-detection { position: absolute; inset: 0; display: grid; place-items: center; }
.detection-box { position: relative; width: 62%; aspect-ratio: 1/1; border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; backdrop-filter: blur(2px); }
.detection-box.active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(34,211,238,0.2), 0 0 40px rgba(34,211,238,0.15) inset; }
.detection-corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent); }
.detection-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.detection-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-radius: 0 12px 0 0; }
.detection-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-radius: 0 0 0 12px; }
.detection-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }
.student-info { position: absolute; bottom: -58px; left: 50%; transform: translateX(-50%); background: rgba(15,17,23,0.8); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.student-name { font-weight: 700; }
.student-id { color: var(--muted); font-size: 12px; }
.attendance-status { color: var(--success); font-weight: 700; }
.scan-line { position: absolute; top: 10%; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 3s linear infinite; }
@keyframes scan { 0% { transform: translateY(0); } 50% { transform: translateY(200px); } 100% { transform: translateY(0); } }

/* Features */
.features { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 28px; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.section-subtitle { color: var(--muted); margin-top: 8px; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.feature-card { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 18px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; inset: -1px; background: radial-gradient(400px 140px at 20% -20%, rgba(124,58,237,0.24), transparent 60%); opacity: 0; transition: opacity .2s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.feature-card:hover::after { opacity: 1; }
.feature-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--accent); }
.feature-title { margin: 10px 0 6px; font-size: 18px; }
.feature-description { margin: 0; color: var(--muted); line-height: 1.6; }

/* Technology */
.technology { padding: 80px 0; }
.tech-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.tech-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.tech-description { color: var(--muted); margin-bottom: 18px; }
.tech-features { display: grid; gap: 10px; }
.tech-feature { display: inline-flex; align-items: center; gap: 8px; color: var(--text); background: var(--glass); border: 1px solid var(--border); padding: 10px 12px; border-radius: 12px; width: fit-content; }
.tech-icon { width: 16px; height: 16px; color: var(--success); }

.neural-network { position: relative; background: radial-gradient(600px 240px at 50% 0%, rgba(124,58,237,0.18), rgba(17,24,39,0.4)); border: 1px solid var(--border); border-radius: 16px; padding: 24px; height: 320px; overflow: hidden; }
.network-layer { position: absolute; display: flex; flex-direction: column; gap: 18px; }
.network-layer:nth-child(1) { left: 10%; top: 16%; }
.network-layer:nth-child(2) { left: 45%; top: 10%; }
.network-layer:nth-child(3) { right: 10%; top: 22%; }
.neuron { width: 16px; height: 16px; background: radial-gradient(circle at 30% 30%, var(--accent), #0ea5b7); border-radius: 50%; box-shadow: 0 0 20px rgba(34,211,238,0.6); animation: pulse 2.4s ease-in-out infinite; }
.neuron:nth-child(2) { animation-delay: .2s; }
.neuron:nth-child(3) { animation-delay: .4s; }
.neuron:nth-child(4) { animation-delay: .6s; }
@keyframes pulse { 0%, 100% { transform: scale(0.9); opacity: .8; } 50% { transform: scale(1.2); opacity: 1; } }

/* Pricing */
.pricing { padding: 80px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.pricing-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; }
.pricing-card.popular { border-color: rgba(124,58,237,0.6); box-shadow: 0 30px 80px rgba(124,58,237,0.25); }
.popular-badge { position: absolute; top: 12px; right: -34px; transform: rotate(35deg); background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: white; font-size: 12px; font-weight: 800; padding: 8px 44px; }
.pricing-header { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 10px; }
.plan-name { margin: 0; font-size: 18px; }
.plan-price { display: flex; align-items: flex-end; gap: 6px; margin-top: 6px; }
.price { font-size: 36px; font-weight: 800; }
.period { color: var(--muted); }
.plan-description { color: var(--muted); margin: 6px 0 0; }
.plan-features { list-style: none; padding: 10px 0 0; margin: 0; display: grid; gap: 8px; color: var(--text); }
.plan-features li { display: flex; align-items: center; gap: 8px; }
.plan-cta { width: 100%; margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--glass); color: var(--text); font-weight: 700; cursor: pointer; }
.plan-cta.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; border: 0; }

/* CTA */
.cta { padding: 80px 0; }
.cta-content { background: linear-gradient(180deg, rgba(99,102,241,0.15), rgba(12,14,20,0.35)); border: 1px solid var(--border); border-radius: 18px; padding: 24px; text-align: center; box-shadow: var(--shadow); }
.cta-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.cta-description { color: var(--muted); margin-bottom: 16px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; }
.btn-primary.large, .btn-secondary.large { padding: 14px 20px; font-size: 16px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(12,14,20,0.6), rgba(12,14,20,0.2)); }
.footer-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.footer-description { color: var(--muted); max-width: 480px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.link-group h4 { margin: 0 0 8px; }
.link-group a { color: var(--muted); text-decoration: none; font-size: 14px; display: block; padding: 6px 0; }
.link-group a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; color: var(--muted); }
.footer-legal { display: flex; gap: 12px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .demo-content, .neural-network { height: 280px; }
}
@media (max-width: 800px) {
  .nav-menu { gap: 12px; }
  .hero { padding-top: 100px; }
  .features-grid, .pricing-grid, .footer-links { grid-template-columns: 1fr; }
  .tech-content, .footer-content { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .student-info { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Changelog */
.changelog { padding: 80px 0; }
.chips { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.chip { background: var(--glass); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.chip.active, .chip:hover { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; border-color: transparent; }
.timeline { position: relative; width: min(900px, 92%); margin: 0 auto; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05)); }
.log-card { position: relative; background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin: 16px 0 16px 20px; box-shadow: var(--shadow); }
.bullet { position: absolute; left: -20px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent), #0ea5b7); box-shadow: 0 0 20px rgba(34,211,238,0.6); }
.log-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.version { font-weight: 800; }
.date { color: var(--muted); font-size: 12px; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.change-item { color: var(--text); }
.change-tag { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; margin-right: 8px; }
.change-tag.added { background: rgba(34,197,94,0.2); color: #22c55e; border: 1px solid rgba(34,197,94,0.4); }
.change-tag.improved { background: rgba(99,102,241,0.2); color: #6366f1; border: 1px solid rgba(99,102,241,0.4); }
.change-tag.fixed { background: rgba(234,179,8,0.2); color: #eab308; border: 1px solid rgba(234,179,8,0.4); }
.change-tag.security { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid rgba(239,68,68,0.4); }

@media (max-width: 640px) {
  .timeline { padding-left: 12px; }
  .log-card { margin-left: 16px; }
  .bullet { left: -16px; }
}

.hero-badge + .hero-badge { margin-top: 12px; }