:root {
  --accent: #ff0033;
  --accent-hover: #ff3366;
  --bg: #0a0a0a;
  --bg-secondary: #111;
  --bg-tertiary: #1a1a1a;
  --text: #fff;
  --text-secondary: #999;
  --text-tertiary: #666;
  --border: #222;
  --shadow: rgba(0, 0, 0, 0.5);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Active state for touch devices */
.main-nav a:active {
  color: var(--text);
}

.main-nav a:active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6699 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Download Section */
.download-section {
  padding: 4rem 0;
}

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

.download-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 0, 51, 0.2);
}

.download-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.1) 0%, rgba(139, 0, 139, 0.05) 100%);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card-icon.windows {
  background: linear-gradient(135deg, #0078d4 0%, #0063b1 100%);
  color: white;
}

.card-icon.apple {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: white;
}

.card-icon.linux {
  background: linear-gradient(135deg, #FCC624 0%, #F59600 100%);
  color: #000;
}

.card-icon.android {
  background: linear-gradient(135deg, #3DDC84 0%, #2AB564 100%);
  color: white;
}

.card-icon.ios {
  background: linear-gradient(135deg, #147ce5 0%, #0c62bf 100%);
  color: white;
}

.card-icon.web {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6699 100%);
  color: white;
}

.download-card h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-download:hover::before {
  width: 300px;
  height: 300px;
}

.btn-download:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 51, 0.3);
}

.btn-download:disabled {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.btn-download:disabled::before {
  display: none;
  transform: none;
  box-shadow: none;
}

.btn-download svg {
  width: 20px;
  height: 20px;
}

.version {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Platform Switcher */
.platform-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 10px;
  margin-top: auto;
}

.platform-tab {
  flex: 1;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.platform-tab.active {
  background: var(--accent);
  color: white;
}

.platform-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
}

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

/* Footer */
.download-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-info p {
  color: var(--text-secondary);
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1rem;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-tertiary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .site-header {
    padding: 1rem 1.5rem;
    flex-direction: row;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.4rem;
  }

  .main-nav {
    gap: 1rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .download-card {
    padding: 2rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .card-icon svg {
    width: 30px;
    height: 30px;
  }

  .download-card h3 {
    font-size: 1.3rem;
  }

  .download-card p {
    font-size: 0.85rem;
  }

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

  .platform-switcher {
    margin-top: 1rem;
  }

  .platform-tab {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .version {
    font-size: 0.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.3rem;
  }

  .main-nav {
    gap: 0.75rem;
  }

  .main-nav a {
    font-size: 0.8rem;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

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

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .downloads-grid {
    gap: 1.25rem;
  }

  .download-card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 50px;
    height: 50px;
  }

  .card-icon svg {
    width: 24px;
    height: 24px;
  }

  .download-card h3 {
    font-size: 1.15rem;
  }

  .btn-download {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .platform-tab {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
  }
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--text);
  transform: translateX(3px);
}

.footer-links a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
