@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #fafbfc;
  --bg-alt: #f0f4f8;
  --bg-dark: #0a0e17;
  --bg-dark-alt: #111827;
  --text: #1a202c;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --accent: #0066ff;
  --accent-hover: #0052cc;
  --accent-soft: rgba(0, 102, 255, 0.08);
  --accent-glow: rgba(0, 102, 255, 0.25);
  --green: #00d68f;
  --green-soft: rgba(0, 214, 143, 0.1);
  --orange: #ff6b35;
  --orange-soft: rgba(255, 107, 53, 0.1);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.1);
  --border: #e2e8f0;
  --border-dark: #1e293b;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition);
}

.lang-switcher-btn:hover {
  background: var(--bg-alt);
}

.lang-switcher-btn .lang-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.lang-switcher.open .lang-switcher-btn .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1001;
  flex-direction: column;
  gap: 2px;
}

.lang-switcher.open .lang-dropdown {
  display: flex;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.lang-dropdown a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.lang-dropdown a.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.lang-dropdown a .flag {
  font-size: 16px;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-large { padding: 16px 32px; font-size: 16px; border-radius: 16px; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px 16px;
}

.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }

.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 214, 143, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-badge svg { width: 16px; height: 16px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 24px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 64px;
}

.hero-code {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #e2e8f0;
  overflow-x: auto;
  border: 1px solid var(--border-dark);
}

.hero-code .comment { color: #64748b; }
.hero-code .keyword { color: #8b5cf6; }
.hero-code .string { color: #00d68f; }
.hero-code .func { color: #0066ff; }
.hero-code .param { color: #ff6b35; }
.hero-code .output { color: var(--text-light); font-style: italic; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 64px 0;
}

.stat {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #e2e8f0; }
.section-dark .section-title { color: white; }
.section-dark .section-subtitle { color: var(--text-light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.card-icon.blue { background: var(--accent-soft); color: var(--accent); }
.card-icon.green { background: var(--green-soft); color: var(--green); }
.card-icon.orange { background: var(--orange-soft); color: var(--orange); }
.card-icon.purple { background: var(--purple-soft); color: var(--purple); }

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.pricing-card .price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-card .desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 16px 0 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--bg-alt);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.cta-section {
  background: var(--bg-dark);
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-soft), var(--purple-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-card-body { padding: 28px; }

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.blog-tag.ai { background: var(--accent-soft); color: var(--accent); }
.blog-tag.work { background: var(--green-soft); color: var(--green); }
.blog-tag.crypto { background: var(--orange-soft); color: var(--orange); }
.blog-tag.future { background: var(--purple-soft); color: var(--purple); }

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--accent); }

.blog-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
}

.article { max-width: 760px; margin: 0 auto; padding: 100px 24px 80px; }

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-meta span {
  font-size: 14px;
  color: var(--text-muted);
}

.article h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
}

.article h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 16px;
}

.article p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #374151;
}

.article ul, .article ol {
  margin: 0 0 20px 24px;
  color: #374151;
}

.article li { margin-bottom: 8px; line-height: 1.7; }

.article blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

.article pre {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.article code {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.article pre code { background: none; padding: 0; }

.article .faq-item {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}

.article .faq-item h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.article .faq-item p {
  margin: 0;
  color: var(--text-muted);
}

.article-cta {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin: 64px 0;
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0 0 12px;
}

.article-cta p {
  color: var(--text-light);
  margin: 0 0 24px;
}

.page-header {
  padding: 140px 0 64px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
}

.page-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 16px auto 0;
  position: relative;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.content-img {
  background: linear-gradient(135deg, var(--accent-soft), var(--green-soft));
  border-radius: var(--radius-xl);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.faq-section { margin-top: 64px; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg { width: 24px; height: 24px; stroke: var(--text); }

@media (max-width: 1024px) {
  .card-grid-3, .card-grid-4, .steps, .pricing-grid, .blog-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .card-grid-2, .card-grid-3, .card-grid-4, .steps, .pricing-grid, .blog-grid, .content-grid, .footer-grid, .stats-bar { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-actions .btn-secondary { display: none; }
  .hero { padding: 120px 0 48px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .steps::before { display: none; }
  .steps { gap: 48px; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
}
