/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Smooth scrolling only for non-reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ============ Tab system ============ */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .tab-content { animation: none; }
}

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

/* ============ Navigation ============ */
.tab-btn {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #737373;
  border-radius: 0.5rem;
  transition: color 0.15s, background-color 0.15s;
  border: none;
  background: none;
  cursor: pointer;
}

.tab-btn:hover {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn-mobile {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #737373;
  border-radius: 0.5rem;
  transition: color 0.15s, background-color 0.15s;
  border: none;
  background: none;
  cursor: pointer;
}

.tab-btn-mobile:hover,
.tab-btn-mobile.active {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.06);
}

/* ============ Hero gradient ============ */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    linear-gradient(to bottom, #0a0a0a, #141414);
}

/* ============ CTAs ============ */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: #fafafa;
  color: #0a0a0a;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
}

.cta-primary:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.08);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: #a3a3a3;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.cta-secondary:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============ Quick cards (Home) ============ */
.quick-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.2s;
}

.quick-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.quick-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* ============ Workflow showcase ============ */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #a3a3a3;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.screenshot-img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-img:hover { transform: none; }
}

/* ============ Feature cards ============ */
.feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.15s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.feature-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: #737373;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alternate icon colors — subtle warm neutrals */
.feature-card:nth-child(3n+1) .feature-icon {
  color: #a3a3a3;
}

.feature-card:nth-child(3n+2) .feature-icon {
  color: #737373;
}

.feature-card:nth-child(3n) .feature-icon {
  color: #525252;
}

/* ============ Kbd ============ */
.kbd {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  line-height: 1.4;
}

/* ============ Download cards ============ */
.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.2s;
}

.download-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.download-card.featured {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), #141414);
}

.download-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #525252;
  margin-bottom: 1rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: #fafafa;
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.download-btn:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .quick-card:hover,
  .feature-card:hover,
  .download-card:hover,
  .cta-primary:hover,
  .download-btn:hover {
    transform: none;
  }

  .tab-content {
    animation: none;
  }
}
