/* ============================================
   DARK MODE THEME — GitHub × Vercel × Linear
   ============================================ */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #16161f;
  --bg-elevated: #1a1a24;
  --text-primary: #e6e6f0;
  --text-secondary: #8b8b9e;
  --text-tertiary: #5a5a6e;
  --accent: #3b82f6;
  --accent-glow: rgba(59,130,246,0.3);
  --accent-secondary: #8b5cf6;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }

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

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-secondary); position: relative; }
.nav a:hover { color: var(--text-primary); }
.nav a.active { color: var(--text-primary); }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: width 0.3s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text-primary); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 14px; font-weight: 500; border-radius: 8px;
  transition: var(--transition); cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff; border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-elevated); }
.btn-large { padding: 14px 32px; font-size: 15px; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent);
  margin-bottom: 24px; opacity: 0;
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px); font-weight: 700; letter-spacing: -2px;
  line-height: 1.05; margin-bottom: 24px; opacity: 0;
}
.hero-title .accent { background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc {
  font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary); max-width: 520px;
  margin: 0 auto 40px; line-height: 1.7; opacity: 0;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; }

/* TERMINAL */
.terminal {
  max-width: 640px; margin: 64px auto 0; border-radius: var(--radius-lg);
  background: var(--bg-secondary); border: 1px solid var(--border);
  overflow: hidden; opacity: 0;
}
.terminal-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--bg-tertiary); border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-body { padding: 24px; font-family: 'JetBrains Mono', monospace; font-size: 14px; text-align: left; }
.terminal-line { color: var(--text-secondary); margin-bottom: 8px; }
.terminal-line .prompt { color: var(--accent); }
.terminal-line .cmd { color: var(--text-primary); }

/* SECTIONS */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.section-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); margin-bottom: 16px; }
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.6; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 18px; color: #fff; }
.feature-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; padding: 32px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat-number { font-family: 'JetBrains Mono', monospace; font-size: clamp(28px, 3vw, 40px); font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.card-visual { height: 180px; background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary)); position: relative; }
.card-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.1) 0%, transparent 70%); }
.card-body { padding: 24px; }
.card-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); margin-bottom: 8px; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* GLOW SECTION */
.glow-section {
  padding: 100px 0; text-align: center; position: relative;
}
.glow-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(59,130,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.blog-thumb { height: 180px; background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary)); }
.blog-meta { display: flex; gap: 16px; padding: 20px 20px 0; font-size: 12px; color: var(--text-tertiary); font-family: 'JetBrains Mono', monospace; }
.blog-card-body { padding: 12px 20px 24px; }
.blog-card-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-card-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info h3 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-item-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.contact-item-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-item-text { font-size: 13px; color: var(--text-secondary); }
.contact-form { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* TIMELINE */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--accent), var(--accent-secondary)); transform: translateX(-50%); opacity: 0.3; }
.timeline-item { display: flex; justify-content: flex-end; padding-right: 50%; position: relative; margin-bottom: 56px; }
.timeline-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
.timeline-dot { position: absolute; left: 50%; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); transform: translateX(-50%); box-shadow: 0 0 12px var(--accent-glow); }
.timeline-content { max-width: 340px; padding: 0 28px; }
.timeline-year { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.timeline-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.timeline-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-member { text-align: center; }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary)); border: 2px solid var(--border); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: var(--accent); }
.team-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--text-secondary); }

/* SERVICE ROW */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 80px; }
.service-row:nth-child(even) .service-visual { order: 2; }
.service-visual { height: 360px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary)); position: relative; overflow: hidden; border: 1px solid var(--border); }
.service-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.1) 0%, transparent 60%); }
.service-content { padding: 16px 0; }
.service-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.service-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 14px; }
.service-text { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-primary); }
.service-list li::before { content: '>'; color: var(--accent); font-family: 'JetBrains Mono', monospace; }

/* BLOG POST */
.blog-post-header { padding: 140px 0 48px; text-align: center; max-width: 720px; margin: 0 auto; }
.blog-post-meta { display: flex; gap: 20px; justify-content: center; font-size: 13px; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; margin-bottom: 20px; }
.blog-post-title { font-size: clamp(26px, 4vw, 42px); font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.blog-post-content { max-width: 720px; margin: 0 auto; padding: 32px 24px; }
.blog-post-content p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; }
.blog-post-content h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; }
.blog-post-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 28px 0; font-style: italic; color: var(--text-primary); }

/* PAGE HERO */
.page-hero { padding: 140px 0 64px; text-align: center; }
.page-title { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -2px; margin-bottom: 16px; }
.page-subtitle { font-size: 17px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

/* ERROR */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.error-code { font-family: 'JetBrains Mono', monospace; font-size: clamp(80px, 12vw, 160px); font-weight: 700; color: var(--text-tertiary); margin-bottom: 16px; }
.error-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.error-text { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }

/* FOOTER */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 260px; }
.footer-heading { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; color: var(--text-primary); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-tertiary); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* CURSOR GLOW */
.cursor-glow { position: fixed; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%); pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: opacity 0.3s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .features-grid, .cards-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .features-grid, .cards-grid, .blog-grid, .stats-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .timeline::before { left: 16px; }
  .timeline-item, .timeline-item:nth-child(even) { padding-left: 48px; padding-right: 0; justify-content: flex-start; }
  .timeline-dot { left: 16px; }
}
