:root {
  --bg: #0b0d12;
  --bg-soft: #12151d;
  --card: #161a24;
  --border: #232838;
  --text: #e8ebf2;
  --muted: #97a0b5;
  --accent: #6c8cff;
  --accent-2: #9b7bff;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11,13,18,0.7);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.brand .logo {
  width: 28px; height: 28px; display: block;
  filter: drop-shadow(0 0 10px rgba(108,140,255,0.55));
}
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- LANGUAGE TOGGLE ---------- */
.lang-toggle {
  display: flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; background: var(--bg-soft);
}
.lang-toggle button {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  padding: 6px 14px; font-size: 0.82rem; font-weight: 600; font-family: inherit;
}
.lang-toggle button.active { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; }

/* ---------- SHARED GRAD TEXT ---------- */
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- BADGE ---------- */
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--muted); font-size: 0.82rem; font-weight: 500; margin-bottom: 26px;
}

/* ---------- HOMEPAGE HERO ---------- */
.hero { padding: 110px 0 90px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,140,255,0.18), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; max-width: 860px; margin: 0 auto 22px;
}
.hero p { color: var(--muted); font-size: 1.18rem; max-width: 600px; margin: 0 auto 36px; }

/* ---------- BUTTONS ---------- */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 10px 30px rgba(108,140,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- SECTIONS ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- CARDS ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(108,140,255,0.18), rgba(155,123,255,0.18));
  border: 1px solid var(--border);
}
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; flex: 1; margin-bottom: 20px; }
.card a.link {
  color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
}
.card a.link:hover { gap: 10px; }
.card.soon { opacity: 0.65; }
.tag-soon {
  font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px; align-self: flex-start;
}

/* ---------- ABOUT / ALT SECTIONS ---------- */
.about, .section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about .wrap { max-width: 760px; text-align: center; }
.about h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 18px; }
.about p { color: var(--muted); font-size: 1.08rem; }

/* ---------- PRODUCT PAGE HERO ---------- */
.product-hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.product-hero::before {
  content: ""; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,140,255,0.16), transparent 60%);
  pointer-events: none;
}
.p-icon {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 18px;
  display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(135deg, rgba(108,140,255,0.2), rgba(155,123,255,0.2));
  border: 1px solid var(--border);
}
.product-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.product-hero p { color: var(--muted); font-size: 1.15rem; max-width: 580px; margin: 0 auto; }

/* ---------- BACK LINK ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.back-link:hover { color: var(--text); }

/* ---------- OVERVIEW ---------- */
.overview {
  max-width: 760px; margin: 0 auto;
  text-align: center; color: var(--muted); font-size: 1.08rem; line-height: 1.75;
}

/* ---------- HOW IT WORKS STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px;
}
.step .num {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 16px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- MOCKUP VISUALS ---------- */
.hero-mockup {
  margin: 56px auto 0;
  max-width: 900px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,140,255,0.12);
}
.hero-mockup svg { display: block; width: 100%; height: auto; }

/* Product page: 2-column hero */
.product-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.product-text .cta-row { justify-content: flex-start; margin-top: 28px; }
.product-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(108,140,255,0.1);
}
.product-visual svg { display: block; width: 100%; height: auto; }
@media (max-width: 820px) {
  .product-cols { grid-template-columns: 1fr; text-align: center; }
  .product-text .cta-row { justify-content: center; }
}

/* Product card previews */
.card-preview {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 18px;
}
.card-preview svg { display: block; width: 100%; height: auto; }

/* ---------- FOOTER ---------- */
footer { padding: 50px 0; text-align: center; border-top: 1px solid var(--border); }
footer .brand { justify-content: center; margin-bottom: 14px; }
footer p { color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--accent); text-decoration: none; }