@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --bg:      #0a0a08;
  --bg2:     #111110;
  --bg3:     #1a1a16;
  --border:  #252520;
  --text:    #eeeeea;
  --muted:   #666658;
  --accent:  #f5c400;
  --accent2: #c99e00;
  --mono:    'IBM Plex Mono', monospace;
  --sans:    'IBM Plex Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,8,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
  font-family: var(--mono);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 12px !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--accent2) !important; }

/* ─── LANGUAGE SELECTOR ─── */
.lang-selector { position: relative; font-family: var(--mono); }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: #444; color: var(--text); }
.lang-btn .lang-arrow { font-size: 10px; transition: transform .2s; }
.lang-selector.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: none;
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.lang-selector.open .lang-dropdown { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.lang-option:hover { background: var(--border); color: var(--text); }
.lang-option.active { color: var(--accent); }
.lang-flag { font-size: 14px; }

/* ─── SECTIONS ─── */
section { padding: 80px 32px; max-width: 780px; margin: 0 auto; }
#offer  { padding-top: 96px; padding-bottom: 72px; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ─── HERO ─── */
h1 {
  font-family: var(--sans);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 640px;
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-sub a { color: var(--accent); }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 6px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 6px;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: #444; color: var(--text); }

/* ─── STATS ─── */
.stats {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
}
.stat {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

/* ─── TERMINAL ─── */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title { color: var(--muted); font-size: 11px; }
.terminal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.t-row { display: flex; justify-content: space-between; align-items: center; }
.t-key  { color: var(--muted); }
.t-val  { color: var(--text); }
.t-ok   { color: var(--accent); }
.t-name { color: #fcd34d; }

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── ABOUT ─── */
h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}
.section-desc {
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.75;
}
.section-desc a { color: var(--accent); }

/* ─── FEATURES ─── */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}
.feature { background: var(--bg2); padding: 24px; }
.feature-icon { font-size: 20px; margin-bottom: 10px; display: block; }
.feature-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.feature-text  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── PRICE BOX ─── */
.price-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.price-main {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 600;
}
.price-period {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
  font-family: var(--mono);
}
.price-note { font-size: 13px; color: var(--muted); max-width: 280px; line-height: 1.6; }

/* ─── CONTACTS ─── */
#contacts .contact-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
}
.contact-handle {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin: 12px 0;
}
.contact-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
footer a { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .lang-selector { display: flex !important; }
  section { padding: 56px 20px; }
  .features { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .price-box { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── TEST BANNER ─── */
.test-banner {
  background: linear-gradient(90deg, rgba(245,196,0,0.10) 0%, rgba(245,196,0,0.05) 100%);
  border-bottom: 1px solid rgba(245,196,0,0.25);
  padding: 10px 32px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.test-banner a { color: var(--accent); font-weight: 600; }
.test-banner-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

/* ─── NAV TEST LINK ─── */
.nav-test-link {
  color: var(--accent) !important;
}
.nav-test-link:hover { opacity: 0.8; }

/* ─── STAT FREE ─── */
.stat-free { color: var(--accent); }

/* ─── USE CASES ─── */
.usecases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.usecase-card {
  background: var(--bg2);
  padding: 22px 20px;
}
.uc-icon { font-size: 20px; margin-bottom: 10px; display: block; }
.uc-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.uc-text  { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ─── PRICE RIGHT ─── */
.price-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.price-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent2);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ─── TEST FORM ─── */
.test-form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.test-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent2);
}
.form-group select option { background: var(--bg3); }
.form-group textarea { min-height: 80px; }
.form-submit { align-self: flex-start; margin-top: 4px; }
.form-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── FORM SUCCESS ─── */
.test-form-success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  font-size: 40px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.success-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.success-text { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ─── RESPONSIVE ADDITIONS ─── */
@media (max-width: 700px) {
  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .price-box { flex-direction: column; align-items: flex-start; }
  .test-banner { padding: 10px 16px; font-size: 11px; }
}
@media (max-width: 500px) {
  .usecases-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
