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

:root,
[data-theme="dark"] {
  --bg-primary: #05060a;
  --bg-secondary: #0a0b12;
  --bg-card: rgba(15, 17, 28, 0.6);
  --text-primary: #e8eaed;
  --text-secondary: #9ca3af;
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --accent-purple: #7c3aed;
  --accent-cyan: #0891b2;
  --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .glow-bg { opacity: 0.06; }
[data-theme="light"] header { background: rgba(248, 250, 252, 0.9); }

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

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

.glow-bg {
  position: fixed;
  width: 800px; height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.glow-1 { top: -200px; left: -200px; background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%); }
.glow-2 { bottom: -300px; right: -300px; background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%); }

header {
  position: relative;
  z-index: 100;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  background: rgba(5, 6, 10, 0.8);
}

.header-content { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}
.logo:hover { color: var(--text-primary); }
.logo img { width: 64px; height: 64px; border-radius: 12px; }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text-primary); }

.service-detail {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
}

.back-link {
  display: inline-block;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 40px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent-purple); }

.service-header {
  margin-bottom: 48px;
}
.service-hero-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.service-header h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-tagline {
  font-size: 22px;
  color: var(--text-secondary);
}

.service-content {
  max-width: 800px;
}
.service-content .lead {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}
.service-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 48px 0 20px;
  color: var(--text-primary);
}
.service-content p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.service-content ul {
  margin: 16px 0 24px 24px;
}
.service-content li {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}
.service-content code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 15px;
  border: 1px solid var(--border-color);
}

footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 16px;
}

@media (max-width: 768px) {
  .nav { display: none; }
  .service-header h1 { font-size: 40px; }
  .service-content .lead { font-size: 18px; }
}
