/* SemaCloud — Чистый HTML5 + CSS3 без JS-фреймворков */
:root {
  --bg-main: #020617;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-darker: #090d16;
  --border: #1e293b;
  --border-hover: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --emerald: #10b981;
  --rose: #f43f5e;
  --radius-xl: 20px;
  --radius-md: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.12), transparent 32%),
    radial-gradient(circle at 88% 35%, rgba(99, 102, 241, 0.12), transparent 36%),
    radial-gradient(circle at 45% 90%, rgba(16, 185, 129, 0.08), transparent 30%);
}

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

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #020617;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

.brand-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #a5f3fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  margin-left: 6px;
}

.brand-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

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

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

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  color: #020617;
  background: linear-gradient(90deg, var(--cyan), #38bdf8);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.22);
  transition: transform 0.2s, filter 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  background: #0f172a;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: #1e293b;
}

/* Главный экран (Hero) */
.hero {
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--cyan), #60a5fa, var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}

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

.hero-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  background: var(--bg-darker);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Полоса метрик */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 40px 0 72px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.stat-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Заголовки секций */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Секция карточек с картинками */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.feature-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-body {
  padding: 24px;
}

.feature-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-body h3 {
  font-size: 19px;
  margin: 6px 0 10px;
}

.feature-body p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Визуальная фотогалерея дата-центра и оборудования */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 250px;
  background: #0f172a;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.1));
}

.gallery-caption strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.gallery-caption span {
  font-size: 12px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
}

/* Панель управления на чистом CSS (без JS) */
.console-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 80px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.console-topbar {
  background: #090d16;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #f43f5e; }
.dot.amber { background: #f59e0b; }
.dot.green { background: #10b981; }

.console-host {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 10px;
}

.console-content {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  padding: 28px;
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-item {
  background: #090d16;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.node-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.node-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.node-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.terminal-box {
  background: #050811;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.terminal-title {
  color: var(--cyan);
  font-size: 11px;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.terminal-line {
  margin-bottom: 10px;
  word-break: break-word;
}

/* Тарифы */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.5));
}

.price-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.price-amount {
  font-size: 34px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  margin: 14px 0;
}

.price-amount span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-specs {
  list-style: none;
  margin: 18px 0 28px;
  font-size: 14px;
  color: #cbd5e1;
}

.price-specs li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.7);
}

/* Подвал */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 13px;
  color: var(--text-muted);
  background: #020617;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 960px) {
  .hero-grid,
  .features-grid,
  .gallery-grid,
  .pricing-grid,
  .console-content {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}
