/* ==========================================================================
   GTA SA OPEN DOWNGRADER - VERCEL / GEIST DESIGN
   ========================================================================== */

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-hover: #121212;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text-main: #ededed;
  --text-muted: #888888;
  --text-dim: #555555;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.06), transparent 70%);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.nav-by {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
}

.nav-by a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.nav-by a:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.15s ease;
}

.btn-github:hover {
  color: #ffffff;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  padding: 64px 0 40px 0;
  text-align: center;
}

.announcement {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 24px;
  transition: all 0.15s ease;
}

.announcement:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

.announcement-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 auto 16px auto;
  line-height: 1.1;
  max-width: 680px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 auto 28px auto;
  line-height: 1.6;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #ffffff;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  padding: 0 18px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.hero-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
}

/* App Showcase */
.showcase {
  margin: 24px 0 44px 0;
  text-align: center;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Section Styling */
.section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

/* Releases Grid */
.releases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.release-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.release-card:hover {
  border-color: var(--border-hover);
}

.release-card-top {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.01);
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-icon {
  font-size: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.platform-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.platform-req {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.release-rows {
  display: flex;
  flex-direction: column;
}

.release-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.15s ease;
}

.release-row:last-child {
  border-bottom: none;
}

.release-row:hover {
  background: var(--surface-hover);
}

.row-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.row-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.row-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.row-btn.primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.row-btn.primary:hover {
  opacity: 0.9;
}

.row-btn.secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.row-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

/* Extra links bar */
.extra-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
}

.extra-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.extra-links a:hover {
  color: #ffffff;
}

/* Proton Command Card */
.command-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  overflow-x: auto;
  white-space: nowrap;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-copy:hover {
  color: #ffffff;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* Community Callout */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}

.callout strong {
  color: var(--text-main);
}

.callout a {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.callout a:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-muted);
  margin-left: 14px;
}

.footer a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 680px) {
  .hero h1 {
    font-size: 32px;
  }
  .releases-grid {
    grid-template-columns: 1fr;
  }
  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer a {
    margin: 0 8px;
  }
}