:root {
  --bg: #0e0d10;
  --bg-alt: #16141a;
  --card: #1c1922;
  --text: #f3f1f5;
  --muted: #a9a3b2;
  --red: #c01030;
  --red-bright: #e62244;
  --border: #2b2733;
  --nav-bg: rgba(14, 13, 16, 0.85);
  --ok: #4ade80;
  --ok-bg: rgba(74, 222, 128, 0.1);
  --radius: 14px;
}

html[data-theme="light"] {
  --bg: #faf9f7;
  --bg-alt: #f2efec;
  --card: #ffffff;
  --text: #221a1f;
  --muted: #6e6371;
  --red: #c01030;
  --red-bright: #a80e2b;
  --border: #e6dfe2;
  --nav-bg: rgba(250, 249, 247, 0.85);
  --ok: #15803d;
  --ok-bg: rgba(21, 128, 61, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  transition: background 0.25s, color 0.25s;
}

h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.2; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6vw;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { height: 38px; }
.nav-name { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--text); font-size: 1.05rem; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  font: 600 0.85rem 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--red); color: var(--text); }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.nav-burger svg { width: 20px; height: 20px; display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  padding: 13px 28px;
  border: none;
  border-radius: 10px;
  font: 600 1rem 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--red-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text) !important; }
.btn-ghost:hover { background: var(--card); border-color: var(--red); }
.btn-small { padding: 8px 18px !important; font-size: 0.9rem !important; border-radius: 8px; color: #fff !important; }

/* ---- Hero ---- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 90px 6vw 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text { max-width: 580px; }

.eyebrow {
  color: var(--red-bright);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

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

.lead { color: var(--muted); font-size: 1.13rem; margin-bottom: 32px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-logo img {
  width: clamp(220px, 28vw, 380px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(192, 16, 48, 0.35));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---- Sections ---- */
.section { padding: 90px 6vw; max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; text-align: center; }
.section-sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 50px; }

.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-alt h2 { margin-bottom: 12px; }
.section-alt .section-sub { margin-bottom: 50px; }

/* ---- Service cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-5px); border-color: var(--red); }
.card-icon { margin-bottom: 16px; color: var(--red-bright); }
.card-icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 50px;
}

.step { text-align: center; padding: 0 14px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font: 700 1.3rem 'Sora', sans-serif;
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---- About ---- */
.about-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.about p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Contact form ---- */
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 0.92rem; font-weight: 500; }

.contact-form input,
.contact-form textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font: 400 1rem 'Inter', sans-serif;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--red); }

.contact-form .btn { align-self: center; min-width: 220px; }

.sent-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--ok);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
}
.sent-card svg { width: 46px; height: 46px; color: var(--ok); margin-bottom: 14px; }
.sent-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.sent-card p { color: var(--muted); margin-bottom: 22px; }
.sent-card[hidden] { display: none; }

/* ---- Trust bar ---- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 42px;
  max-width: 920px;
  margin: 52px auto 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}
.trust-item svg { width: 19px; height: 19px; color: var(--red-bright); flex-shrink: 0; }
.trust-item a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.trust-item a:hover { color: var(--text); }

/* ---- Footer ---- */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px 6vw;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-logo { height: 34px; opacity: 0.9; }
.footer a { color: var(--red-bright); text-decoration: none; }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s ease, transform 0.2s, border-color 0.2s;
}
.reveal.in { opacity: 1; translate: 0 0; }

/* ---- Tools strip ---- */
.tools {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw 70px;
  text-align: center;
}
.tools-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}
.tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
}
.tools-row span {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}
.tools-row span:hover { color: var(--text); opacity: 1; }

/* ---- Theme toggle ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--red); color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .hero-logo img { filter: drop-shadow(0 10px 30px rgba(192, 16, 48, 0.25)); }

/* ---- Demo cards ---- */
.demo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.demo-card:hover { transform: translateY(-5px); border-color: var(--red); }
.demo-card h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.demo-card p { color: var(--muted); font-size: 0.93rem; }

.demo-run {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--red-bright);
  font-weight: 600;
  font-size: 0.92rem;
}
.demo-run svg { width: 15px; height: 15px; }

/* ---- Demo modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: min(560px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 1.05rem; }

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
}
.modal-close:hover { color: var(--text); }

.modal-feed {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 340px;
}

.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.feed-item { animation: popIn 0.35s ease both; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.f-sys {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.f-sys svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--red-bright); }

.f-in, .f-out {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.f-in {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
}
.f-out {
  align-self: flex-end;
  background: var(--red);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}

.f-data {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
}
.f-data .f-data-title {
  font-weight: 600;
  color: var(--red-bright);
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.f-data .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
}
.f-data .row span:first-child { color: var(--muted); }

.f-done {
  background: var(--ok-bg);
  border: 1px solid var(--ok);
  color: var(--ok);
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}

/* ---- ROI calculator ---- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 880px;
  margin: 0 auto;
  align-items: center;
}

.calc-inputs { display: flex; flex-direction: column; gap: 18px; }

.calc-inputs label { display: flex; flex-direction: column; gap: 7px; font-size: 0.92rem; font-weight: 500; }

.calc-inputs input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--text);
  font: 600 1.05rem 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.calc-inputs input:focus { outline: none; border-color: var(--red); }

.calc-result { text-align: center; }

.calc-number {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  color: var(--red-bright);
  line-height: 1.1;
}

.calc-result p { color: var(--muted); margin: 10px 0 22px; font-size: 0.97rem; }

/* ---- Pricing ---- */
.diag-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: var(--card);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 26px 30px;
  max-width: 920px;
  margin: 0 auto 48px;
}
.diag-banner h3 { font-size: 1.15rem; margin-bottom: 6px; }
.diag-banner p { color: var(--muted); font-size: 0.95rem; }
.diag-banner .btn { flex-shrink: 0; }

.price-card { display: flex; flex-direction: column; }

.price {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--red-bright);
  margin: 10px 0 4px;
}
.price-from {
  font: 500 0.85rem 'Inter', sans-serif;
  color: var(--muted);
  margin-right: 6px;
}
.price-period { font-size: 0.95rem; color: var(--muted); font-weight: 600; }

.price-card > p { color: var(--muted); font-size: 0.93rem; }

.price-card ul {
  list-style: none;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}
.price-card li::before {
  content: "\2713";
  color: var(--red-bright);
  font-weight: 700;
  margin-right: 9px;
}

.price-card .btn { margin-top: auto; text-align: center; }

.price-featured { border-color: var(--red); }

.pricing-note {
  max-width: 760px;
  margin: 42px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---- FAQ ---- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--red); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--red-bright);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2013"; }

.faq details p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

/* ---- WhatsApp float ---- */
.wpp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.wpp-float:hover { transform: scale(1.08); }
.wpp-float svg { width: 30px; height: 30px; }
.wpp-float[hidden] { display: none; }

/* ---- Mobile ---- */
@media (max-width: 820px) {
  .hero { flex-direction: column-reverse; text-align: center; padding-top: 50px; }
  .hero-cta { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; gap: 32px; }
  .diag-banner { flex-direction: column; text-align: center; }

  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 6vw 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.05rem; }
}
