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

:root {
  --bg: #FFF8E7;
  --bg-2: #FFE3D1;
  --pink: #FF6B9D;
  --pink-dark: #E84B7A;
  --yellow: #FFD93D;
  --yellow-dark: #F5B700;
  --green: #6BCB77;
  --green-dark: #4FA85B;
  --blue: #4D96FF;
  --blue-dark: #2E6FE0;
  --purple: #9B59B6;
  --purple-dark: #7D3C98;
  --orange: #FF8C42;
  --orange-dark: #E67324;
  --text: #2D1B4E;
  --text-light: #6B5B95;
  --card: #FFFFFF;
  --shadow: rgba(45, 27, 78, 0.15);
  --terminal-bg: #1a1a2e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Background Shapes ===== */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  font-size: 3rem;
  opacity: 0.5;
  animation: floatShape 12s ease-in-out infinite;
}

.cloud.c1 { top: 10%; left: 5%; font-size: 4rem; animation-duration: 15s; }
.cloud.c2 { top: 40%; right: 8%; font-size: 3rem; animation-duration: 18s; animation-delay: -3s; }
.star.s1 { top: 15%; right: 15%; font-size: 2rem; animation-duration: 8s; }
.star.s2 { top: 60%; left: 10%; font-size: 2.5rem; animation-duration: 10s; animation-delay: -2s; }
.star.s3 { top: 75%; right: 20%; font-size: 1.8rem; animation-duration: 12s; animation-delay: -5s; }
.star.s4 { top: 30%; left: 45%; font-size: 1.5rem; animation-duration: 9s; animation-delay: -1s; }

.blob {
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: floatShape 15s ease-in-out infinite;
}

.blob.b1 { width: 300px; height: 300px; background: var(--pink); top: 5%; left: -5%; }
.blob.b2 { width: 250px; height: 250px; background: var(--yellow); top: 50%; right: -5%; animation-delay: -4s; }
.blob.b3 { width: 200px; height: 200px; background: var(--blue); bottom: 10%; left: 30%; animation-delay: -7s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(8deg); }
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--text);
  box-shadow: 0 4px 0 var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Bungee', cursive;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
}

.logo-icon {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--pink);
  animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--pink);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--pink-dark);
  transform: translateY(-2px);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.btn-nav {
  background: var(--pink);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-nav:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--text);
  background: var(--pink-dark);
}

.btn-nav:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--text);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 4px;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 6rem 6rem;
  min-height: 90vh;
  position: relative;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 3px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  margin-bottom: 1.5rem;
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-family: 'Bungee', cursive;
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title .word {
  display: inline-block;
  animation: popIn 0.8s ease-out backwards;
}

.hero-title .w1 { color: var(--pink); animation-delay: 0.1s; }
.hero-title .w2 { color: var(--yellow-dark); animation-delay: 0.3s; margin: 0 0.5rem; }
.hero-title .w3 { color: var(--blue); animation-delay: 0.5s; }

@keyframes popIn {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  70% { transform: scale(1.2) rotate(8deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 520px;
}

.highlight {
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
  font-weight: 600;
  padding: 0 4px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 1.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border: 3px solid var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  font-family: 'Fredoka', sans-serif;
}

.btn-primary {
  background: var(--pink);
  color: white;
  box-shadow: 5px 5px 0 var(--text);
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--text);
  background: var(--pink-dark);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--text);
}

.btn-secondary {
  background: white;
  color: var(--text);
  box-shadow: 5px 5px 0 var(--text);
}

.btn-secondary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--text);
  background: var(--yellow);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(6px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  transition: all 0.3s ease;
  min-width: 120px;
}

.stat:hover {
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 6px 6px 0 var(--text);
}

