/* Hitrex Landing — 2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === Tokens === */
:root, [data-theme="dark"] {
  --bg: #0a0e14;
  --bg-elevated: #111820;
  --bg-subtle: #161d28;
  --text: #e2e8f0;
  --text-dim: #8896a9;
  --border: rgba(255,255,255,0.06);
  --accent: #4d8ef8;
  --accent-dim: rgba(77,142,248,0.15);
}

/* === Base === */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

.w {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.hdr-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em; }
.logo img { height: 20px; width: auto; display: block; }
.logo b { color: var(--accent); font-weight: 800; }

.hdr-r { display: flex; align-items: center; gap: 6px; }

.hdr-link {
  font-size: 0.82rem; font-weight: 500; color: var(--text-dim);
  padding: 6px 12px; border-radius: 6px; transition: color 0.2s;
}
.hdr-link:hover { color: var(--text); }

.tog {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.tog:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 20%, transparent); }

.tog svg { width: 15px; height: 15px; }

.btn-h {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  padding: 6px 14px; border-radius: 7px;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; transition: background 0.2s;
  text-decoration: none;
}
.btn-h:hover { background: var(--bg-subtle); }

.btn-a {
  font-size: 0.82rem; font-weight: 700; color: #fff;
  padding: 7px 16px; border-radius: 7px;
  background: var(--accent); border: none;
  cursor: pointer; transition: opacity 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-a:hover { opacity: 0.88; }

.hdr-mob-ico {
  display: none !important;
}

@media (max-width: 720px) {
  .hdr-links,
  .hdr-btns {
    display: none !important;
  }
  .hdr-mob-ico {
    display: flex !important;
  }
}

/* === Hero === */
.hero { padding: 100px 0 72px; }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 20px;
}

.hero p {
  font-size: 1.05rem; color: var(--text-dim);
  max-width: 440px; line-height: 1.6; margin-bottom: 32px;
}

.hero-ctas { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.hero-main-action { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-trial-text {
  font-size: 0.88rem;
  color: var(--text-dim);
  align-self: center;
}
.hero-trial-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-trial-link:hover {
  color: var(--text);
}
.hero-trial-link .dashed {
  border-bottom: 1px dashed var(--text-dim);
  transition: border-color 0.2s;
}
.hero-trial-link:hover .dashed {
  border-bottom-color: var(--text);
}
.hero .btn-main {
  font-size: 0.95rem; font-weight: 700; color: #fff;
  padding: 12px 28px; border-radius: 10px;
  background: var(--accent); border: none;
  cursor: pointer; transition: opacity 0.2s;
  text-decoration: none; display: inline-block;
}
.hero .btn-main:hover { opacity: 0.88; }

.btn-outline {
  font-size: 0.95rem; font-weight: 600;
  color: rgba(226, 232, 240, 0.7);
  padding: 11px 28px; border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}



@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .hero .btn-main, .btn-outline {
    text-align: center;
    width: 100%;
  }
}

/* === Divider === */
.sep { border: none; border-top: 1px solid var(--border); margin: 0; }

/* === Features — compact grid === */
.feats { padding: 48px 0; }
.feats-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.feat {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0; border: none;
}

.feat-label {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
}
.feat-label .ast {
  font-weight: 700; font-size: 0.9em; margin-left: 2px;
}
.feat-desc {
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.5;
}
.feat-icon {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feat-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .feats-list { grid-template-columns: 1fr; gap: 0; }
  .feat {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }
  .feat:last-child { border-bottom: none; }
}

/* === Management — asymmetric === */
.mgmt { padding: 64px 0; }

.mgmt h2 {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 32px; letter-spacing: -0.02em;
}

.mgmt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.mgmt-item {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mgmt-item:hover { border-color: color-mix(in srgb, var(--text) 15%, transparent); }

.mgmt-item--recommended {
  border-color: var(--accent);
  background: var(--bg-subtle);
  box-shadow: 0 4px 20px rgba(77, 142, 248, 0.08);
}
.mgmt-item--recommended:hover {
  border-color: var(--accent);
}

.badge-rec {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); background: var(--accent-dim);
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(77, 142, 248, 0.25);
}

.mgmt-item h3 {
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.mgmt-item h3 svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.mgmt-item p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; flex: 1; }

.mgmt-btn {
  display: inline-block; width: fit-content;
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
  padding: 7px 16px; border-radius: 8px;
  background: var(--accent-dim); border: none;
  cursor: pointer; transition: opacity 0.2s; text-decoration: none;
}
.mgmt-btn:hover { opacity: 0.8; }

@media (max-width: 580px) {
  .mgmt-row { grid-template-columns: 1fr; }
  .badge-rec { top: 14px; right: 16px; }
}

/* === Pricing === */
.pricing { padding: 64px 0; }

.pricing-h {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 28px;
}

/* Segmented control pill */
.pricing-tabs {
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 4px;
  gap: 2px;
  margin: 0 auto 32px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}



/* Wrapper that centers the pill on desktop, full-width on mobile */
.pricing-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .pricing-tabs-wrap {
    display: flex;
    width: 100%;
  }
  .pricing-tabs {
    display: flex; /* Переопределяем inline-flex на обычный flex */
    flex-direction: column;
    width: 100%;
    padding: 6px;
    gap: 6px; /* Даем чуть больше воздуха между кнопками */
  }
  .ptab {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px; /* Увеличиваем зону клика для пальца */
    border-radius: 10px;
    white-space: normal;
  }
}

