/* ==========================================================================
   Advanced Software — dark theme stylesheet
   Tokens: bg #0b0b10 · surface #16161d · purple #2b12a8 · pink #fb17ce
   ========================================================================== */

:root {
  --bg: #0b0b10;
  --surface: #16161d;
  --surface-2: #1e1e28;
  --text: #f2f2f5;
  --text-muted: #a6a6b3;
  --purple: #2b12a8;
  --purple-light: #8b6cff;
  --pink: #fb17ce;
  --pink-hover: #e00fb6;
  --white: #ffffff;
  --dark: #0b0b10;
  --gray: #a6a6b3;
  --border: rgba(255,255,255,.09);
  --border-soft: rgba(255,255,255,.14);
  --radius: 10px;
  --container: 1200px;
  --shadow: 0 25px 50px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

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

.section { padding: 90px 0; position: relative; overflow: hidden; }
.section--tight { padding: 60px 0; }
.section--dark { background: var(--bg); color: var(--text); }
.section--purple { background: var(--purple); color: var(--white); }
.section--light { background: var(--surface); }

.eyebrow {
  display: inline-block;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
  font-size: .78rem;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 640px;
  color: var(--white);
}
.section-title u { text-decoration-color: var(--pink); text-underline-offset: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px 999px 999px 4px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--pink { background: var(--pink); color: var(--white); }
.btn--pink:hover { background: var(--pink-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(251,23,206,.35); }
.btn--outline { background: transparent; color: var(--white); box-shadow: 0 0 0 1.5px var(--white) inset; }
.btn--outline:hover { background: var(--white); color: var(--purple); }
.btn--dark { background: var(--surface-2); color: var(--white); box-shadow: 0 0 0 1px var(--border-soft) inset; }
.btn--dark:hover { background: var(--pink); color: var(--white); box-shadow: none; }
.btn--small { padding: 10px 22px; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.topbar {
  background: var(--surface);
  color: var(--text-muted);
  font-size: .82rem;
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; justify-content: flex-end; gap: 22px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--text-muted); }
.topbar a:hover { color: var(--pink); }
.topbar span { display: flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,16,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.logo img {
  height: 40px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.logo { display: flex; align-items: center; gap: 10px; font-family: "Raleway", sans-serif; font-weight: 800; font-size: 1.2rem; }

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 30px 16px;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: .93rem;
  color: var(--text);
}
.main-nav > ul > li.current > a,
.main-nav > ul > li > a:hover { color: var(--pink); }
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-2);
  min-width: 220px;
  box-shadow: var(--shadow);
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
  border-top: 3px solid var(--pink);
}
.main-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { display: block; padding: 10px 20px; font-size: .88rem; color: var(--text); }
.main-nav .sub-menu a:hover { background: var(--surface); color: var(--pink); }
.main-nav .has-children > a::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .6; }

.header-cta { display: flex; align-items: center; gap: 18px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
}
.lang-switch-btn:hover { border-color: var(--pink); color: var(--pink); }
.lang-switch-btn .flag { font-size: 1rem; line-height: 1; }
.lang-switch-btn::after { content: "▾"; font-size: .7em; opacity: .6; }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 150px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
  z-index: 50;
}
.lang-switch.open .lang-switch-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 9px 10px;
  border-radius: 6px;
  font-size: .88rem;
  cursor: pointer;
  text-align: left;
}
.lang-switch-menu button:hover { background: var(--surface); color: var(--pink); }
.lang-switch-menu button[aria-current="true"] { color: var(--pink); font-weight: 700; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  border-radius: 6px;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(43,18,168,.93), rgba(8,6,26,.94)), url("../img/bgn-slide-01.jpg") center bottom / cover no-repeat;
  color: var(--white);
  padding: 90px 0 60px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy .eyebrow { color: var(--pink); }