.stat i {
  font-size: 1.5rem;
  color: var(--pink);
  margin-bottom: 0.3rem;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.stat:nth-child(2) i { color: var(--yellow-dark); animation-delay: 0.3s; }
.stat:nth-child(3) i { color: var(--blue); animation-delay: 0.6s; }

.stat-number {
  font-family: 'Bungee', cursive;
  font-size: 1.4rem;
  color: var(--text);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ===== Hero Visual ===== */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.face-card {
  background: white;
  border-radius: 30px;
  padding: 1.2rem;
  border: 4px solid var(--text);
  box-shadow: 10px 10px 0 var(--text);
  position: relative;
  width: 340px;
  animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.8rem;
  background: var(--bg-2);
  border-radius: 10px;
  border: 2px solid var(--text);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.demo-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: monospace;
}

.face-frame {
  background: #1a1a2e;
  border-radius: 20px;
  height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(107, 203, 119, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 203, 119, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

.face-emoji {
  font-size: 8rem;
  animation: facePulse 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes facePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.detection-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 190px;
  border: 3px solid var(--green);
  border-radius: 12px;
  animation: boxPulse 1.5s ease-in-out infinite;
}

@keyframes boxPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 203, 119, 0.7); }
  50% { box-shadow: 0 0 0 12px rgba(107, 203, 119, 0); }
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 4px solid var(--yellow);
}

.corner.tl { top: -3px; left: -3px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.corner.tr { top: -3px; right: -3px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.corner.bl { bottom: -3px; left: -3px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.corner.br { bottom: -3px; right: -3px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

.confidence-tag {
  position: absolute;
  top: -32px;
  left: -3px;
  background: var(--green);
  color: white;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid var(--text);
}

.name-tag {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 2px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid var(--text);
}

.scanning-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: scanMove 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--green);
}

@keyframes scanMove {
  0% { top: 0; }
  50% { top: calc(100% - 4px); }
  100% { top: 0; }
}

.face-info {
  margin-top: 1rem;
  background: var(--bg-2);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  border: 2px solid var(--text);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin: 0.3rem 0;
}

.info-label {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-label i {
  font-size: 0.85rem;
}

.info-value {
  font-weight: 600;
  color: var(--text-light);
  font-family: monospace;
}

.status-active {
  color: var(--green-dark);
  font-weight: 700;
}

.floating-icon {
  position: absolute;
  font-size: 1.5rem;
  color: var(--text);
  background: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  animation: iconFloat 3s ease-in-out infinite;
}

.fi1 { top: -20px; right: -10px; background: var(--pink); color: white; animation-delay: 0s; }
.fi2 { bottom: 60px; left: -25px; background: var(--yellow); animation-delay: -1s; }
.fi3 { top: 40%; right: -30px; background: var(--blue); color: white; animation-delay: -2s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* ===== Wave Divider ===== */
.wave-divider {
  margin-top: -2rem;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.section-emoji {
  font-size: 3rem;
  display: inline-block;
  animation: wobble 2s ease-in-out infinite;
}

.section-title {
  font-family: 'Bungee', cursive;
  font-size: 2.8rem;
  color: var(--text);
  margin: 0.5rem 0;
  text-shadow: 4px 4px 0 var(--yellow);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== Features ===== */
.features {
  background: #fff;
  padding: 5rem 4rem;
  border-top: 4px solid var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border-radius: 25px;
  padding: 2rem;
  border: 4px solid var(--text);
  box-shadow: 8px 8px 0 var(--text);
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card[data-color="pink"] { background: #FFE5EC; }
.feature-card[data-color="yellow"] { background: #FFF7D6; }
.feature-card[data-color="green"] { background: #D6F5DC; }
.feature-card[data-color="blue"] { background: #D6E5FF; }
.feature-card[data-color="purple"] { background: #E8D6F5; }
.feature-card[data-color="orange"] { background: #FFE5D6; }
.feature-card[data-color="teal"] { background: #D2F4F0; }
.feature-card[data-color="indigo"] { background: #E0DAFF; }
.feature-card[data-color="red"] { background: #FFDCDA; }
.feature-card[data-color="emerald"] { background: #D8F3DC; }
.feature-card[data-color="cyan"] { background: #D4F4FA; }
.feature-card[data-color="amber"] { background: #FFF3CD; }

.feature-card:hover {
  transform: translate(-4px, -4px) rotate(-1deg);
  box-shadow: 12px 12px 0 var(--text);
}

.feature-card:nth-child(even):hover {
  transform: translate(-4px, -4px) rotate(1deg);
}

.feature-icon {
  font-size: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: white;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  margin-bottom: 1.2rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.feature-card:nth-child(1) .feature-icon { color: var(--pink); }
.feature-card:nth-child(2) .feature-icon { color: var(--yellow-dark); animation-delay: 0.3s; }
.feature-card:nth-child(3) .feature-icon { color: var(--green-dark); animation-delay: 0.6s; }
.feature-card:nth-child(4) .feature-icon { color: var(--blue); animation-delay: 0.9s; }
.feature-card:nth-child(5) .feature-icon { color: var(--purple); animation-delay: 1.2s; }
.feature-card:nth-child(6) .feature-icon { color: var(--orange); animation-delay: 1.5s; }
.feature-card:nth-child(7) .feature-icon { color: #00A896; animation-delay: 0.2s; }
.feature-card:nth-child(8) .feature-icon { color: #5B47D6; animation-delay: 0.5s; }
.feature-card:nth-child(9) .feature-icon { color: #E63946; animation-delay: 0.8s; }
.feature-card:nth-child(10) .feature-icon { color: #2A9D8F; animation-delay: 1.1s; }
.feature-card:nth-child(11) .feature-icon { color: #0077B6; animation-delay: 1.4s; }
.feature-card:nth-child(12) .feature-icon { color: #E76F51; animation-delay: 1.7s; }

.feature-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ===== Demo Section ===== */
.demo {
  background: var(--bg-2);
  padding: 5rem 4rem;
  border-top: 4px solid var(--text);
  border-bottom: 4px solid var(--text);
}

.demo-showcase {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 30px;
  border: 4px solid var(--text);
  box-shadow: 10px 10px 0 var(--text);
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  border-bottom: 3px solid var(--text);
  background: var(--bg-2);
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  padding: 1.2rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.tab-btn.active {
  background: white;
  color: var(--pink-dark);
  border-bottom-color: var(--pink);
}

.demo-content-area {
  padding: 2.5rem;
  min-height: 400px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-preview h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.demo-preview h3 i {
  color: var(--pink);
  margin-right: 0.5rem;
}

.demo-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.screenshot-container {
  background: var(--terminal-bg);
  border-radius: 18px;
  border: 3px solid var(--text);
  box-shadow: 5px 5px 0 var(--text);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6BCB77;
  gap: 1rem;
}

.screenshot-fallback i {
  font-size: 3rem;
}

.screenshot-fallback p {
  font-family: monospace;
  font-size: 0.95rem;
}

.screenshot-container:not(.img-error) .screenshot-fallback {
  display: none;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 500;
}

.feature-list i {
  color: var(--green);
  font-size: 1.1rem;
}

/* Code Preview */
.code-preview {
  background: var(--terminal-bg);
  border-radius: 18px;
  border: 3px solid var(--text);
  box-shadow: 5px 5px 0 var(--text);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.code-preview .code-header {
  background: #16213e;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--text);
}

.code-preview .code-dots {
  display: flex;
  gap: 6px;
}

.code-title {
  color: #a8a8c8;
  font-size: 0.85rem;
}

.code-preview pre {
  padding: 1.5rem;
  color: #f8f8f8;
  font-size: 0.92rem;
  line-height: 1.7;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

.c-command { color: #FFD93D; font-weight: bold; }
.c-string { color: #FF6B9D; }
.c-number { color: #6BCB77; font-weight: bold; }

/* Capabilities Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.capability {
  background: var(--bg-2);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  border: 3px solid var(--text);
  box-shadow: 5px 5px 0 var(--text);
  transition: all 0.3s ease;
}

.capability:hover {
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 7px 7px 0 var(--text);
}

.cap-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  background: white;
  border-radius: 50%;
  border: 3px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
}

.capability:nth-child(1) .cap-icon { color: var(--pink); }
.capability:nth-child(2) .cap-icon { color: var(--green-dark); }
.capability:nth-child(3) .cap-icon { color: var(--blue); }
.capability:nth-child(4) .cap-icon { color: var(--orange); }

.capability h4 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.capability p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* API & Interactive Demo Styles */
.api-endpoints-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.api-endpoint-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: #f8f9fc;
  border: 2px solid var(--text);
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
}

.method-tag {
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.method-tag.get { background: #61AFFE; color: #fff; }
.method-tag.post { background: #49CC90; color: #fff; }
.method-tag.ws { background: #9B59B6; color: #fff; }

.endpoint-path {
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.endpoint-desc {
  color: var(--text-light);
  font-size: 0.85rem;
  font-family: 'Fredoka', sans-serif;
}

/* Face ID HUD Simulation */
.faceid-hud-box {
  background: #0f111a;
  border-radius: 20px;
  border: 3px solid var(--text);
  box-shadow: 6px 6px 0 var(--text);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hud-ring-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.hud-circle {
  width: 130px;
  height: 130px;
  border: 4px dashed #6BCB77;
  border-radius: 50%;
  animation: hudRotate 12s linear infinite;
}

@keyframes hudRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hud-avatar {
  position: absolute;
  font-size: 3.5rem;
}

.hud-status {
  font-family: 'Courier New', monospace;
  color: #6BCB77;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.hud-angle {
  font-size: 0.9rem;
  color: #a8a8c8;
}

/* Scripts Grid */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.script-card {
  background: white;
  border: 2px solid var(--text);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 4px 4px 0 var(--text);
}

.script-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.3rem;
  font-family: 'Courier New', monospace;
}

.script-card span {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ===== Download Section ===== */
.download {
  background: #fff;
  padding: 5rem 4rem;
  border-top: 4px solid var(--text);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.download-card {
  background: white;
  border-radius: 25px;
  padding: 2rem;
  border: 4px solid var(--text);
  box-shadow: 8px 8px 0 var(--text);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.download-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--text);
}

.download-card.featured {
  background: linear-gradient(135deg, #FFE5EC 0%, #FFF7D6 100%);
}

.download-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.dl-icon {
  font-size: 1.8rem;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: white;
  border-radius: 16px;
  border: 3px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
}

.dl-icon.github { background: var(--text); }
.dl-icon.terminal { background: var(--green-dark); }

.download-header h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  color: var(--text);
}

.badge-rec {
  background: var(--yellow);
  color: var(--text);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--text);
}

.download-card > p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.install-steps {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.install-steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
}

.step-dot {
  font-size: 0.5rem;
  color: var(--pink);
}

.code-box {
  background: var(--terminal-bg);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
}

.code-box code {
  color: #6BCB77;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  background: var(--yellow);
  border: 2px solid var(--text);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--pink);
  color: white;
  transform: scale(1.1);
}

.copy-btn.copied {
  background: var(--green);
  color: white;
}

/* System Requirements */
.system-requirements {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-2);
  border-radius: 25px;
  padding: 2rem;
  border: 4px solid var(--text);
  box-shadow: 8px 8px 0 var(--text);
}

.system-requirements h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.system-requirements h3 i {
  color: var(--blue);
  margin-right: 0.5rem;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem 1.2rem;
  border-radius: 15px;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  transition: all 0.3s ease;
}

.requirement:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--text);
}

.req-icon {
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border-radius: 12px;
  border: 2px solid var(--text);
  flex-shrink: 0;
}

.requirement:nth-child(1) .req-icon { color: var(--blue); background: #D6E5FF; }
.requirement:nth-child(2) .req-icon { color: var(--green-dark); background: #D6F5DC; }
.requirement:nth-child(3) .req-icon { color: var(--orange); background: #FFE5D6; }
.requirement:nth-child(4) .req-icon { color: var(--purple); background: #E8D6F5; }

.requirement strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.requirement span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Documentation ===== */
.docs {
  background: var(--bg-2);
  padding: 5rem 4rem;
  border-top: 4px solid var(--text);
  border-bottom: 4px solid var(--text);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.doc-card {
  background: white;
  border-radius: 20px;
  padding: 1.8rem;
  text-decoration: none;
  border: 4px solid var(--text);
  box-shadow: 6px 6px 0 var(--text);
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.doc-card:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 9px 9px 0 var(--text);
  background: var(--yellow);
}

.doc-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border-radius: 18px;
  border: 3px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  margin-bottom: 1rem;
  color: var(--pink);
  transition: all 0.3s ease;
}

.doc-card:hover .doc-icon {
  transform: rotate(10deg) scale(1.1);
  background: white;
}

.doc-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.doc-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.doc-arrow {
  font-size: 1.5rem;
  color: var(--pink);
  font-weight: bold;
  transition: transform 0.3s ease;
  display: inline-block;
}

.doc-card:hover .doc-arrow {
  transform: translateX(8px);
}

/* ===== Contact ===== */
.contact {
  background: #fff;
  padding: 5rem 4rem;
  border-top: 4px solid var(--text);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.info-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  border: 4px solid var(--text);
  box-shadow: 6px 6px 0 var(--text);
  transition: all 0.3s ease;
  display: block;
}

.info-card:hover {
  transform: translateY(-8px) rotate(-2deg);
  box-shadow: 8px 10px 0 var(--text);
  background: var(--bg-2);
}

.info-icon {
  font-size: 2rem;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--pink);
  color: white;
  border-radius: 50%;
  border: 3px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  transition: all 0.3s ease;
}

.info-card:nth-child(1) .info-icon { background: var(--text); }
.info-card:nth-child(2) .info-icon { background: var(--purple); }
.info-card:nth-child(3) .info-icon { background: var(--orange); }
.info-card:nth-child(4) .info-icon { background: var(--yellow); color: var(--text); }

.info-card:hover .info-icon {
  transform: rotate(15deg) scale(1.1);
}

.info-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.info-link {
  color: var(--pink-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: white;
  padding: 3rem 4rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-section h3,
.footer-section h4 {
  font-family: 'Baloo 2', cursive;
  margin-bottom: 1rem;
}

.footer-logo {
  font-family: 'Bungee', cursive;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo i {
  color: var(--yellow);
  animation: wobble 3s ease-in-out infinite;
}

.footer-section p {
  color: #c8b8e8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--pink);
  transform: translateY(-4px) rotate(8deg);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul a {
  color: #c8b8e8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-section ul a:hover {
  color: var(--yellow);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: #a8a0c0;
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.footer-bottom a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px) rotate(-10deg);
  background: var(--pink-dark);
  box-shadow: 6px 8px 0 var(--text);
}

.scroll-top:active {
  transform: translateY(0);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: 10px;
  border: 2px solid var(--text);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pink-dark);
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-menu, .btn-nav {
    display: none;
  }

  .nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border-bottom: 3px solid var(--text);
    gap: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    flex-direction: column;
    padding: 2rem 1.5rem 4rem;
    text-align: center;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features, .demo, .download, .docs, .contact {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .face-card {
    width: 300px;
  }

  .face-frame {
    height: 240px;
  }

  .face-emoji {
    font-size: 6rem;
  }

  .detection-box {
    width: 150px;
    height: 170px;
  }

  .demo-content-area {
    padding: 1.5rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .hero-title {
    font-size: 2rem;
  }

  .feature-grid, .download-cards, .docs-grid, .contact-info {
    grid-template-columns: 1fr;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
  }

  .floating-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .hero-stats {
    gap: 0.8rem;
  }

  .stat {
    min-width: 100px;
    padding: 0.8rem 1rem;
  }

  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}