:root {
  --bg: #07090f;
  --bg1: #0c0f17;
  --surface: #161b27;
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.10);
  --text: #e6eaf2;
  --text-2: #9aa3b2;
  --muted: #5a6477;
  --amber: #ff9d3d;
  --amber-2: #ffb86b;
  --cyan: #2ee2d3;
  --violet: #8a7dff;
  --rose: #ff5e87;
  --green: #3ed398;
  --blue: #3b82f6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Effects */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.orb-a {
  width: 600px;
  height: 600px;
  background: rgba(255,157,61,0.12);
  top: -200px;
  right: -150px;
}

.orb-b {
  width: 500px;
  height: 500px;
  background: rgba(46,226,211,0.10);
  bottom: -150px;
  left: -100px;
}

.orb-c {
  width: 400px;
  height: 400px;
  background: rgba(138,125,255,0.10);
  top: 50%;
  left: 50%;
}

.page {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(7,9,15,0.75);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--rose) 60%, var(--violet) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0a0c12;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(255,157,61,0.3);
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}

nav a.active {
  color: var(--cyan);
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  background: rgba(46,226,211,0.08);
  border: 1px solid rgba(46,226,211,0.22);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.hero-tag::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 30%, transparent 65%);
  animation: beat 2s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(120deg, #fff 0%, #fff 40%, var(--amber) 70%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 1000px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px dashed var(--line-2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-value .accent {
  color: var(--amber);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-2);
}

/* Section */
section {
  position: relative;
  padding: 100px 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--amber);
}

.section-eyebrow.cyan { color: var(--cyan); }
.section-eyebrow.cyan::before,
.section-eyebrow.cyan::after { background: var(--cyan); }
.section-eyebrow.violet { color: var(--violet); }
.section-eyebrow.violet::before,
.section-eyebrow.violet::after { background: var(--violet); }
.section-eyebrow.green { color: var(--green); }
.section-eyebrow.green::before,
.section-eyebrow.green::after { background: var(--green); }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
}

.section-title .highlight {
  color: var(--amber);
}

.section-title .cyan { color: var(--cyan); }
.section-title .violet { color: var(--violet); }
.section-title .green { color: var(--green); }

/* Category */
.category {
  margin-bottom: 80px;
}

.category:last-child {
  margin-bottom: 0;
}

.category-header {
  margin-bottom: 32px;
  text-align: center;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Project Card */
.project-card {
  position: relative;
  width: 320px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0.7;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}

.project-card.cyan::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.project-card.violet::before { background: linear-gradient(90deg, var(--violet), transparent); }
.project-card.green::before { background: linear-gradient(90deg, var(--green), transparent); }

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

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,157,61,0.12);
  border: 1px solid rgba(255,157,61,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.project-card.cyan .project-icon {
  background: rgba(46,226,211,0.10);
  border-color: rgba(46,226,211,0.25);
}

.project-card.violet .project-icon {
  background: rgba(138,125,255,0.10);
  border-color: rgba(138,125,255,0.25);
}

.project-card.green .project-icon {
  background: rgba(62,211,152,0.10);
  border-color: rgba(62,211,152,0.25);
}

.project-card-info {
  flex: 1;
  min-width: 0;
}

.project-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.project-card .tagline {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

.project-card .meta {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-2);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge-enterprise {
  background: rgba(255,157,61,0.12);
  color: var(--amber);
  border: 1px solid rgba(255,157,61,0.25);
}

.badge-opensource {
  background: rgba(46,226,211,0.10);
  color: var(--cyan);
  border: 1px solid rgba(46,226,211,0.22);
}

/* Project Detail */
.project-detail {
  padding: 120px 0 80px;
}

.project-header {
  margin-bottom: 48px;
}

.project-header-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.project-header-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: rgba(255,157,61,0.12);
  border: 1px solid rgba(255,157,61,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.project-header-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: #fff;
}

.project-header-content .description {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 20px;
  max-width: 640px;
  line-height: 1.7;
}

.project-header-content .meta {
  display: flex;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-header-content .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  font-family: inherit;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #0a0c12;
  box-shadow: 0 8px 24px rgba(255,157,61,0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,157,61,0.42);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: #fff;
}

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

/* Tabs */
.tabs {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.tab-list {
  display: flex;
  gap: 4px;
}

.tab-btn {
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  border-radius: 8px 8px 0 0;
  transition: all 0.15s;
}

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

.tab-btn.active {
  color: var(--amber);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--rose));
}

.tab-content {
  display: none;
}

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

/* Content Sections */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--line-2);
}

.feature-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

/* Changelog */
.changelog {
  max-width: 720px;
}

.changelog-entry {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.changelog-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

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

.changelog-header .version {
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(255,157,61,0.12);
  color: var(--amber);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.changelog-header .date {
  font-size: 0.8125rem;
  color: var(--muted);
}

.changelog-entry ul {
  list-style: none;
  padding: 0;
}

.changelog-entry li {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.changelog-entry li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* Code Block */
pre {
  background: var(--surface);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

code {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--text);
}

/* Guide */
.guide {
  max-width: 720px;
}

.guide h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: #fff;
}

.guide p {
  color: var(--text-2);
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Downloads */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.download-item:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,0.03);
}

.download-item .platform {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.download-item code {
  font-size: 0.75rem;
  color: var(--muted);
  background: transparent;
}

.download-item .size {
  font-size: 0.75rem;
  color: var(--text-2);
  white-space: nowrap;
  background: rgba(255,255,255,0.03);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
}

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

.site-footer p {
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 140px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-header-inner {
    flex-direction: column;
  }

  .project-header-icon {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }

  .tab-list {
    overflow-x: auto;
  }

  .project-header-content .actions {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    gap: 24px;
  }
}
