:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #0d1421;
  --bg-accent: #0f1729;
  --surface: rgba(15, 23, 41, 0.85);
  --surface-light: rgba(25, 35, 60, 0.4);
  --text-primary: #f0f6ff;
  --text-secondary: #b0bdcc;
  --text-muted: #8492a6;
  --accent-primary: #4ecdc4;
  --accent-secondary: #6a89cc;
  --accent-gradient: linear-gradient(135deg, #4ecdc4 0%, #6a89cc 100%);
  --danger: #ff6b6b;
  --success: #5bd3a6;
  --warning: #ffc44d;
  --border: rgba(78, 205, 196, 0.15);
  --border-light: rgba(255, 255, 255, 0.05);
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-accent: rgba(78, 205, 196, 0.2);
  --glow: rgba(78, 205, 196, 0.4);
  
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  background-image:
    linear-gradient(180deg, #07121a 0%, #081221 35%, #0b1624 70%, #0c1726 100%),
    radial-gradient(circle at 20% 25%, rgba(78,205,196,0.018) 0%, rgba(78,205,196,0.00) 50%),
    radial-gradient(circle at 80% 75%, rgba(106,137,204,0.013) 0%, rgba(106,137,204,0.00) 50%);
  background-repeat: no-repeat, repeat, repeat;
  background-size: cover, 360px 360px, 360px 360px;
  background-position: center center, 0 0, 180px 180px;
  color: var(--text-primary);
  font-family: inherit;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 15, 26, 0.85);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.3s ease;
}

/* Performance: blur + sticky can cause scroll jank on some devices */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .site-header {
    background: rgba(10, 15, 26, 0.95);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: none;
  }
  .brand::before { animation: none; }
}

.site-header.scrolled {
  background: rgba(10, 15, 26, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-weight: 800;
  font-size: 24px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  position: relative;
  padding-left: 40px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent-primary);
  animation: pulse 3s infinite;
}

.brand.no-icon::before{ content: none }

.brand.no-icon{ padding-left: 0 }

.brand-icon{ width:22px;height:22px;vertical-align:middle;margin-right:10px;border-radius:4px }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

nav {
  display: flex;
  gap: 32px;
}

@media (max-width: 720px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
  }
}

@media (max-width: 420px){
  .brand{ font-size: 20px }
  .brand-icon{ width: 18px; height: 18px; margin-right: 8px }
  nav a{ font-size: 14px }
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::after {
  width: 100%;
}


.lead {
  color: var(--text-secondary);
  font-size: 20px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.muted {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 600px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.7s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: var(--accent-gradient);
  color: #0a0f1a;
  box-shadow: 0 4px 20px var(--shadow-accent);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow-accent);
}

.btn.ghost {
  background: var(--surface);
  color: var(--accent-primary);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: rgba(78, 205, 196, 0.1);
  transform: translateY(-3px);
  border-color: var(--accent-primary);
}

.section {
  padding: 80px 0;
}

.section.alt {
  background: transparent;
  position: relative;
  overflow: visible;
}

.section > .container {
  position: relative;
  z-index: 1;
}

#quicklinks > .container {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.03) 0%, rgba(106, 137, 204, 0.03) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  display: inline-block;
  margin-top: 12px;
}

.card a::after {
  content: '→';
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.card a:hover::after {
  transform: translateX(4px);
}

.screenshot {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.screenshot:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(78, 205, 196, 0.2);
}

h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

p {
  margin-bottom: 16px;
}

ol, ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

li {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

li::marker {
  color: var(--accent-primary);
}

#system-requirements ul ul {
  margin-top: 8px;
  margin-bottom: 16px;
}

#system-requirements li strong {
  color: var(--text-primary);
}

#system-requirements p strong {
  color: var(--accent-primary);
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-primary);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.site-footer small {
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .footer-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}

.site-footer .footer-link{
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.site-footer .footer-link:hover{
  color: var(--text-primary);
  text-decoration: underline;
}

.site-footer .footer-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
}

@media (max-width: 520px){
  .site-footer .footer-inner{
    flex-direction: column;
    align-items: center;
  }

  .site-footer .footer-links{
    justify-content:center;
    flex-wrap: wrap;
  }
}  

.policy-text{
  white-space: pre-wrap;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 22px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

main { flex: 1 1 auto }




.mode-info {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
}


html, body {
  background-color: #07121a !important;
  background-image: linear-gradient(180deg,#07121a 0%, #0b1624 60%, #0c1726 100%) !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  color-scheme: dark !important;
}