/* WebZFS Website Styles - Matching the Application Theme */

:root {
  /* Background layers */
  --bg-base: #0a0e14;
  --bg-elevated: #151a21;
  --bg-elevated-2: #1e252e;
  --bg-elevated-3: #2b3440;
  
  /* Text colors */
  --text-primary: #e6e9ef;
  --text-secondary: #b3b9c5;
  --text-tertiary: #6c7a89;
  --text-inverse: #0a0e14;
  
  /* Border colors */
  --border-subtle: #2b3440;
  --border-default: #3d4856;
  --border-strong: #525f6f;
  
  /* Primary (Blue) */
  --primary-50: #e6f1ff;
  --primary-100: #cce3ff;
  --primary-200: #99c7ff;
  --primary-300: #66abff;
  --primary-400: #4a9eff;
  --primary-500: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-800: #1e3a8a;
  --primary-900: #1a2f6b;
  
  /* Success (Green) */
  --success-500: #22c55e;
  --success-600: #16a34a;
  
  /* Warning (Yellow/Orange) */
  --warning-500: #f59e0b;
  
  /* Danger (Red) */
  --danger-500: #ef4444;
  
  /* Info (Cyan) */
  --info-500: #06b6d4;
  
  /* Purple */
  --purple-500: #a855f7;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo svg {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.github-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-elevated-2);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.github-link:hover {
  background-color: var(--bg-elevated-3);
  border-color: var(--border-default);
}

.github-link svg {
  width: 20px;
  height: 20px;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-base), var(--bg-elevated));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-900);
  border: 1px solid var(--primary-700);
  border-radius: 9999px;
  color: var(--primary-200);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

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

.btn-secondary {
  background-color: var(--bg-elevated-2);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-elevated-3);
  border-color: var(--border-default);
}

/* Hero Screenshot */
.hero-screenshot {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Grid */
.features-section {
  padding: 5rem 0;
  background-color: var(--bg-base);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  background-color: var(--bg-elevated-2);
  border-color: var(--border-default);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-elevated-2);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-400);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Feature Detail Section */
.feature-detail {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.feature-detail:nth-child(even) {
  background-color: var(--bg-elevated);
}

.feature-detail-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.feature-detail-content.reverse {
  grid-template-columns: 1.5fr 1fr;
}

.feature-detail-content.reverse .feature-detail-text {
  order: 2;
}

.feature-detail-content.reverse .feature-detail-image {
  order: 1;
}

@media (max-width: 768px) {
  .feature-detail-content,
  .feature-detail-content.reverse {
    grid-template-columns: 1fr;
  }
  
  .feature-detail-content.reverse .feature-detail-text,
  .feature-detail-content.reverse .feature-detail-image {
    order: unset;
  }
}

.feature-detail-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-detail-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  color: var(--success-500);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-detail-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
}

.feature-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tabs Navigation */
.tabs-section {
  padding: 3rem 0 0;
  background-color: var(--bg-base);
  position: sticky;
  top: 73px;
  z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

.tab-btn.active {
  background-color: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
}

/* Platform Support */
.platforms-section {
  padding: 5rem 0;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

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

@media (max-width: 768px) {
  .platforms-grid {
    grid-template-columns: 1fr;
  }
}

.platform-card {
  background-color: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.platform-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.platform-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-elevated-2);
  border-radius: 1rem;
}

.platform-icon svg {
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
}

/* Installation Section */
.install-section {
  padding: 5rem 0;
  background-color: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
}

.install-code {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2rem;
  overflow-x: auto;
}

.install-code pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  white-space: pre;
}

.install-code .comment {
  color: var(--text-tertiary);
}

.install-code .command {
  color: var(--primary-300);
}

/* Footer */
.footer {
  padding: 3rem 0;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Scroll Margin for Anchors */
[id] {
  scroll-margin-top: 140px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Tab Content Sections */
.tab-content {
  display: none;
  padding: 4rem 0;
}

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

/* Highlights Section */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

@media (max-width: 1024px) {
  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .highlights {
    grid-template-columns: 1fr;
  }
}

.highlight-item {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.highlight-item h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-400);
  margin-bottom: 0.5rem;
}

.highlight-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

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