/* OpenArise IDE – Official Download Page Stylesheet
   Design Philosophy: Clean, minimal, professional software download hub
   Inspired by: Google Antigravity download page aesthetic */

:root {
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-code: #f1f5f9;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --primary-focus: rgba(26, 115, 232, 0.2);
  --success: #16a34a;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --container-max: 1120px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--bg-code);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Sections Common */
.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* Download Hero Section */
.section-download {
  padding: 80px 0 64px 0;
  text-align: center;
}

.download-hero {
  max-width: 860px;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px auto;
  line-height: 1.5;
}

/* Notice Banner */
.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9375rem;
  margin-bottom: 36px;
}

.notice-banner.notice-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.notice-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Download Cards Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  text-align: left;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.download-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.card-primary {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.platform-icon {
  width: 48px;
  height: 48px;
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: #1e40af;
}

.tag-neutral {
  background-color: #f1f5f9;
  color: #475569;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.card-actions {
  margin-bottom: 16px;
}

.checksum-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-alt);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
}

.checksum-label {
  color: var(--text-light);
  font-weight: 600;
}

.checksum-code {
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-grow: 1;
}

.btn-copy {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 2px 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.btn-copy:hover {
  color: var(--text-main);
  border-color: #94a3b8;
}

.btn-copy.copied {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.download-subtext {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  width: 100%;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  text-decoration: none;
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: #cbd5e1;
  text-decoration: none;
  color: var(--text-main);
}

.btn-outline-sm {
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.btn-outline-sm:hover {
  background: #eff6ff;
  text-decoration: none;
}

/* System Requirements Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.spec-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.spec-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.spec-detail {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Steps Flow */
.steps-flow {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.code-prompt {
  color: var(--text-light);
  user-select: none;
}

.code-box code {
  background: transparent;
  border: none;
  padding: 0;
  flex-grow: 1;
}

.btn-copy-code {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  color: var(--text-main);
  border-color: #94a3b8;
}

.btn-copy-code.copied {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

/* Genuine Preview Window */
.preview-container {
  max-width: 960px;
  margin: 0 auto 48px auto;
}

.preview-window {
  background: #17191f;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.window-chrome {
  background: #20232b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2d3748;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.chrome-title {
  color: #94a3b8;
  font-size: 0.8125rem;
  margin-left: 8px;
  font-weight: 500;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Documentation Sections */
.docs-nav-bar {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.docs-nav-item {
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.docs-nav-item:hover {
  color: var(--text-main);
  text-decoration: none;
}

.docs-nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.docs-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.doc-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  scroll-margin-top: 80px;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.doc-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
}

.doc-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.doc-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.doc-body h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 10px 0;
}

.doc-body p {
  margin-bottom: 14px;
}

.doc-body ul {
  margin: 0 0 18px 20px;
}

.doc-body li {
  margin-bottom: 6px;
}

.table-responsive {
  overflow-x: auto;
  margin: 16px 0;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.doc-table th, .doc-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
}

.doc-table th {
  background-color: var(--bg-alt);
  color: var(--text-main);
  font-weight: 600;
}

.doc-table td {
  background-color: #ffffff;
}

/* Footer */
.site-footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  border-radius: 4px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-ver {
  font-size: 0.8125rem;
  color: var(--text-light);
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 9999px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    padding: 12px 0;
  }
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1.0625rem;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .doc-section {
    padding: 24px;
  }
  .doc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

