/* ===== CSS Variables & Reset ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --text-primary: #f0f0f5;
  --text-secondary: #9494a8;
  --text-muted: #5c5c72;
  --accent-1: #6c5ce7;
  --accent-2: #00cec9;
  --accent-3: #fd79a8;
  --gradient: linear-gradient(135deg, #6c5ce7, #00cec9);
  --gradient-text: linear-gradient(135deg, #6c5ce7, #00cec9, #fd79a8);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== Particle Canvas ===== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: var(--transition); background: transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 12px 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 1.4rem; font-weight: 800; font-family: var(--font-mono); letter-spacing: -0.5px; }
.logo-bracket { color: var(--text-muted); }
.logo-accent {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient); transition: var(--transition); border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  padding: 10px 24px; background: var(--gradient); border: none;
  border-radius: 8px; color: white; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center;
}
.nav-cta:hover {
  opacity: 0.9; transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001;
}
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 15, 0.97); backdrop-filter: blur(20px);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.mobile-link { font-size: 1.8rem; font-weight: 700; color: var(--text-secondary); transition: var(--transition); }
.mobile-link:hover { color: var(--text-primary); }

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 24px 80px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(100px);
  opacity: 0.15; animation: float 8s ease-in-out infinite;
}
.glow-1 { width: 600px; height: 600px; background: var(--accent-1); top: -200px; right: -100px; }
.glow-2 { width: 500px; height: 500px; background: var(--accent-2); bottom: -200px; left: -100px; animation-delay: 3s; }
.glow-3 { width: 400px; height: 400px; background: var(--accent-3); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 5s; opacity: 0.08; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

.hero-content { text-align: center; max-width: 800px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2); border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; color: var(--accent-1); margin-bottom: 24px;
}
.badge-dot { width: 8px; height: 8px; background: var(--accent-2); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px;
}
.gradient-text {
  background: var(--gradient-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 24px; line-height: 1.7;
}

/* Typing Animation */
.hero-typing {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: rgba(0,0,0,0.4);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.9rem; margin-bottom: 32px;
}
.typing-prefix { color: var(--accent-2); font-weight: 700; }
.typing-text { color: var(--text-primary); }
.typing-cursor {
  color: var(--accent-1); animation: blink 1s step-end infinite; font-weight: 700;
}

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

.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 64px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: var(--transition); border: none;
}
.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-hover); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--text-muted); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 40px; }
.stat { text-align: center; }
.stat-number, .stat-plus {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.8rem;
}
.mouse { width: 24px; height: 38px; border: 2px solid var(--text-muted); border-radius: 12px; position: relative; }
.mouse-wheel {
  width: 3px; height: 8px; background: var(--text-muted); border-radius: 3px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ===== Section Styles ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(108, 92, 231, 0.1); border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  color: var(--accent-1); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

/* ===== Services Section ===== */
.services { padding: 120px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient); opacity: 0; transition: var(--transition);
}
.service-card:hover {
  background: var(--bg-card-hover); border-color: var(--border-hover);
  transform: translateY(-4px); box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: rgba(108, 92, 231, 0.1); border-radius: 14px;
  margin-bottom: 20px; color: var(--accent-1);
}
.service-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.service-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  padding: 4px 12px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
}

/* ===== Terminal Section ===== */
.terminal-section { padding: 0 0 120px; }
.terminal-window {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  max-width: 800px; margin: 0 auto;
}
.terminal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
}
.terminal-body {
  padding: 24px; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.8;
  min-height: 300px;
}
.terminal-line { margin-bottom: 4px; }
.terminal-prompt { color: var(--accent-2); margin-right: 8px; }
.terminal-cmd { color: var(--text-primary); }
.terminal-output { color: var(--text-secondary); margin-bottom: 16px; padding-left: 0; }
.terminal-json { color: var(--text-muted); font-size: 0.8rem; line-height: 1.6; }
.terminal-success { color: var(--accent-2); }
.terminal-input-line { display: flex; align-items: center; }
.terminal-input {
  background: none; border: none; color: var(--text-primary);
  font-family: var(--font-mono); font-size: 0.85rem; outline: none;
  flex: 1; caret-color: var(--accent-1);
}
.terminal-input::placeholder { color: var(--text-muted); }

