/* === SlantSearch Site — Dark Aquamarine Theme === */
:root {
  --aqua1: #00d4aa;
  --aqua2: #00a8cc;
  --aqua3: #0077b6;
  --bg:    #060b10;
  --bg2:   #0d1520;
  --bg3:   #131d2c;
  --card:  #0f1927;
  --border:#1a2a3a;
  --text:  #c8d6e5;
  --text2: #7a8fa6;
  --red:   #ff4466;
  --green: #00d4aa;
  --yellow:#f0c040;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.brand {
  font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, var(--aqua1), var(--aqua2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none; letter-spacing: -0.5px;
}
nav { display:flex; gap:28px; align-items:center; }
nav a {
  color: var(--text2); text-decoration: none; font-size: 14px;
  transition: color 0.2s; font-weight: 500;
}
nav a:hover, nav a.active { color: var(--aqua1); }
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 22px; border-radius:var(--radius);
  font-size:14px; font-weight:600;
  text-decoration:none; cursor:pointer; border:none;
  transition: all 0.2s;
}
.btn-primary { background: var(--aqua1); color: #000; }
.btn-primary:hover { background: #00e8bc; transform: translateY(-1px); box-shadow: 0 0 20px rgba(0,212,170,0.3); }
.btn-outline { background: transparent; color: var(--aqua1); border: 1px solid var(--aqua1); }
.btn-outline:hover { background: rgba(0,212,170,0.1); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ── Hero ── */
.hero {
  text-align: center; padding: 80px 24px 60px;
  max-width: 800px; margin: 0 auto;
}
.hero h1 {
  font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--aqua1), var(--aqua2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.hero p {
  font-size: 18px; color: var(--text2); margin-bottom: 36px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ── Features ── */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto; padding: 60px 24px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--aqua1); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--text2); }

/* ── Stats bar ── */
.stats-bar {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 40px 24px; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto;
}
.stat { text-align: center; }
.stat-val {
  font-size: 32px; font-weight: 700;
  background: linear-gradient(135deg, var(--aqua1), var(--aqua2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* ── Pricing ── */
.section-title {
  text-align: center; font-size: 32px; font-weight: 700; margin: 60px 0 32px;
  color: #fff;
}
.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto; padding: 0 24px 60px;
}
.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: all 0.2s; position: relative;
}
.price-card:hover { border-color: var(--aqua1); transform: translateY(-2px); }
.price-card.featured {
  border-color: var(--aqua1);
  box-shadow: 0 0 30px rgba(0,212,170,0.1);
}
.price-card.featured::before {
  content: 'Популярный'; position: absolute; top:-12px; left:50%;
  transform: translateX(-50%);
  background: var(--aqua1); color: #000; font-size: 12px; font-weight: 600;
  padding: 4px 16px; border-radius: 20px;
}
.price-name { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.price-amount { font-size: 36px; font-weight: 800; color: var(--aqua1); margin-bottom: 4px; }
.price-period { font-size: 13px; color: var(--text2); margin-bottom: 16px; }
.price-calls { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.price-desc { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
.price-card .btn { width: 100%; justify-content: center; }

/* ── Page container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.container.narrow { max-width: 700px; }

.page-title {
  font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.page-subtitle { color: var(--text2); font-size: 15px; margin-bottom: 32px; }

/* ── Cards ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 600; color: #fff; }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--text2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:hover td { background: rgba(0,212,170,0.03); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-ok { background: rgba(0,212,170,0.15); color: var(--green); }
.badge-error { background: rgba(255,68,102,0.15); color: var(--red); }
.badge-pending { background: rgba(240,192,64,0.15); color: var(--yellow); }

/* ── Dashboard widgets ── */
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.widget-label { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.widget-val {
  font-size: 28px; font-weight: 700; color: #fff;
}
.chart-placeholder {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  margin-bottom: 24px;
}
.chart-placeholder h3 { color: #fff; margin-bottom: 16px; font-size: 16px; }

/* ── Bar chart (CSS only) ── */
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding-top: 20px; }
.bar-wrap { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; }
.bar {
  width: 100%; max-width: 60px; background: linear-gradient(180deg, var(--aqua1), var(--aqua3));
  border-radius: 6px 6px 0 0; min-height: 4px; transition: height 0.5s;
}
.bar-label { font-size: 11px; color: var(--text2); }
.bar-val { font-size: 11px; color: var(--aqua1); font-weight: 600; }

/* ── Key card ── */
.key-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
}
.key-info { flex: 1; }
.key-name { font-weight: 600; color: #fff; margin-bottom: 4px; }
.key-hash { font-family: monospace; font-size: 13px; color: var(--aqua1); }
.key-meta { font-size: 12px; color: var(--text2); margin-top: 4px; }
.key-actions { display: flex; gap: 8px; }

/* ── Progress bar ── */
.progress { background: var(--bg); border-radius: 10px; height: 6px; margin-top: 8px; overflow:hidden; }
.progress-fill { height: 100%; background: var(--aqua1); border-radius: 10px; transition: width 0.4s; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tab {
  padding: 12px 24px; font-size: 14px; font-weight: 500;
  color: var(--text2); cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s; background: none; border-top:none; border-left:none; border-right:none;
  font-family: inherit;
}
.tab:hover { color: #fff; }
.tab.active { color: var(--aqua1); border-bottom-color: var(--aqua1); }

/* ── Payment page ── */
.tariff-selector { display: grid; gap: 12px; margin-bottom: 32px; }
.tariff-option {
  background: var(--bg3); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 20px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: border-color 0.2s;
}
.tariff-option:hover { border-color: var(--aqua1); }
.tariff-option.selected { border-color: var(--aqua1); background: rgba(0,212,170,0.05); }
.tariff-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tariff-option.selected .tariff-radio {
  border-color: var(--aqua1);
}
.tariff-option.selected .tariff-radio::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--aqua1);
}
.tariff-detail { flex: 1; margin-left: 16px; }
.tariff-detail h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.tariff-detail span { color: var(--text2); font-size: 13px; }
.tariff-price { text-align: right; }
.tariff-price .amount { font-size: 24px; font-weight: 700; color: var(--aqua1); }
.tariff-price .period { font-size: 12px; color: var(--text2); }

.payment-methods { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.payment-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg3);
  color: var(--text); font-size: 14px; font-weight: 500;
}
.payment-badge::before {
  content: '💳'; font-size: 18px;
}

/* ── Docs ── */
.doc-section { margin-bottom: 40px; }
.doc-section h2 { color: #fff; font-size: 20px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.doc-section h3 { color: var(--aqua1); font-size: 16px; margin: 20px 0 8px; }
.doc-section p { font-size: 14px; color: var(--text2); margin-bottom: 12px; }
.doc-section ul { list-style: none; padding: 0; }
.doc-section li { font-size: 14px; color: var(--text2); padding: 4px 0; }
.doc-section li::before { content: '→ '; color: var(--aqua1); }
pre {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; overflow-x: auto;
  margin: 12px 0; font-size: 13px;
}
code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; color: var(--aqua1); }
pre code { color: var(--text); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--aqua1); color: #000; padding: 14px 24px;
  border-radius: var(--radius); font-weight: 600; font-size: 14px;
  opacity: 0; transform: translateY(20px); transition: all 0.3s;
  z-index: 999; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); color: #fff; }

/* ── Footer ── */
footer {
  text-align: center; padding: 40px 24px; color: var(--text2);
  font-size: 13px; border-top: 1px solid var(--border);
  margin-top: 60px;
}
footer a { color: var(--aqua1); text-decoration: none; }

/* ── Why SlantSearch ── */
.why-section { max-width: 1100px; margin: 0 auto; padding: 0 24px 20px; }
.why-grid { display: grid; grid-template-columns: 1fr 80px 1fr; gap: 16px; align-items: start; }
.why-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--aqua1); font-weight: 300;
}
.why-card { border-radius: var(--radius); padding: 24px; }
.why-card.bad { background: rgba(255,68,102,0.06); border: 1px solid rgba(255,68,102,0.2); }
.why-card.good { background: rgba(0,212,170,0.06); border: 1px solid rgba(0,212,170,0.2); }
.why-label { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.why-card.bad .why-label { color: var(--red); }
.why-card.good .why-label { color: var(--aqua1); }
.why-card ul { list-style: none; padding: 0; }
.why-card li { font-size: 13px; color: var(--text2); padding: 6px 0; line-height: 1.5; }
.why-card.good li::before { content: '✓ '; color: var(--aqua1); }
.why-card.bad li::before { content: '✗ '; color: var(--red); }

/* ── Compare table ── */
.compare-table-wrapper { overflow-x: auto; max-width: 900px; margin: 0 auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th {
  text-align: center; padding: 12px 10px; border-bottom: 2px solid var(--border);
  color: var(--text2); font-weight: 600; font-size: 12px;
}
.compare-table th:first-child { text-align: left; }
.compare-table td {
  padding: 10px; border-bottom: 1px solid var(--border);
  text-align: center; color: var(--text2);
}
.compare-table td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.cmp-us { color: var(--aqua1) !important; }
th.cmp-us { color: var(--aqua1) !important; background: rgba(0,212,170,0.05); }
td.cmp-us { color: var(--aqua1) !important; background: rgba(0,212,170,0.03); font-weight: 600; }

/* ── Smart Search Pipeline ── */
.smart-search-section { max-width: 1100px; margin: 0 auto; padding: 0 24px 20px; }
.smart-intro {
  text-align: center; font-size: 16px; color: var(--text2);
  max-width: 700px; margin: 0 auto 40px; line-height: 1.7;
}
.smart-intro strong { color: var(--aqua1); }

.pipeline {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: start; gap: 8px; margin-bottom: 48px;
}
.pipe-step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px;
  text-align: center; position: relative;
  transition: border-color 0.2s;
}
.pipe-step:hover { border-color: var(--aqua1); }
.pipe-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--aqua1); color: #000;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pipe-icon { font-size: 28px; margin: 8px 0 10px; }
.pipe-step h4 { font-size: 14px; color: #fff; margin-bottom: 6px; }
.pipe-step p { font-size: 12px; color: var(--text2); line-height: 1.5; }
.pipe-connector {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--aqua1); font-weight: 300;
  padding-bottom: 20px;
}

/* ── Upgrade Agent ── */
.upgrade-agent { margin-top: 32px; }
.upgrade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.upgrade-card {
  border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border);
}
.upgrade-card.dim { background: rgba(255,68,102,0.04); border-color: rgba(255,68,102,0.2); }
.upgrade-card.glow {
  background: rgba(0,212,170,0.04);
  border-color: var(--aqua1);
  box-shadow: 0 0 30px rgba(0,212,170,0.06);
}
.upgrade-label {
  font-size: 16px; font-weight: 700; margin-bottom: 14px;
}
.upgrade-card.dim .upgrade-label { color: var(--red); }
.upgrade-card.glow .upgrade-label { color: var(--aqua1); }
.upgrade-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }
.upgrade-card.glow p strong { color: var(--aqua1); }

.upgrade-cta {
  text-align: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
}
.upgrade-tagline {
  display: block; font-size: 18px; color: #fff; font-weight: 600;
  margin-bottom: 20px; line-height: 1.5;
}

/* ── Form fields ── */
.field-label { display: block; color: var(--text); font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.field {
  width: 100%; padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: #fff; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.field:focus { border-color: var(--aqua1); }
.field::placeholder { color: var(--text2); }
.alert {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
  font-size: 13px; font-weight: 500;
}
.alert-error { background: rgba(255,68,102,0.12); color: var(--red); border: 1px solid rgba(255,68,102,0.3); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  nav { gap: 14px; }
  nav a { font-size: 13px; }
  .stats-bar { gap: 24px; }
  .stat-val { font-size: 24px; }
  .pricing { grid-template-columns: 1fr; }
  .widgets { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-arrow { transform: rotate(90deg); font-size: 24px; padding: 8px 0; }
  .pipeline { grid-template-columns: 1fr; gap: 4px; }
  .pipe-connector { transform: rotate(90deg); font-size: 18px; padding: 4px 0; }
  .upgrade-grid { grid-template-columns: 1fr; }
}
