/* CSS Variables */
:root {
  --chrome-blue: #4285F4;
  --chrome-green: #34A853;
  --chrome-yellow: #FBBC05;
  --chrome-red: #EA4335;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --border-color: #dadce0;
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* Header Styles */
.header {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chrome-logo {
  width: 32px;
  height: 32px;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--chrome-blue);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--chrome-blue);
}

.download-btn {
  background-color: var(--chrome-blue);
  color: white !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.download-btn:hover {
  background-color: #3367d6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* Hero Section Styles */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 500px;
  margin-right: 4rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.primary-btn {
  background-color: var(--chrome-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.primary-btn:hover {
  background-color: #3367d6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.secondary-btn {
  background-color: transparent;
  color: var(--chrome-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  border: 1px solid var(--chrome-blue);
}

.secondary-btn:hover {
  background-color: rgba(66, 133, 244, 0.1);
}

.hero-visual {
  max-width: 500px;
}

.browser-mockup {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.browser-header {
  background-color: #f8f9fa;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.browser-controls {
  display: flex;
  gap: 0.375rem;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
}

.browser-url {
  flex: 1;
  background-color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.browser-content {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.chrome-logo-large {
  width: 150px;
  height: 150px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Features Section Styles */
.features {
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(66, 133, 244, 0.1);
}

.feature-card:nth-child(2) .feature-icon {
  background-color: rgba(52, 168, 83, 0.1);
}

.feature-card:nth-child(3) .feature-icon {
  background-color: rgba(251, 188, 5, 0.1);
}

.feature-card:nth-child(4) .feature-icon {
  background-color: rgba(234, 67, 53, 0.1);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Performance Section Styles */
.performance {
  background-color: var(--bg-secondary);
  padding: 4rem 2rem;
}

.performance-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.performance-content {
  flex: 1;
}

.performance h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.performance p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.performance-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--chrome-blue);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.performance-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-meter {
  position: relative;
  width: 200px;
  height: 200px;
}

.meter-background {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--chrome-blue) 0deg, var(--chrome-blue) 320deg, #e8f0fe 320deg, #e8f0fe 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.meter-progress {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
}

.meter-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--chrome-blue);
}

/* Security Section Styles */
.security {
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
}

.security-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.security-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-icon {
  width: 200px;
  height: 200px;
  animation: rotate 20s linear infinite;
}

.security-content {
  flex: 1;
}

.security h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.security p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.security-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.security-features li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* CTA Section Styles */
.cta {
  background: linear-gradient(135deg, var(--chrome-blue) 0%, #3367d6 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-btn {
  background-color: white;
  color: var(--chrome-blue);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  font-size: 1rem;
}

.cta-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Footer Styles */
.footer {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--chrome-blue);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(66, 133, 244, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chrome-blue);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--chrome-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Download Page Styles */
.download-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.download-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.download-hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.download-options {
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
}

.download-container {
  max-width: 1200px;
  margin: 0 auto;
}

.platform-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.platform-btn:hover {
  border-color: var(--chrome-blue);
  box-shadow: var(--shadow-light);
}

.platform-btn.active {
  background-color: var(--chrome-blue);
  color: white;
  border-color: var(--chrome-blue);
}

.platform-btn svg {
  width: 20px;
  height: 20px;
}

.platform-download {
  display: none;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.platform-download.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.download-card {
  padding: 2rem;
}

.download-card-header {
  margin-bottom: 2rem;
}

.download-card-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.download-card-header p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.download-btn-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--chrome-blue);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.download-btn-large:hover {
  background-color: #3367d6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.download-btn-large svg {
  width: 20px;
  height: 20px;
}

.download-btn-large span {
  font-weight: 500;
  font-size: 1rem;
}

.download-btn-large small {
  font-size: 0.875rem;
  opacity: 0.8;
}

.download-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.linux-download-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.linux-download-options .download-btn-large {
  flex: 1;
  min-width: 200px;
}

/* System Requirements Styles */
.system-requirements {
  padding: 4rem 2rem;
  background-color: var(--bg-secondary);
}

.requirements-container {
  max-width: 1200px;
  margin: 0 auto;
}

.requirements-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.requirement-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.requirement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.requirement-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.requirement-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.requirement-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.requirement-card li::before {
  content: '•';
  color: var(--chrome-blue);
  font-weight: bold;
  margin-top: 0.25rem;
}

/* FAQ Styles */
.faq {
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-light);
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(66, 133, 244, 0.05);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: var(--transition);
  color: var(--chrome-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-right: 0;
    margin-bottom: 3rem;
  }

  .performance-container,
  .security-container {
    flex-direction: column;
    text-align: center;
  }

  .performance-content,
  .security-content {
    order: 1;
  }

  .performance-visual,
  .security-visual {
    order: 2;
    margin-top: 2rem;
  }

  .platform-selector {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transform: translateY(-150%);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1,
  .download-hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .section-header h2,
  .performance h2,
  .security h2,
  .cta h2,
  .requirements-container h2,
  .faq-container h2 {
    font-size: 1.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .performance-stats {
    justify-content: center;
  }

  .linux-download-options {
    flex-direction: column;
  }

  .linux-download-options .download-btn-large {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }

  .hero,
  .download-hero {
    padding: 3rem 1rem;
  }

  .features,
  .performance,
  .security,
  .cta,
  .download-options,
  .system-requirements,
  .faq {
    padding: 3rem 1rem;
  }

  .hero h1,
  .download-hero-content h1 {
    font-size: 1.75rem;
  }

  .section-header h2,
  .performance h2,
  .security h2,
  .cta h2,
  .requirements-container h2,
  .faq-container h2 {
    font-size: 1.5rem;
  }

  .platform-selector {
    flex-direction: column;
  }

  .platform-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links ul {
    justify-content: center;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--chrome-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}