:root {
  --bg: #0a0e14;
  --bg-alt: #0d1218;
  --surface: #131a23;
  --surface-2: #171f2a;
  --border: #232d3a;
  --navy: #1b3654;
  --navy-2: #274a72;
  --accent: #3d7ab8;
  --accent-bright: #5b9bd9;
  --accent-soft: rgba(61, 122, 184, 0.14);
  --good: #34d399;
  --text: #eef2f7;
  --text-muted: #9aa8ba;
  --text-faint: #6b7889;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head p { margin-top: 14px; font-size: 1.05rem; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img { height: 38px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch a {
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

.lang-switch a.active { background: rgba(255, 255, 255, 0.16); color: #fff; }
.lang-switch a:hover:not(.active) { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-bright); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 80px;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(61, 122, 184, 0.22), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(52, 211, 153, 0.08), transparent 55%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--accent-bright); }

.hero-lede { font-size: 1.12rem; max-width: 540px; margin-bottom: 32px; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-fact { display: flex; flex-direction: column; gap: 2px; }
.hero-fact strong { font-size: 1.3rem; color: #fff; }
.hero-fact span { font-size: 0.82rem; color: var(--text-faint); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

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

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.browser-chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a4552;
}

/* ---------- Logos / trust strip ---------- */

.stack-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 28px 0;
}

.stack-strip .container {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.stack-strip .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-right: 6px;
}

.pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Feature grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.15s, transform 0.15s;
}

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

.feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 0.94rem; }

/* ---------- Alternating showcase rows ---------- */

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.showcase-row:first-of-type { border-top: none; }

.showcase-row.reverse .showcase-media { order: 2; }
.showcase-row.reverse .showcase-text { order: 1; }

.showcase-text .eyebrow { margin-bottom: 10px; }
.showcase-text h3 { font-size: 1.5rem; margin-bottom: 14px; color: #fff; }
.showcase-text p { font-size: 1rem; margin-bottom: 18px; }

.showcase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.showcase-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.94rem; color: var(--text-muted);
}
.showcase-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--good); }

.showcase-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.showcase-media img { width: 100%; height: auto; cursor: zoom-in; }

/* ---------- Roles ---------- */

.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.role-card p { font-size: 0.88rem; }

.role-admin { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.role-coadmin { background: rgba(217, 168, 44, 0.18); color: #e3b341; }
.role-manager { background: rgba(236, 72, 153, 0.16); color: #f472b6; }
.role-support { background: rgba(59, 130, 246, 0.16); color: #60a5fa; }
.role-reseller { background: rgba(168, 85, 247, 0.16); color: #c084fc; }
.role-cloud { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.role-user { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }

/* ---------- Billing ---------- */

.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.billing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.billing-card .step {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.billing-card h3 { color: #fff; margin-bottom: 10px; }
.billing-card p { font-size: 0.92rem; }

/* ---------- CTA / Pricing ---------- */

.cta-section {
  background: linear-gradient(135deg, var(--navy-2), #142132 60%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { max-width: 560px; margin: 0 auto 28px; font-size: 1.02rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 18px; font-size: 0.82rem; color: var(--text-faint); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 28px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand img { height: 22px; margin-bottom: 12px; }
.footer-brand p { max-width: 320px; font-size: 0.88rem; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-bottom .lang-switch a { color: var(--text-faint); }
.footer-bottom .lang-switch a.active { color: var(--text); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .billing-grid { grid-template-columns: 1fr; }
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; }
  .showcase-row.reverse .showcase-media, .showcase-row.reverse .showcase-text { order: initial; }
  section { padding: 64px 0; }
  .cta-section { padding: 40px 24px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 32px; }
}

body.nav-open .main-nav {
  display: flex;
  position: absolute;
  top: 78px; left: 0; right: 0;
  flex-direction: column;
  background: var(--navy);
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.nav-open .main-nav a { padding: 12px 14px; }
