:root {
  --bg: #080b18;
  --bg2: #0c1025;
  --bg3: #111635;
  --bg4: #161d45;
  --border: #1a2250;
  --text: #eef2ff;
  --text2: #94a3c8;
  --text3: #4a5580;
  --blue: #3b82f6;
  --blue2: #2563eb;
  --purple: #8b5cf6;
  --green: #22c55e;
  --yellow: #fbbf24;
  --orange: #f59e0b;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xl: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --nav-h: 62px;
  --glow-blue: 0 0 30px rgba(59, 130, 246, 0.15);
  --glow-purple: 0 0 30px rgba(139, 92, 246, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: #60a5fa; }
::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }

[dir=rtl] .nav-links { direction: rtl; }
[dir=rtl] .mission-grid, [dir=rtl] .faq-layout, [dir=rtl] .hero-grid { direction: rtl; }
[dir=rtl] .proj-search svg { order: 1; }
[dir=rtl] .lang-chev, [dir=rtl] .back-btn svg, [dir=rtl] .fchev, [dir=rtl] .see-all svg, [dir=rtl] .fb-cta svg, [dir=rtl] .float-back svg, [dir=rtl] #btt svg { transform: rotate(180deg); }
[dir=rtl] .btn-ghost svg { margin-left: 6px; margin-right: 0; }
[dir=rtl] .btn-primary svg { margin-left: 8px; margin-right: 0; }

input, button, textarea, select { font: inherit; color: inherit; }

/* Particles */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 24, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text) !important;
}

.logo-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.logo-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.logo-name span { color: var(--blue); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(59, 130, 246, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--text3); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-code { font-weight: 600; color: var(--text2); }
.lang-chev { color: var(--text3); transition: transform var(--transition); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  display: none;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  transition: all var(--transition);
}
.lang-dropdown button:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text);
}

.launcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}
.launcher-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(8, 11, 24, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.mobile-nav a:hover { background: rgba(59, 130, 246, 0.08); }
.mn-close {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text3);
  font-family: var(--mono);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 24px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  z-index: 200;
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.kb-hint {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 12px;
  color: var(--text3);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.kb-hint:hover {
  border-color: var(--text3);
  color: var(--text2);
}
.kb-hint kbd {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 11px;
}

/* Launcher view */
.launcher-view {
  display: none;
  padding: 40px 0 60px;
}
.launcher-view.active { display: block; }

.launcher-header { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.launcher-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.06);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 20px;
}
.lb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-ring 2s ease-in-out infinite;
}
.lb-ver {
  color: var(--text3);
}

.launcher-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.lt-word { display: inline; }
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease-in-out infinite;
}

.launcher-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.launcher-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.ls-item { text-align: center; }
.ls-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.ls-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
}
.ls-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.launcher-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  font-family: var(--mono);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.ap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.ap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.ap:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}
.ap:hover::before { opacity: 1; }
.ap-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.ap-n {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.ap-d {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.ap-t {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Iframe view */
.iframe-view { display: none; flex: 1; }
.iframe-view.active { display: flex; }
.iframe-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: calc(100vh - var(--nav-h));
}
.iframe-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.back-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.iframe-title {
  font-size: 13px;
  font-weight: 700;
  flex: 1;
}
.iframe-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text3);
  transition: color var(--transition);
}
.site-link:hover { color: var(--blue); }
.iframe-container {
  flex: 1;
  width: 100%;
  border: none;
}

/* Fullscreen */
.fullscreen-mode {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: none;
}
.fullscreen-mode.open { display: block; }
.fullscreen-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.float-back {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 24, 0.9);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.float-back:hover { border-color: var(--blue); color: var(--blue); }

/* Wiki views */
.wiki-view { display: none; padding: 40px 0 60px; }
.wiki-view.active { display: block; }
.wiki-header { text-align: center; max-width: 600px; margin: 0 auto 32px; }
.wiki-bread {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 8px;
}
.wiki-count { color: var(--text2); }
.wiki-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text), var(--text2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wiki-sub { font-size: 14px; color: var(--text2); }
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.wiki-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid var(--wc-color, var(--blue));
}
.wiki-card:hover {
  border-color: var(--wc-color, var(--blue));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.wc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.wc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--wc-bg, rgba(59, 130, 246, 0.1));
  color: var(--wc-color, var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 14px;
}
.wc-name { font-weight: 700; font-size: 14px; flex: 1; }
.wc-lang {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--wc-bg, rgba(59, 130, 246, 0.1));
  color: var(--wc-color, var(--blue));
}
.wc-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.wc-bot {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text3);
  font-family: var(--mono);
}