/* ===== Work / Portfolio Section ===== */
.work { padding: 120px 0; background: var(--bg-secondary); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.work-card-large { grid-column: span 2; }
.work-card-image { width: 100%; aspect-ratio: 16/7; position: relative; display: flex; align-items: flex-end; }
.work-card:not(.work-card-large) .work-card-image { aspect-ratio: 16/10; }
.work-card-overlay {
  position: relative; z-index: 1; padding: 32px; width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.work-category {
  display: inline-block; padding: 4px 12px;
  background: rgba(108, 92, 231, 0.3); border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; color: var(--accent-1); margin-bottom: 8px;
}
.work-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.work-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; max-width: 500px; }
.work-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.work-tech span {
  padding: 3px 10px; background: rgba(255, 255, 255, 0.1);
  border-radius: 4px; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary);
}

/* ===== Process Section ===== */
.process { padding: 120px 0; }
.process-timeline { max-width: 700px; margin: 0 auto; position: relative; }
.process-timeline::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.process-step {
  display: flex; gap: 32px; margin-bottom: 48px; position: relative;
}
.process-step:last-child { margin-bottom: 0; }
.process-number {
  width: 58px; height: 58px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 2px solid var(--accent-1);
  border-radius: 50%; font-family: var(--font-mono);
  font-weight: 700; font-size: 0.9rem; color: var(--accent-1);
  position: relative; z-index: 1;
}
.process-content { padding-top: 8px; }
.process-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.process-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== Open Source Section ===== */
.opensource { padding: 120px 0; background: var(--bg-secondary); }

.contribution-graph {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 48px;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.contribution-header { margin-bottom: 16px; }
.contribution-count { font-size: 0.9rem; color: var(--text-secondary); }
.contribution-grid {
  display: grid; grid-template-columns: repeat(52, 1fr);
  gap: 3px; margin-bottom: 12px;
}
.contrib-cell {
  aspect-ratio: 1; border-radius: 2px;
  background: rgba(108, 92, 231, 0.08);
  transition: var(--transition);
}
.contrib-cell:hover { outline: 2px solid var(--accent-1); outline-offset: 1px; }
.contribution-legend {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; font-size: 0.75rem; color: var(--text-muted);
}
.legend-scale { display: flex; gap: 3px; }
.legend-box { width: 12px; height: 12px; border-radius: 2px; }

.oss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.oss-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
}
.oss-card:hover {
  background: var(--bg-card-hover); border-color: var(--border-hover);
  transform: translateY(-2px);
}
.oss-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.oss-header svg { color: var(--text-muted); }
.oss-stars { font-size: 0.85rem; color: var(--text-muted); }
.oss-name {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 8px;
  font-family: var(--font-mono); color: var(--accent-1);
}
.oss-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.oss-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted);
}
.oss-lang-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.oss-separator { opacity: 0.3; }

/* ===== About Section ===== */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-features { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.about-feature { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; }
.about-feature-icon {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 206, 201, 0.15); border-radius: 8px;
  color: var(--accent-2); flex-shrink: 0;
}

