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

:root {
  --primary: #0066FF;
  --primary-light: #4D94FF;
  --accent: #00D4AA;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-soft: #fafbfc;
  --border: #e6e9ef;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 12px;
  --space: 1.5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header */
.header {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.header-content { position: relative; z-index: 1; }

.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

/* Tagline Highlight Box */
.tagline-box {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  backdrop-filter: blur(10px);
}

.tagline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tagline-subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0;
}

/* Main Content */
.main-content {
  margin: -2rem auto 0;
  background: white;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.section {
  padding: 3rem var(--space);
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* White headings for dark backgrounds */
h2.white {
  color: white;
}

h2.white::after {
  display: none;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

h3.white {
  color: white;
  margin-top: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Lists */
.content-list {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

/* Links */
a.accent {
  color: var(--accent);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-soft);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
}

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

/* Install Section */
.install-section {
  background: linear-gradient(135deg, var(--text-dark), #2a2a2a);
  color: white;
  border-radius: var(--radius);
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.install-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

.install-content { position: relative; z-index: 1; }

.command-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.command-tab {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  cursor: pointer;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  position: relative;
  margin-right: 2px;
}

.command-tab:last-child {
  margin-right: 0;
}

.command-tab.active {
  background: #1a1a1a;
  color: #e6e6e6;
  border-color: rgba(255,255,255,0.1);
  border-bottom: 1px solid #1a1a1a;
  z-index: 1;
}

.command-tab:hover:not(.active) {
  background: rgba(255,255,255,0.1);
  color: white;
}

.command-content { display: none; }
.command-content.active { display: block; }

.code-block {
  background: #1a1a1a;
  color: #e6e6e6;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9rem;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}

.command-content .code-block {
  border-radius: 0 8px 8px 8px;
  margin: 0 0 1rem 0;
  border-top: none;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.copy-btn:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  padding: 3rem var(--space);
  text-align: center;
  background: var(--bg-soft);
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header { padding: 3rem 0 2rem; }
  h1 { font-size: 2.5rem; }
  .section { padding: 2rem var(--space); }
  .install-section { padding: 2rem; margin: 2rem 0; }
  .command-tabs {
    flex-direction: column;
    gap: 0.25rem;
  }
  .copy-btn {
    position: static;
    display: block;
    margin-bottom: 0.75rem;
    width: fit-content;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Selection color */
::selection {
  background: var(--accent);
  color: white;
}