.ptab {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.87rem; font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.ptab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.ptab.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(77, 142, 248, 0.35);
}

/* Savings badges — bright for dark bg */
.pbadge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
  padding: 2px 7px; border-radius: 20px;
}
.ptab.active .pbadge {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}
.pbadge--best {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.2);
}
.ptab.active .pbadge--best {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

/* Pricing card */
.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  padding: 28px 32px 32px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}


.pricing-amount {
  display: flex; align-items: baseline; gap: 6px;
}

.pricing-price {
  font-size: 3.2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text);
  transition: opacity 0.2s;
}

.pricing-period {
  font-size: 1rem; color: var(--text-dim); font-weight: 500;
}

.pricing-total {
  font-size: 0.85rem; color: var(--text-dim);
  min-height: 1.3em;
}

/* Device Stepper */
.pricing-devices {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
  margin: 4px 0; padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.devices-header {
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.devices-label {
  font-size: 0.85rem; color: var(--text-dim); font-weight: 500;
}
.devices-title-wrap {
  display: flex; align-items: center; gap: 6px;
}
.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.tooltip-trigger {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}
.tooltip-trigger:hover {
  opacity: 1;
  color: var(--accent);
}
.info-icon {
  width: 14px;
  height: 14px;
}
.tooltip-content {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 220px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 10;
  text-align: center;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--bg-elevated) transparent transparent transparent;
}
.tooltip-container:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.devices-stepper {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card);
  border-radius: 8px; padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stepper-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: none; color: var(--text); font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}

.stepper-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.stepper-btn:disabled {
  opacity: 0.3; cursor: not-allowed;
}
#dev-count {
  font-weight: 700; font-size: 1rem; color: var(--text);
  width: 24px; text-align: center;
}

/* Full-width solid CTA button — identical to hero btn-main */
.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.97rem; font-weight: 700; color: #fff;
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.pricing-btn:hover { opacity: 0.88; }

/* === Steps === */
.steps { padding: 80px 0; }

.steps h2 {
  font-size: 1.6rem; font-weight: 800; margin-bottom: 40px; letter-spacing: -0.02em; text-align: center;
}

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

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 142, 248, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.step-n {
  font-size: 1.1rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  position: relative;
}

.step-body {
  width: 100%;
}

.step-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-body p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }
.step-body a { color: var(--accent); font-weight: 600; text-decoration: none; }
.step-body a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .steps-list { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 24px; }
}

/* === CTA === */
.cta {
  padding: 72px 0 40px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta p { font-size: 1rem; color: var(--text-dim); margin-bottom: 28px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-login { font-size: 0.88rem; color: var(--text-dim); transition: color 0.2s; }
.cta-login:hover { color: var(--text); }

/* === Support line === */
.support {
  padding: 0 0 48px;
  text-align: center;
  font-size: 0.85rem; color: var(--text-dim);
}
.support a {
  color: var(--accent); font-weight: 600;
  transition: opacity 0.2s;
}
.support a:hover { opacity: 0.75; }

/* === Footer === */
.ftr {
  border-top: 1px solid var(--border);
  padding: 40px 0 36px;
}
.ftr-in {
  display: flex; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.ftr-info p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.7; }
.ftr-info a { color: var(--accent); }
.ftr-info a:hover { opacity: 0.75; }

.ftr-links {
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
}
.ftr-links a {
  font-size: 0.78rem; color: var(--text-dim);
  transition: color 0.2s;
}
.ftr-links a:hover { color: var(--text); }

@media (max-width: 580px) {
  .ftr-in { flex-direction: column; }
  .ftr-links { text-align: left; }
}

/* === Fade-in === */
.fi { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.fi.v { opacity: 1; transform: none; }

/* === Locations === */
.locs { padding: 64px 0; }
.locs h2 {
  font-size: 1.6rem; font-weight: 800; margin-bottom: 40px; letter-spacing: -0.02em; text-align: center;
}
.locs-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.loc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.loc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 142, 248, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.loc-flag-wrap {
  width: 56px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.loc-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loc-details h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.loc-specs {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 14px;
}
.loc-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  margin-top: auto;
}
.loc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.loc-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 860px) {
  .locs-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .locs-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .loc-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 16px 20px;
  }
  .loc-flag-wrap {
    margin-bottom: 0;
    margin-right: 16px;
    flex-shrink: 0;
  }
  .loc-details {
    flex-grow: 1;
  }
  .loc-specs {
    margin-bottom: 0;
  }
  .loc-status-wrap {
    margin-top: 0;
    margin-left: auto;
  }
}