/* Code Window */
.code-window {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.code-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-filename { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.code-body { padding: 24px; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.8; overflow-x: auto; }
.code-keyword { color: var(--accent-1); }
.code-string { color: var(--accent-2); }
.code-var { color: #dcdcaa; }
.code-prop { color: var(--text-primary); }
.code-fn { color: #dcdcaa; }
.code-bool { color: var(--accent-3); }

/* ===== Testimonials ===== */
.testimonials { padding: 120px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-hover); transform: translateY(-2px);
}
.testimonial-stars { color: #f1c40f; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 24px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: white; flex-shrink: 0;
}
.testimonial-name { display: block; font-weight: 600; font-size: 0.9rem; }
.testimonial-role { display: block; font-size: 0.8rem; color: var(--text-muted); }

/* ===== Tech Marquee ===== */
.tech-marquee {
  padding: 40px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; }
.marquee-content {
  display: flex; align-items: center; gap: 32px;
  animation: marquee 30s linear infinite; padding-right: 32px;
}
.tech-item {
  font-size: 1.1rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; transition: var(--transition);
}
.tech-item:hover { color: var(--text-primary); }
.tech-dot { width: 6px; height: 6px; background: var(--accent-1); border-radius: 50%; opacity: 0.4; flex-shrink: 0; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== FAQ Section ===== */
.faq { padding: 120px 0; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-size: 1rem; font-weight: 600;
  text-align: left; transition: var(--transition);
}
.faq-question:hover { color: var(--accent-1); }
.faq-question svg {
  color: var(--text-muted); transition: var(--transition); flex-shrink: 0;
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px; padding-bottom: 20px;
}
.faq-answer p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== Contact Section ===== */
.contact { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: var(--text-secondary); transition: var(--transition);
}
.contact-detail:hover { color: var(--text-primary); }
.contact-detail svg { color: var(--accent-1); flex-shrink: 0; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-size: 0.95rem;
  transition: var(--transition); outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239494a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-group select option { background: var(--bg-card); color: var(--text-primary); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== Newsletter ===== */
.newsletter { padding: 0 0 120px; }
.newsletter-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.newsletter-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.newsletter-desc { font-size: 0.9rem; color: var(--text-secondary); }
.newsletter-form { display: flex; gap: 12px; flex-shrink: 0; }
.newsletter-form input {
  padding: 12px 20px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-size: 0.95rem; outline: none;
  min-width: 260px; transition: var(--transition);
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--accent-1); }

/* ===== Footer ===== */
.footer { padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); margin-top: 12px; max-width: 280px; }
.footer-domain {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent-1); margin-top: 8px;
}
.footer-links-group { display: flex; flex-direction: column; gap: 12px; }
.footer-links-group h4 {
  font-size: 0.85rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-links-group a { font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); }
.footer-links-group a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-muted); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--text-primary); }

/* ===== Animations ===== */
[data-animate] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px; cursor: pointer; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); width: 36px; height: 36px;
}
.theme-toggle:hover {
  border-color: var(--border-hover); color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ===== Nav Product Link ===== */
.nav-product {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid rgba(0, 206, 201, 0.3);
  border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  color: var(--accent-2); transition: var(--transition);
  text-decoration: none;
}
.nav-product:hover {
  background: rgba(0, 206, 201, 0.1); border-color: var(--accent-2);
  transform: translateY(-1px);
}
.mobile-theme-toggle {
  margin-top: 16px;
}
.mobile-theme-toggle .theme-toggle {
  width: 48px; height: 48px;
}
.mobile-theme-toggle .theme-toggle .icon-sun,
.mobile-theme-toggle .theme-toggle .icon-moon {
  width: 22px; height: 22px;
}
.mobile-link-product {
  color: var(--accent-2) !important;
}

/* ===== Product Button ===== */
.btn-product {
  background: transparent; color: var(--accent-2);
  border: 1px solid rgba(0, 206, 201, 0.3);
}
.btn-product:hover {
  background: rgba(0, 206, 201, 0.1); border-color: var(--accent-2);
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 206, 201, 0.2);
}

