@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  --bg-main: #050507;
  --bg-card: rgba(14, 10, 22, 0.85);
  --border-subtle: rgba(168, 85, 247, 0.12);
  --border-glow: rgba(168, 85, 247, 0.35);
  --text-primary: #FFFFFF;
  --text-secondary: #C4B5E8;
  --text-muted: #7C6A9E;
  --cyan-neon: #C084FC;
  --cyan-glow: rgba(192, 132, 252, 0.15);
  --emerald-neon: #F472B6;
  --emerald-glow: rgba(244, 114, 182, 0.15);
  --red-alert: #EF4444;
  --violet: #A855F7;
  --pink: #EC4899;
  --violet-glow: rgba(168, 85, 247, 0.2);
  --pink-glow: rgba(236, 72, 153, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
  /* Static black base with violet-pink shimmer blobs */
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(148, 105, 181, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 20%, rgba(236, 72, 153, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 30% 25% at 80% 70%, rgba(236, 72, 153, 0.07) 0%, transparent 45%),
    linear-gradient(to right, rgba(168, 85, 247, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.metric-card {
  border-radius: 16px !important;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 9, 0.90);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #FFF;
  font-size: 18px;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ── Кнопка покупки подписки (верхняя панель) ── */
.btn-subscribe {
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  color: #FFF;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 0px;
  border: 1px solid rgba(168, 85, 247, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), 0 0 8px rgba(236, 72, 153, 0.25);
  letter-spacing: 0.2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.55), 0 0 15px rgba(236, 72, 153, 0.4);
  filter: brightness(1.1);
}

.btn-primary {
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  color: #FFF;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 0px;
  border: 1px solid rgba(168, 85, 247, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
  background: rgba(168, 85, 247, 0.07);
  color: var(--text-primary);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 10px 20px;
  border-radius: 0px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.14);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.badge-cyan {
  background: var(--cyan-glow);
  color: var(--cyan-neon);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 4px 10px;
  border-radius: 0px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-emerald {
  background: var(--emerald-glow);
  color: var(--emerald-neon);
  border: 1px solid rgba(244, 114, 182, 0.3);
  padding: 4px 10px;
  border-radius: 0px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 0px;
  background: var(--emerald-neon);
  box-shadow: 0 0 8px var(--emerald-neon);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

/* =========================================
   Адаптивность (Mobile & Tablet Responsiveness)
   ========================================= */

@media (max-width: 1024px) {
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .security-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .hero {
    padding: 30px 16px 20px !important;
  }
  .hero h1 {
    font-size: 32px !important;
    letter-spacing: -0.5px !important;
  }
  .hero p {
    font-size: 15px !important;
  }
  .split-widget {
    grid-template-columns: 1fr !important;
  }
  .live-ticker {
    flex-direction: column;
    gap: 24px !important;
    text-align: center;
    padding: 24px !important;
  }
  .pricing-grid-4 {
    grid-template-columns: 1fr !important;
  }
  .security-grid {
    grid-template-columns: 1fr !important;
  }
  .ide-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    justify-content: flex-start;
  }
  .ide-tab {
    flex-shrink: 0;
  }
  .mcp-box {
    padding: 20px !important;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .auth-bar {
    flex-direction: column;
    gap: 16px;
    align-items: stretch !important;
  }
  .auth-bar input {
    width: 100% !important;
  }
}

/* Product landing refresh: keep the existing markup and interactions, but give
   the public surface a calmer editorial system instead of dashboard chrome. */
:root {
  --paper: #f7f6f2;
  --ink: #17201c;
  --muted: #68716b;
  --line: #d9ddd5;
  --accent: #e95d3f;
  --green: #236b52;
  --bg-main: #f6f7f2;
  --bg-card: rgba(255, 255, 252, 0.88);
  --border-subtle: rgba(19, 45, 39, 0.12);
  --border-glow: rgba(19, 45, 39, 0.28);
  --text-primary: #132d27;
  --text-secondary: #536a63;
  --text-muted: #82938c;
  --cyan-neon: #0e7762;
  --cyan-glow: rgba(31, 151, 124, 0.12);
  --emerald-neon: #d76b3d;
  --emerald-glow: rgba(215, 107, 61, 0.12);
  --violet: #0e7762;
}

/* Editorial Swiss layer: one light system for both public surfaces. */
body { background: var(--paper); color: var(--ink); font-family: Inter, Helvetica, Arial, sans-serif; }
.navbar, .dashboard-header, .topbar { background: rgba(247,246,242,.94); border-color: var(--line); box-shadow: none; }
.navbar { min-height: 72px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.045em; }
p, .muted, .subtitle, .eyebrow { color: var(--muted); }
a { color: var(--ink); }
.btn-primary { background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 3px; box-shadow: none; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary, .card, .panel, .stat-card, .modal-box { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(23,32,28,.06); }
.language-switcher { display: flex; gap: 3px; align-items: center; margin-left: auto; }
.lang-btn { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 5px 8px; font: 700 10px/1 Inter, sans-serif; cursor: pointer; }
.lang-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.dashboard-language { position: fixed; z-index: 20; top: 18px; right: 24px; }
table th { background: #f0f1ed; color: var(--muted); }
input, select, textarea { background: #fff; color: var(--ink); border-color: var(--line); }
/* Keep legacy inline colors from overriding the light editorial surface. */
[style*="background: #000"], [style*="background: rgba(0, 0, 0"], [style*="background: rgba(0,0,0"] { background: #fff !important; color: var(--ink) !important; box-shadow: none !important; }
[style*="color: #FFF"], [style*="color: var(--cyan-neon)"], [style*="color: var(--emerald-neon)"] { color: var(--ink) !important; text-shadow: none !important; }
@media (max-width: 720px) { .dashboard-language { top: 12px; right: 12px; } .navbar { padding-inline: 18px; } }

body {
  background-image: radial-gradient(circle at 85% 8%, rgba(224, 169, 103, .22), transparent 28%),
    radial-gradient(circle at 8% 35%, rgba(75, 167, 139, .15), transparent 30%),
    linear-gradient(135deg, #f6f7f2 0%, #eef3ed 100%);
}

.navbar {
  padding: 20px clamp(20px, 5vw, 72px);
  background: rgba(246, 247, 242, .82);
  border-bottom: 1px solid rgba(19, 45, 39, .1);
}

.brand-icon {
  border-radius: 11px;
  background: #132d27;
  box-shadow: 0 8px 18px rgba(19, 45, 39, .2);
}

.btn-subscribe, .btn-primary {
  background: #132d27;
  border-color: #132d27;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(19, 45, 39, .16);
}

.btn-secondary { border-radius: 999px; background: rgba(255,255,255,.55); }
.card { border-radius: 22px; box-shadow: 0 18px 45px rgba(19, 45, 39, .08); }
.badge-cyan, .badge-emerald { border-radius: 999px; }
.status-dot { border-radius: 50%; }

.form-input {
  color: var(--text-primary);
  color-scheme: dark;
}