/* Wiki detail */
.wiki-detail-view { display: none; }
.wiki-detail-view.active { display: block; }
.wd-hero {
  background: linear-gradient(135deg, var(--wd-bg, rgba(59, 130, 246, 0.05)), transparent);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.wd-hero-inner { max-width: 800px; }
.wd-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.wd-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--wd-bg, rgba(59, 130, 246, 0.1));
  color: var(--wd-color, var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
}
.wd-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2px;
}
.wd-lang {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--wd-bg, rgba(59, 130, 246, 0.1));
  color: var(--wd-color, var(--blue));
}
.wd-desc { font-size: 14px; color: var(--text2); margin-bottom: 16px; }
.wd-meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 16px;
}
.wd-gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text) !important;
  transition: all var(--transition);
}
.wd-gh-link:hover {
  border-color: var(--wd-color, var(--blue));
  color: var(--wd-color, var(--blue)) !important;
}
.wd-body { max-width: 800px; padding: 32px 20px; }
.wd-section { margin-bottom: 32px; }
.wd-sec-h {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  font-family: var(--mono);
  margin-bottom: 12px;
}
.wd-sec-p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
}
.wd-sec-p a { color: var(--blue); }
.wd-sec-p code {
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
}
.wd-sec-p pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
}
.wd-sec-p img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.wd-sec-p h2, .wd-sec-p h3, .wd-sec-p h4 { color: var(--text); margin: 20px 0 8px; }
.wd-sec-p h2 { font-size: 1.2rem; }
.wd-sec-p h3 { font-size: 1.05rem; }
.wd-sec-p h4 { font-size: 0.95rem; }
.wd-sec-p ul, .wd-sec-p ol { padding-left: 20px; margin: 8px 0; }
.wd-sec-p li { margin: 4px 0; }
.wd-sec-p strong { color: var(--text); }
.wd-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.wd-detail-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}
.wd-di-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.wd-di-value {
  font-weight: 700;
  font-size: 14px;
}

/* Hero */
.hero {
  padding: 80px 0;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: rgba(59, 130, 246, 0.05);
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 24px;
  animation: fade-up 0.6s ease;
}
.bdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  animation: pulse-ring 2s ease-in-out infinite;
}
.hero-h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fade-up 0.6s ease 0.1s both;
}
.hero-h1 span {
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradient-shift 6s ease-in-out infinite;
}
.hero-p {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fade-up 0.6s ease 0.2s both;
}
.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: fade-up 0.6s ease 0.3s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.35);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(59, 130, 246, 0.05);
}
.btn-share {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.btn-share:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(59, 130, 246, 0.05);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fade-up 0.6s ease 0.4s both;
}
.stat-wrap { text-align: center; }
.stat-n {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text), var(--text2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-l {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
}

/* Showcase */
.showcase-section { padding: 60px 0; }
.fb-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 20px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.sc-card {
  --sc-color: #1e3a5f;
  --sc-accent: #3b82f6;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}
.sc-card-inner {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
}
.sc-card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sc-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.sc-card:hover .sc-card-inner {
  border-color: var(--sc-accent);
  transform: translateY(-3px);
  box-shadow: 0 0 30px color-mix(in srgb, var(--sc-accent) 15%, transparent);
}
.sc-card:hover .sc-card-inner::before { opacity: 1; }
.sc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sc-accent) 12%, transparent);
  color: var(--sc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--sc-accent) 20%, transparent);
}
.sc-name {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
}
.sc-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.sc-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--sc-accent) 10%, transparent);
  color: var(--sc-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: inline-block;
}

/* Projects */
.projects { padding: 60px 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.sec-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.sec-sub {
  font-size: 13px;
  color: var(--text2);
}
.see-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  flex-shrink: 0;
  transition: color var(--transition);
}
.see-all:hover { color: var(--blue); }

.proj-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.proj-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  flex: 1;
  max-width: 320px;
  transition: border-color var(--transition);
}
.proj-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}
.proj-search input {
  background: none;
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
  color: var(--text);
}
.proj-search input::placeholder { color: var(--text3); }
.proj-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.proj-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.proj-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}
.pc-forked {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pc-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
}
.pc-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
}
.pc-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pc-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
}
.pc-bot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text3);
  font-family: var(--mono);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.pc-bot svg { vertical-align: middle; margin-right: 3px; }

.skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.skel {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skel-bar {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg4) 25%, var(--bg3) 50%, var(--bg4) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.skel-bar:nth-child(1) { width: 60%; }
.skel-bar:nth-child(2) { width: 90%; }
.skel-bar:nth-child(3) { width: 40%; }
.skel-bar:nth-child(4) { width: 75%; }

/* Mission */
.mission { padding: 80px 0; }
.mission-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.mission-h {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 20px;
}
.mission-h em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mission-p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.founder {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.founder-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.founder-name {
  font-weight: 700;
  font-size: 14px;
}
.founder-role {
  font-size: 12px;
  color: var(--text2);
}

.mission-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ms {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.ms:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}
.ms-n {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ms-l {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
}

/* FAQ */
.faq { padding: 60px 0; }
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fi {
  border-bottom: 1px solid var(--border);
}
.fq {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.fq:hover { color: var(--blue); }
.fchev {
  flex-shrink: 0;
  color: var(--text3);
  transition: transform var(--transition);
}
.fi.open .fchev { transform: rotate(180deg); }
.fa {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}
.fi.open .fa {
  max-height: 200px;
  padding-bottom: 18px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 48px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.fb { display: flex; flex-direction: column; gap: 14px; }
.fl { display: flex; align-items: center; gap: 10px; }
.fl-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.fl-t {
  font-weight: 700;
  font-size: 15px;
}
.fb-d {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 300px;
}
.soc {
  display: flex;
  gap: 6px;
}
.sb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all var(--transition);
}
.sb:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(59, 130, 246, 0.05);
}
.fc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fc h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  font-family: var(--mono);
  margin-bottom: 4px;
}
.fc a {
  font-size: 13px;
  color: var(--text2);
  transition: color var(--transition);
}
.fc a:hover { color: var(--blue); }
.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
  font-family: var(--mono);
}

/* Hero Mock Terminal */
.hero-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-up 0.6s ease 0.3s both;
}

.mock-terminal {
  width: 100%;
  max-width: 440px;
  background: rgba(12, 16, 37, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.08), 0 20px 60px rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
  transition: all var(--transition);
}

.mock-terminal:hover {
  box-shadow: 0 0 80px rgba(59, 130, 246, 0.15), 0 20px 60px rgba(0,0,0,0.4);
  border-color: rgba(59, 130, 246, 0.2);
}

.mock-term-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(8, 11, 24, 0.6);
  border-bottom: 1px solid var(--border);
}

.mock-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock-term-dot.red { background: #ff5f56; }
.mock-term-dot.yellow { background: #ffbd2e; }
.mock-term-dot.green { background: #27c93f; }

.mock-term-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

.mock-term-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

.mock-line { margin-bottom: 2px; }
.mock-prompt { color: var(--green); margin-right: 6px; }
.mock-cmd { color: var(--text); }
.mock-output { color: var(--text2); padding-left: 16px; }
.mock-green { color: var(--green); }

.blink {
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Live Demo */
.demo-section {
  padding: 80px 0;
  text-align: center;
}
.demo-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
}
.demo-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--text), var(--text2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.demo-mock {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(12, 16, 37, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.06);
  backdrop-filter: blur(20px);
}
.demo-mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(8, 11, 24, 0.5);
  border-bottom: 1px solid var(--border);
}
.demo-mock-dots {
  display: flex;
  gap: 7px;
}
.dm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.demo-mock-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-left: 6px;
}
.demo-mock-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dm-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fade-up 0.4s ease both;
}
.dm-msg:nth-child(1) { animation-delay: 0.1s; }
.dm-msg:nth-child(2) { animation-delay: 0.3s; }
.dm-msg:nth-child(3) { animation-delay: 0.5s; }
.dm-msg:nth-child(4) { animation-delay: 0.7s; }
.dm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.dm-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 85%;
}
.dm-bubble-user {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--text);
}
.dm-bubble-assistant {
  background: rgba(22, 29, 69, 0.6);
  border: 1px solid var(--border);
  color: var(--text2);
}
.dm-cmd {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}
.dm-bubble strong { color: var(--text); }
.dm-tool-call {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--yellow);
  margin-bottom: 4px;
}
.dm-tool-result {
  display: block;
  font-size: 12px;
  color: var(--text3);
}

/* BTT */
#btt {
  position: fixed;
  bottom: 24px;
  right: 70px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
#btt.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#btt:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.float-share {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.float-share:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Shortcuts modal */
.shortcuts-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.shortcuts-modal.open { opacity: 1; }
.shortcuts-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.shortcuts-box h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.sc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text2);
}
.sc-item kbd {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}
.shortcuts-close {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg4);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.shortcuts-close:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.7; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3);
}
.glass {
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Media Queries */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-mock { order: -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .launcher-btn span { display: none; }
  .mission-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat-n { font-size: 28px; }
  .hero { padding: 48px 0; }
  .proj-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .kb-hint { display: none; }
  .mock-terminal { max-width: 100%; }
}

@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-h1 { font-size: 2rem; }
}
