/* === AppliVote Landing Page === */

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #dbeafe;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* === Hero === */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 16px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stats .stat strong { display: block; font-size: 1.5rem; color: var(--text); }
.hero-stats .stat span { font-size: 0.85rem; color: var(--text-muted); }

/* === Remote Demo === */
.remote-demo {
  display: flex;
  justify-content: center;
}
.remote-frame {
  background: var(--white);
  border: 3px solid var(--text);
  border-radius: 24px;
  padding: 20px;
  width: 280px;
  box-shadow: var(--shadow-xl);
}
.remote-screen {
  background: #f1f5f9;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}
.remote-value {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
}
.remote-yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.remote-btn-yes, .remote-btn-no {
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  color: white;
  cursor: pointer;
  transition: transform 0.1s;
}
.remote-btn-yes { background: var(--success); }
.remote-btn-no { background: var(--danger); }
.remote-btn-yes:active, .remote-btn-no:active { transform: scale(0.95); }
.remote-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.key {
  padding: 14px 0;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  color: white;
  cursor: pointer;
  transition: transform 0.1s;
}
.key:active { transform: scale(0.9); }
.key-green { background: var(--success); border-radius: 50%; }
.key-red { background: var(--danger); border-radius: 50%; }
.key-orange { background: var(--warning); border-radius: 50%; }
.key-dark { background: #1e293b; }

/* === Access Section === */
.access-section { padding: 80px 0; }
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.access-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}
.access-card:hover { box-shadow: var(--shadow-lg); }
.access-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.admin-icon { background: var(--primary-light); }
.voter-icon { background: #ecfdf5; }
.access-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.access-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.access-card ul { margin-bottom: 24px; }
.access-card li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.access-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* === How it works === */
.how-it-works { padding: 80px 0; background: var(--bg); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step { text-align: center; position: relative; }
.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
}
.step-icon { margin-bottom: 16px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* === Features === */
.features { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* === Pricing === */
.pricing { padding: 80px 0; background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.popular { border-color: var(--primary); border-width: 2px; }
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.pricing-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.pricing-card ul { margin-bottom: 24px; text-align: left; }
.pricing-card li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid #f1f5f9;
  padding-left: 24px;
  position: relative;
}
.pricing-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* === CTA === */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  text-align: center;
  color: white;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.cta-section .btn-primary {
  background: white;
  color: var(--primary);
}
.cta-section .btn-primary:hover { background: #f1f5f9; }

/* === Footer === */
.footer { padding: 60px 0 32px; background: var(--text); color: #94a3b8; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand .nav-logo span { color: white; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer h4 { color: white; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer li { margin-bottom: 8px; }
.footer a { font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active, .nav-actions.active { display: flex; }

  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }

  .access-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero h1 { font-size: 2rem; }
  .section-header h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .remote-frame { width: 240px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-cta { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
