:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --bg-section: #111111;
  --red: #e11d48;
  --red-dim: #be123c;
  --red-glow: rgba(225, 29, 72, 0.18);
  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --border: #222;
  --border-light: #2a2a2a;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: inherit;
  padding: 11px 20px; border-radius: var(--radius-sm);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 20px var(--red-glow); }
.btn-primary:hover { background: var(--red-dim); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-outline:hover { background: var(--bg-card); border-color: #3a3a3a; }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.btn-block { width: 100%; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10,10,10,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-secondary); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 20px; }

/* ── Hero ── */
.hero {
  padding: clamp(64px, 12vw, 130px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 90px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, var(--red-glow), transparent 60%),
    var(--bg);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--red);
  background: var(--red-glow); border: 1px solid rgba(225,29,72,.3);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub { font-size: clamp(16px, 2.2vw, 20px); color: var(--text-secondary); max-width: 680px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ── */
.section { padding: clamp(56px, 9vw, 100px) clamp(16px, 4vw, 40px); max-width: var(--maxw); margin: 0 auto; }
.section-alt { background: var(--bg-section); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(26px, 4vw, 40px); text-align: center; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-desc { text-align: center; color: var(--text-secondary); max-width: 620px; margin: 0 auto 48px; font-size: 17px; }

/* ── Service cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: #333; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 18px; background: var(--red-glow); color: var(--red);
}
.card-icon svg { width: 26px; height: 26px; fill: currentColor; }
.card-icon.wa    { color: #25d366; background: rgba(37, 211, 102, 0.12); }
.card-icon.tg    { color: #29a9eb; background: rgba(41, 169, 235, 0.12); }
.card-icon.web   { color: #10b981; background: rgba(16, 185, 129, 0.12); }
.card-icon.phone { color: #00c389; background: rgba(0, 195, 137, 0.12); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card-summary { color: var(--text-secondary); font-size: 15px; margin-bottom: 18px; }
.card-features { list-style: none; margin-bottom: 22px; display: flex; flex-direction: column; gap: 9px; }
.card-features li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--text-secondary); }
.card-features li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.card-trial {
  display: inline-block; align-self: flex-start; margin: auto 0 18px;
  font-size: 13px; font-weight: 600; color: var(--red);
  background: var(--red-glow); padding: 4px 12px; border-radius: 100px;
}
.card-cta { width: 100%; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { text-align: center; padding: 12px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
  background: var(--red); color: #fff; box-shadow: 0 4px 18px var(--red-glow);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 15px; }

/* ── Reviews ── */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
}
.review-avatar {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--red), var(--red-dim));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px;
  background-size: cover; background-position: center;
}
.review blockquote { font-size: 15.5px; color: var(--text); margin-bottom: 16px; }
.review figcaption strong { display: block; font-size: 15px; }
.review figcaption span { color: var(--text-muted); font-size: 13.5px; }
.reviews-note { text-align: center; color: var(--text-muted); margin-top: 36px; font-size: 14px; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 20px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-secondary); padding: 0 0 16px; font-size: 15px; }

/* ── Open Source ── */
.os-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.os-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px; color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.os-card:hover { transform: translateY(-4px); border-color: #333; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.os-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.os-card h3 { font-size: 24px; margin: 8px 0 10px; }
.os-tagline { color: var(--text); font-size: 16px; margin-bottom: 10px; }
.os-desc { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 18px; }
.os-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; font-size: 15px; }
.os-cta .arrow { transition: transform .15s ease; }
.os-card:hover .os-cta .arrow { transform: translateX(4px); }

/* ── CTA band ── */
.cta-band {
  text-align: center; padding: clamp(56px, 9vw, 100px) 20px;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, var(--red-glow), transparent 70%);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 38px); margin-bottom: 10px; letter-spacing: -0.02em; }
.cta-band p { color: var(--text-secondary); margin-bottom: 28px; font-size: 17px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 44px clamp(16px, 4vw, 40px); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer-brand { display: flex; align-items: center; }
.footer-logo { height: 44px; width: auto; display: block; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { color: var(--text-secondary); font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-note { width: 100%; color: var(--text-muted); font-size: 13px; padding-top: 14px; border-top: 1px solid var(--border); }
.footer-note a { color: var(--text-secondary); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 32px; width: 100%; max-width: 440px;
  position: relative; max-height: 90vh; overflow-y: auto;
  scrollbar-width: thin;                       /* Firefox */
  scrollbar-color: var(--border-light) transparent;
}
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 8px; }
.modal::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--text-muted); font-size: 28px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h3 { font-size: 23px; margin-bottom: 6px; }
.modal-sub { color: var(--text-secondary); font-size: 15px; margin-bottom: 22px; }
#leadForm { display: flex; flex-direction: column; gap: 14px; }
#leadForm label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-secondary); }
#leadForm .opt { color: var(--text-muted); font-weight: 400; }
#leadForm input, #leadForm select, #leadForm textarea {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  padding: 11px 13px; color: var(--text); font-size: 15px; font-family: inherit;
}
#leadForm input:focus, #leadForm select:focus, #leadForm textarea:focus {
  outline: none; border-color: var(--red);
}
#leadForm textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.form-msg { text-align: center; font-size: 14.5px; padding: 10px; border-radius: var(--radius-sm); }
.form-msg.err { background: var(--red-glow); color: #fb7185; }
.modal-success { text-align: center; padding: 16px 8px 8px; }
.success-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 32px; font-weight: 700;
  background: rgba(34, 197, 94, 0.14); color: #4ade80;
}
.modal-success h3 { font-size: 22px; margin-bottom: 8px; }
.modal-success p { color: var(--text-secondary); font-size: 15px; }
.modal-success .btn { margin-top: 22px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .steps, .reviews, .os-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}