/* ===== Product Banner Section ===== */
.product-banner { padding: 120px 0; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; position: relative; overflow: hidden;
}
.product-card-glow {
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: var(--accent-2); filter: blur(150px); opacity: 0.06;
  pointer-events: none;
}
.product-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(0, 206, 201, 0.1); border: 1px solid rgba(0, 206, 201, 0.2);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  color: var(--accent-2); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.product-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 16px;
}
.product-desc {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 24px;
}
.product-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 32px;
}
.product-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 500;
}
.product-feature svg { color: var(--accent-2); flex-shrink: 0; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Product Mockup */
.product-mockup {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.mockup-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-url {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
  background: rgba(255,255,255,0.04); padding: 3px 10px; border-radius: 4px;
}
.mockup-body { display: flex; min-height: 280px; }
.mockup-sidebar {
  width: 50px; background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border); padding: 12px 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.mockup-nav-item {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06);
}
.mockup-nav-item.active { background: var(--accent-2); opacity: 0.6; }
.mockup-content { flex: 1; padding: 16px; }
.mockup-stat-row { display: flex; gap: 10px; margin-bottom: 12px; }
.mockup-stat-card {
  flex: 1; height: 40px; border-radius: 6px;
  background: rgba(108, 92, 231, 0.08); border: 1px solid var(--border);
}
.mockup-chart {
  height: 80px; border-radius: 6px; margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(0, 206, 201, 0.1) 0%, transparent 100%);
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.mockup-chart::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 60%; background: linear-gradient(90deg,
    transparent 0%, rgba(0, 206, 201, 0.15) 20%,
    rgba(108, 92, 231, 0.15) 50%, rgba(0, 206, 201, 0.1) 80%, transparent 100%);
  clip-path: polygon(0% 80%, 10% 50%, 25% 65%, 40% 30%, 55% 45%, 70% 20%, 85% 35%, 100% 15%, 100% 100%, 0% 100%);
}
.mockup-table { display: flex; flex-direction: column; gap: 6px; }
.mockup-table-row {
  height: 14px; border-radius: 3px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.mockup-table-row:nth-child(1) { width: 100%; }
.mockup-table-row:nth-child(2) { width: 90%; }
.mockup-table-row:nth-child(3) { width: 95%; }
.mockup-table-row:nth-child(4) { width: 70%; }

/* ===== Footer Product Link ===== */
.footer-product-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent-2); margin-top: 8px; transition: var(--transition);
}
.footer-product-link:hover { opacity: 0.8; }

/* ===== Light Theme ===== */
[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #f0f1f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f6fa;
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #8888a0;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 249, 252, 0.85);
  border-bottom-color: var(--border);
}

[data-theme="light"] .hero-badge {
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.15);
}

[data-theme="light"] .hero-typing {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border);
}

[data-theme="light"] .btn-outline {
  color: var(--text-primary);
  border-color: var(--border-hover);
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--text-muted);
}

[data-theme="light"] .btn-product {
  color: #009e96;
  border-color: rgba(0, 158, 150, 0.3);
}
[data-theme="light"] .btn-product:hover {
  background: rgba(0, 158, 150, 0.08);
}

[data-theme="light"] .service-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="light"] .service-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
[data-theme="light"] .service-icon { background: rgba(108, 92, 231, 0.08); }
[data-theme="light"] .service-tags span {
  background: rgba(0, 0, 0, 0.03); border-color: var(--border);
}

[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

[data-theme="light"] .glow { opacity: 0.08; }
[data-theme="light"] .glow-3 { opacity: 0.04; }

[data-theme="light"] .terminal-window { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
[data-theme="light"] .terminal-header { background: rgba(0,0,0,0.02); }
[data-theme="light"] .terminal-input::placeholder { color: var(--text-muted); }

[data-theme="light"] .work-card:hover { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); }
[data-theme="light"] .work-tech span { background: rgba(255,255,255,0.7); color: var(--text-secondary); }

[data-theme="light"] .process-number {
  background: var(--bg-card); border-color: var(--accent-1);
}

[data-theme="light"] .contribution-graph { background: var(--bg-card); border-color: var(--border); }
[data-theme="light"] .contrib-cell { background: rgba(108, 92, 231, 0.1); }

[data-theme="light"] .oss-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="light"] .oss-card:hover { background: var(--bg-card-hover); }

[data-theme="light"] .code-window { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
[data-theme="light"] .code-header { background: rgba(0,0,0,0.02); }
[data-theme="light"] .code-prop { color: var(--text-primary); }

[data-theme="light"] .testimonial-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="light"] .testimonial-card:hover { border-color: var(--border-hover); }

