/* ViKey Website - Feature-Rich Showcase + Trust & Authority Style */
/* Modern, professional design with Vietnamese support */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-secondary: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

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

a:hover {
  color: var(--primary-dark);
}

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

/* Header & Navigation */
header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #dc2626;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--gray);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: var(--radius);
  flex-direction: column;
  gap: 4px;
}

.btn-sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--light);
  border-color: var(--gray-light);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .tagline strong {
  color: var(--dark);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 14px;
}

.trust-icon {
  font-size: 18px;
}

/* Social Proof Stats */
.social-proof {
  padding: 40px 0;
  background: white;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--light);
  border: 1px solid var(--border);
}

.stat-card .stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-card .stat-label {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-title p {
  color: var(--gray);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Comparison Section */
.comparison {
  padding: 80px 0;
  background: var(--light);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--dark);
  color: white;
  font-weight: 600;
}

.comparison-table th.highlight {
  background: var(--primary);
}

.comparison-table td.highlight {
  background: #eff6ff;
  font-weight: 600;
}

.comparison-table .check {
  color: var(--secondary);
  font-weight: 700;
}

.comparison-table .cross {
  color: #ef4444;
}

.comparison-table tbody tr:hover {
  background: var(--light);
}

.comparison-table tbody tr:hover td.highlight {
  background: #dbeafe;
}

/* Features Showcase */
.features-showcase {
  padding: 80px 0;
  background: white;
}

.features-grid-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card-large {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.feature-icon-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.feature-card-large h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card-large p {
  opacity: 0.9;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.feature-list li {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  font-size: 15px;
}

/* Trust Section */
.trust-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.trust-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.trust-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--dark);
}

.trust-card p {
  color: var(--gray);
  font-size: 14px;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--light);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.testimonial-content {
  margin-bottom: 24px;
}

.testimonial-content p {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.author-info strong {
  display: block;
  color: var(--dark);
  font-size: 15px;
}

.author-info span {
  color: var(--gray);
  font-size: 13px;
}

/* Download CTA */
.download-cta {
  padding: 80px 0;
  background: var(--dark);
  color: white;
}

.download-cta .section-label {
  color: var(--secondary);
}

.download-cta .section-title h2 {
  color: white;
}

.download-cta .section-title p {
  color: var(--gray-light);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.download-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: all 0.3s;
}

.download-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.download-card-main {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--primary);
}

.download-platform {
  font-size: 48px;
}

.download-info h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.download-info p {
  color: var(--gray-light);
  margin-bottom: 8px;
}

.download-info .version {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Quick Start */
.quick-start {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.quick-start h4 {
  font-size: 20px;
  margin-bottom: 24px;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.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;
}

.step p {
  color: var(--gray-light);
  font-size: 14px;
}

.step-arrow {
  color: var(--gray);
  font-size: 24px;
}

/* Keyboard Reference */
.keyboard-reference {
  padding: 80px 0;
  background: white;
}

.shortcuts-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.shortcuts-table {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shortcuts-table table {
  width: 100%;
  border-collapse: collapse;
}

.shortcuts-table th,
.shortcuts-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.shortcuts-table th {
  background: var(--light);
  font-weight: 600;
  color: var(--dark);
}

.shortcuts-table tr:last-child td {
  border-bottom: none;
}

.shortcuts-table code {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-weight: 600;
  color: var(--primary);
}

/* Final CTA */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.final-cta h2 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.final-cta h2 span {
  opacity: 0.9;
}

.final-cta p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.final-cta .btn-primary {
  background: white;
  color: var(--primary);
}

.final-cta .btn-primary:hover {
  background: var(--light);
  transform: translateY(-2px);
}

.final-cta .btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.final-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-badges {
  display: flex;
  gap: 8px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 15px;
}

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

.footer-section a {
  color: #94a3b8;
  display: block;
  padding: 6px 0;
  font-size: 14px;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  font-size: 20px;
}

/* Legacy styles for other pages */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.download {
  padding: 80px 0;
  background: var(--dark);
  color: white;
}

.download h2 {
  color: white;
}

.download p {
  color: #94a3b8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--gray);
  font-size: 14px;
}

/* Docs styles */
.docs {
  padding: 80px 0;
}

.docs-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
}

.docs-nav {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.docs-nav ul {
  list-style: none;
}

.docs-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--gray);
  border-left: 2px solid var(--border);
  transition: all 0.2s;
}

.docs-nav a:hover,
.docs-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: #eff6ff;
}

.docs-main h3 {
  font-size: 24px;
  margin: 32px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.docs-main h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.docs-main pre {
  background: var(--dark);
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 16px 0;
}

.docs-main code {
  font-family: 'Consolas', 'Monaco', monospace;
}

/* About styles */
.about {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
}

.about-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.about-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.about-card h3 {
  margin-bottom: 16px;
}

.about-card ul {
  list-style: none;
}

.about-card li {
  padding: 8px 0;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card-large {
    grid-column: span 2;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero .tagline {
    font-size: 17px;
  }

  .hero-badge {
    gap: 8px;
  }

  .badge {
    font-size: 12px;
    padding: 4px 10px;
  }

  .trust-indicators {
    flex-direction: column;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:last-child {
    grid-column: span 2;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .features-grid-showcase {
    grid-template-columns: 1fr;
  }

  .feature-card-large {
    grid-column: span 1;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-icon-large {
    margin: 0 auto;
  }

  .feature-list {
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: 14px;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .final-cta h2 {
    font-size: 32px;
  }

  .docs-content {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card:last-child {
    grid-column: span 1;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 15px;
  }
}