.hero-copy h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.hero-copy h1 strong { color: var(--pink); }
.hero-copy .lead { font-size: 1.08rem; color: #d9d6f5; max-width: 480px; }
.hero-copy .lead strong { color: var(--white); }
.hero-art img {
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.5));
  max-height: 420px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* ---------- Info cards (3-up) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -70px;
  position: relative;
  z-index: 2;
}
.info-card {
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-card img { height: 190px; width: 100%; object-fit: cover; }
.info-card .body { padding: 26px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--white); }
.info-card p { color: #d9d6f5; font-size: .92rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: "Raleway", sans-serif; font-weight: 800; font-size: 3rem; color: var(--pink); }
.stat .label { font-family: "Raleway", sans-serif; font-weight: 600; color: var(--white); opacity: .85; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; margin-top: 50px; }
.feature {
  text-align: left;
}
.feature .ico {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  color: var(--purple-light);
  border: 1.5px solid var(--border-soft);
  transition: all .2s ease;
}
.feature:hover .ico { background: var(--pink); color: var(--white); border-color: var(--pink); transform: translateY(-4px); }
.feature h4 { font-size: 1.02rem; margin-bottom: 8px; color: var(--white); }
.feature p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ---------- Technology split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--surface);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
}
.newsletter .copy { padding: 50px; }
.newsletter img { height: 100%; width: 100%; object-fit: cover; }
.newsletter-form { display: flex; gap: 10px; margin-top: 22px; max-width: 420px; }
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: #191919;
  font-family: "Open Sans", sans-serif;
}
.newsletter-note { font-size: .82rem; opacity: .8; margin-top: 10px; color: var(--pink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  color: var(--text-muted);
  padding-top: 70px;
  position: relative;
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-grid .logo img { height: 34px; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; font-size: .92rem; }
.footer-grid a:hover { color: var(--pink); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: #75757f;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .lang-switch img { width: 16px; height: 16px; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: var(--purple);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-head .crumbs { font-size: .85rem; opacity: .75; margin-bottom: 10px; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--white); }
.page-head p { max-width: 620px; margin: 14px auto 0; opacity: .85; }

/* ---------- About page ---------- */
.badge-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.badge {
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.badge .ico { font-size: 2.2rem; margin-bottom: 12px; }
.badge h4 { margin-bottom: 6px; font-size: 1rem; color: var(--white); }
.badge p { font-size: .85rem; color: var(--text-muted); margin: 0; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.vm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.vm-card h3 { color: var(--purple-light); font-size: 1.05rem; }

.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.values-list li {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--text-muted);
}
.values-list li b { color: var(--purple-light); }
.values-list .dot {
  flex: none; width: 10px; height: 10px; margin-top: 6px;
  border-radius: 50%; background: var(--pink);
}

/* ---------- Products (PLP) ---------- */
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.products-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 100px;
}
.products-sidebar h4 { font-size: .95rem; margin-bottom: 14px; }
.products-sidebar ul li { margin-bottom: 4px; }
.products-sidebar ul li button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 9px 10px;
  border-radius: 6px;
  font-size: .9rem;
  cursor: pointer;
}
.products-sidebar ul li button:hover { background: var(--surface-2); color: var(--text); }
.products-sidebar ul li button[aria-current="true"] { background: var(--pink); color: var(--white); }
.products-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px; font-size: .9rem; color: var(--text-muted); gap: 16px; flex-wrap: wrap;
}
.products-toolbar select {
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--border-soft);
  font-family: "Open Sans", sans-serif; background: var(--surface-2); color: var(--text);
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--border-soft); }
.product-card .thumb { height: 200px; background: var(--white); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .thumb img { height: 100%; width: 100%; object-fit: contain; padding: 14px; }
.product-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pink); font-weight: 700; }
.product-card h3 { font-size: 1.05rem; margin: 8px 0 6px; color: var(--white); }
.product-card .price { font-family: "Raleway", sans-serif; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.product-card .price small { color: var(--text-muted); font-weight: 600; font-size: .72em; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft); font-family: "Raleway", sans-serif; font-weight: 600;
}
.pagination .current { background: var(--pink); color: var(--white); border-color: var(--pink); }

/* ---------- Product detail (PDP) ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pdp-gallery { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.pdp-gallery img { width: 100%; height: 420px; object-fit: contain; padding: 30px; }
.pdp-info .cat { color: var(--pink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.pdp-info h1 { margin-top: 10px; font-size: 2rem; }
.pdp-price { font-family: "Raleway", sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--white); margin: 14px 0; }
.pdp-price small { font-size: .5em; color: var(--text-muted); font-weight: 600; }
.pdp-desc { color: var(--text-muted); margin-bottom: 24px; }
.pdp-variants { margin-bottom: 26px; }
.pdp-variants label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.pdp-variants select {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border-soft);
  background: var(--surface-2); color: var(--text); font-family: "Open Sans", sans-serif;
}
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pdp-breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 30px; }
.pdp-breadcrumb a:hover { color: var(--pink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.contact-card {
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
}
.contact-card .ico { font-size: 1.8rem; color: var(--pink); margin-bottom: 14px; }
.contact-card h4 { margin-bottom: 8px; color: var(--white); }
.contact-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }
.map-wrap { margin-top: 60px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); position: relative; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.25) invert(.92) contrast(.9); }
.map-open-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: .88rem; color: var(--purple-light); font-weight: 700;
}
.map-open-link:hover { color: var(--pink); }

/* ---------- Floating contact button ---------- */
.contact-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 15px 24px 15px 20px;
  border-radius: 999px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(251,23,206,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(251,23,206,.5); }
.contact-fab svg { width: 18px; height: 18px; }

/* ---------- Contact modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5,4,10,.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  width: 100%; max-width: 460px;
  padding: 34px;
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(.98);
  transition: transform .2s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-soft); background: var(--surface-2); color: var(--text);
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--pink); color: var(--white); border-color: var(--pink); }
.modal-panel { position: relative; }
.modal-panel h3 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-panel .sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--white); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--pink); }
.form-field .error { color: #ff6b8b; font-size: .78rem; margin-top: 5px; display: none; }
.form-field.invalid input,
.form-field.invalid textarea { border-color: #ff6b8b; }
.form-field.invalid .error { display: block; }
.modal-panel .btn { width: 100%; justify-content: center; }
.modal-success {
  text-align: center; padding: 10px 0 4px;
}
.modal-success .ico { font-size: 2.4rem; margin-bottom: 12px; }
.modal-success p { color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container, .split, .newsletter, .vm-grid, .footer-grid, .products-layout, .pdp { grid-template-columns: 1fr; }
  .card-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .values-list { grid-template-columns: 1fr; }
  .newsletter img { display: none; }
  .card-grid { margin-top: 40px; }
  .products-sidebar { position: static; }
}
@media (max-width: 720px) {
  .main-nav, .header-cta .btn, .header-cta .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 10px 24px 24px; box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; align-items: flex-start; }
  .site-header.nav-open .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 12px; display: none; }
  .site-header.nav-open .main-nav li.open .sub-menu { display: block; }
  .card-grid, .stats { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; flex-wrap: wrap; }
  .section { padding: 60px 0; }
  .contact-fab span { display: none; }
  .contact-fab { padding: 15px; }
}