[data-theme="light"] .tech-marquee { border-color: var(--border); }
[data-theme="light"] .tech-item { color: var(--text-muted); }
[data-theme="light"] .tech-item:hover { color: var(--text-primary); }
[data-theme="light"] .tech-dot { opacity: 0.3; }

[data-theme="light"] .faq-question { color: var(--text-primary); }
[data-theme="light"] .faq-question:hover { color: var(--accent-1); }
[data-theme="light"] .faq-answer p { color: var(--text-secondary); }

[data-theme="light"] .contact-form { background: var(--bg-card); border-color: var(--border); }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(0, 0, 0, 0.02); border-color: var(--border); color: var(--text-primary);
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: var(--text-muted); }
[data-theme="light"] .form-group select option { background: var(--bg-card); color: var(--text-primary); }

[data-theme="light"] .newsletter-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="light"] .newsletter-form input {
  background: rgba(0, 0, 0, 0.02); border-color: var(--border); color: var(--text-primary);
}
[data-theme="light"] .newsletter-form input::placeholder { color: var(--text-muted); }

[data-theme="light"] .footer { border-top-color: var(--border); }
[data-theme="light"] .footer-links-group h4 { color: var(--text-primary); }
[data-theme="light"] .footer-links-group a { color: var(--text-muted); }
[data-theme="light"] .footer-links-group a:hover { color: var(--text-primary); }
[data-theme="light"] .footer-bottom { border-top-color: var(--border); }

[data-theme="light"] .nav-product {
  border-color: rgba(0, 158, 150, 0.25); color: #009e96;
}
[data-theme="light"] .nav-product:hover {
  background: rgba(0, 158, 150, 0.08);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mobile-menu { background: rgba(248, 249, 252, 0.97); }

[data-theme="light"] .product-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="light"] .product-card-glow { opacity: 0.03; }
[data-theme="light"] .product-badge {
  background: rgba(0, 158, 150, 0.08); border-color: rgba(0, 158, 150, 0.15);
  color: #009e96;
}
[data-theme="light"] .product-feature svg { color: #009e96; }

[data-theme="light"] .product-mockup {
  background: var(--bg-secondary); border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .mockup-header { background: rgba(0,0,0,0.02); }
[data-theme="light"] .mockup-url { background: rgba(0,0,0,0.04); }
[data-theme="light"] .mockup-sidebar { background: rgba(0,0,0,0.02); }
[data-theme="light"] .mockup-stat-card { background: rgba(108, 92, 231, 0.06); border-color: var(--border); }
[data-theme="light"] .mockup-chart { background: rgba(0, 206, 201, 0.04); border-color: var(--border); }
[data-theme="light"] .mockup-chart::after {
  background: linear-gradient(180deg, rgba(0, 206, 201, 0.12) 0%, transparent 100%);
}
[data-theme="light"] .mockup-table-row {
  background: rgba(0,0,0,0.02); border-color: var(--border);
}

[data-theme="light"] #particleCanvas { opacity: 0.4; }

[data-theme="light"] .section-tag {
  background: rgba(108, 92, 231, 0.06);
  border-color: rgba(108, 92, 231, 0.12);
}

[data-theme="light"] .about-feature-icon {
  background: rgba(0, 158, 150, 0.1);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .oss-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .newsletter-card { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .product-card { grid-template-columns: 1fr; gap: 48px; padding: 48px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-product, .navbar .theme-toggle { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-title { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .stat-divider { width: 40px; height: 1px; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card-large { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-header { margin-bottom: 48px; }
  .services, .work, .about, .contact, .process, .opensource, .testimonials, .faq, .terminal-section, .product-banner { padding: 80px 0; }
  .contribution-grid { grid-template-columns: repeat(26, 1fr); }
  .product-card { padding: 32px; }
  .product-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-typing { font-size: 0.75rem; padding: 6px 12px; }
  .contact-form { padding: 24px; }
  .contribution-graph { padding: 20px; }
}
