/* =========================================================
   Intelligent Systems — site theme
   ========================================================= */
:root {
  --ink: #070b1a;
  --navy: #0c1430;
  --navy-2: #121c42;
  --blue: #1e7fd6;
  --blue-2: #3b82f6;
  --cyan: #22d3ee;
  --violet: #7c5cff;
  --bg: #f5f7fc;
  --surface: #ffffff;
  --line: #e4e9f3;
  --text: #18203a;
  --muted: #5d6883;
  --on-dark: #e8edff;
  --on-dark-muted: #9aa6c7;

  --madrsti: #2563eb;
  --madrsti-2: #38bdf8;
  --weshop: #f97316;
  --weshop-2: #ec4899;
  --medical: #10b981;
  --medical-2: #06b6d4;

  --grad: linear-gradient(135deg, var(--blue-2) 0%, var(--violet) 55%, var(--cyan) 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(16, 28, 70, .18);
  --shadow-lg: 0 30px 60px -20px rgba(16, 28, 70, .35);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font-body); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(124, 92, 255, .7); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0; transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(7, 11, 26, .82); backdrop-filter: blur(14px);
  padding: 10px 0; box-shadow: 0 6px 30px -10px rgba(0, 0, 0, .5);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img { height: 38px; width: auto; }
.brand span { font: 700 18px var(--font-head); letter-spacing: -.01em; }
.brand small { display: block; font: 500 11px var(--font-body); color: var(--on-dark-muted); letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .dd > button {
  color: var(--on-dark); font: 500 15px var(--font-body); padding: 10px 14px; border-radius: 10px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav .dd > button:hover, .nav > a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .btn { margin-left: 10px; padding: .75em 1.3em; }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: 340px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: .2s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-menu a { display: flex; gap: 14px; padding: 12px; border-radius: 12px; color: var(--text); }
.dd-menu a:hover { background: var(--bg); }
.dd-menu i { font-size: 20px; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; }
.dd-menu strong { display: block; font: 600 15px var(--font-head); }
.dd-menu span { font-size: 13px; color: var(--muted); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 70px 16px auto 16px; flex-direction: column; align-items: stretch;
    background: var(--navy); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 14px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav.open { display: flex; }
  .dd-menu { position: static; transform: none; width: auto; opacity: 1; visibility: visible; background: transparent; box-shadow: none; padding: 0 0 0 10px; }
  .dd:hover .dd-menu { transform: none; }
  .dd-menu a { color: var(--on-dark); }
  .dd-menu a:hover { background: rgba(255, 255, 255, .06); }
  .dd-menu span { color: var(--on-dark-muted); }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Dark hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, .35), transparent 60%),
              radial-gradient(900px 500px at 0% 100%, rgba(34, 211, 238, .22), transparent 60%),
              var(--ink);
  padding: 170px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font: 600 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #cfd8ff;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); color: #fff; font-weight: 700; }
.hero .lead { font-size: 18px; color: var(--on-dark-muted); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero-trust div strong { display: block; font: 700 30px var(--font-head); color: #fff; }
.hero-trust div span { font-size: 13px; color: var(--on-dark-muted); }

.hero-visual { position: relative; height: 520px; }
.float-card {
  position: absolute; border-radius: 22px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); padding: 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); animation: floaty 7s ease-in-out infinite;
}
.float-card.main { inset: 20px 60px 40px 60px; padding: 0; overflow: hidden; }
.float-card.main .bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.float-card.main .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.float-card.main .bar i:nth-child(2) { background: #febc2e; }
.float-card.main .bar i:nth-child(3) { background: #28c840; }
.code {
  font: 13.5px/1.9 "JetBrains Mono", ui-monospace, monospace; padding: 18px 20px; color: #c7d2fe; white-space: pre;
}
.code .k { color: #c084fc; } .code .s { color: #5eead4; } .code .f { color: #7dd3fc; } .code .c { color: #64748b; }
.float-card.s1 { left: -10px; bottom: 10px; width: 220px; animation-delay: -2s; }
.float-card.s2 { right: -10px; top: 0; width: 210px; animation-delay: -4s; }
.float-card .mini { display: flex; align-items: center; gap: 12px; color: #fff; }
.float-card .mini i { font-size: 20px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); }
.float-card .mini strong { display: block; font: 700 18px var(--font-head); }
.float-card .mini span { font-size: 12px; color: var(--on-dark-muted); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 960px) {
  .hero { padding: 130px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; }
  .float-card.main { inset: 20px 10px 50px 10px; }
}

/* Page hero (sub pages) */
.page-hero { padding: 160px 0 90px; }
.breadcrumbs { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 16px; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.tight { padding: 80px 0; }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.white { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .tag {
  display: inline-block; font: 700 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 14px;
}
.section.dark .section-head .tag { color: var(--cyan); }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); }
.section-head p { color: var(--muted); font-size: 18px; }
.section.dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Logos / stats strip ---------- */
.stats-band { margin-top: -60px; position: relative; z-index: 5; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 34px 28px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 700 40px var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.card:hover::after { transform: scaleX(1); }
.card .ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 24px;
  color: #fff; background: var(--grad); margin-bottom: 22px; box-shadow: 0 12px 24px -10px rgba(124, 92, 255, .7);
}
.card h3 { font-size: 20px; margin-bottom: .5em; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.section.dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); }
.section.dark .card p { color: var(--on-dark-muted); }

/* ---------- Product showcase ---------- */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 56px; border-radius: 36px; margin-bottom: 36px; overflow: hidden; position: relative;
}
.product:nth-child(even) .product-media { order: -1; }
.product .badge {
  display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--font-body);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; background: rgba(255, 255, 255, .7);
}
.product h3 { font-size: clamp(28px, 3vw, 40px); }
.product p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.checks i { color: var(--accent, var(--violet)); font-size: 18px; line-height: 1.4; }
.product.madrsti { background: linear-gradient(135deg, #eaf1ff, #e3f5ff); --accent: var(--madrsti); }
.product.weshop { background: linear-gradient(135deg, #fff1e7, #ffe9f3); --accent: var(--weshop); }
.product.medical { background: linear-gradient(135deg, #e5faf2, #e2f7fb); --accent: var(--medical); }
.product .btn-accent { background: var(--accent); color: #fff; box-shadow: 0 14px 28px -12px var(--accent); }
.product-stats { display: flex; gap: 28px; margin-bottom: 26px; flex-wrap: wrap; }
.product-stats strong { display: block; font: 700 30px var(--font-head); color: var(--accent); }
.product-stats span { font-size: 13px; color: var(--muted); }
.product-media { position: relative; min-height: 380px; display: grid; place-items: center; }
@media (max-width: 960px) {
  .product { grid-template-columns: 1fr; padding: 34px 24px; gap: 30px; }
  .product:nth-child(even) .product-media { order: 0; }
  .checks { grid-template-columns: 1fr; }
}

/* Phone frame */
.phone {
  width: 230px; aspect-ratio: 9 / 19.5; border-radius: 38px; padding: 10px; background: #0b1020;
  box-shadow: 0 40px 80px -30px rgba(10, 20, 60, .55), inset 0 0 0 2px #2a3354; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; border-radius: 12px; background: #0b1020; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.phone.sm { width: 190px; }
.phones { display: flex; align-items: center; justify-content: center; }
.phones .phone:nth-child(1) { transform: rotate(-7deg) translate(40px, 20px); z-index: 1; }
.phones .phone:nth-child(2) { z-index: 2; }
.phones .phone:nth-child(3) { transform: rotate(7deg) translate(-40px, 20px); z-index: 1; }
@media (max-width: 560px) {
  .phones .phone { width: 150px; }
  .phones .phone:nth-child(1) { transform: rotate(-7deg) translate(50px, 16px); }
  .phones .phone:nth-child(3) { transform: rotate(7deg) translate(-50px, 16px); }
}

/* Illustrated mock (WeShop / Medical) */
.mock {
  width: 100%; max-width: 440px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f3f5fa; }
.mock-top i { width: 9px; height: 9px; border-radius: 50%; background: #d7dcea; }
.mock-top .url { margin-left: 10px; flex: 1; height: 22px; border-radius: 8px; background: #fff; font-size: 11px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; }
.mock-body { padding: 18px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shop-item { border-radius: 14px; background: #f7f8fc; padding: 10px; }
.shop-item .thumb { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 28px; color: #fff; margin-bottom: 8px; }
.shop-item .l1 { height: 7px; border-radius: 4px; background: #e2e6f0; margin-bottom: 6px; }
.shop-item .price { font: 700 12px var(--font-head); color: var(--weshop); }
.mock-banner { border-radius: 14px; padding: 16px; color: #fff; margin-bottom: 14px; background: linear-gradient(120deg, var(--weshop), var(--weshop-2)); }
.mock-banner strong { font: 700 18px var(--font-head); display: block; }
.mock-banner span { font-size: 12px; opacity: .9; }
.med-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #f5fbf9; margin-bottom: 10px; }
.med-row .av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--medical), var(--medical-2)); }
.med-row .t { flex: 1; }
.med-row .t b { display: block; font-size: 13px; }
.med-row .t small { color: var(--muted); font-size: 11px; }
.pill { font: 600 11px var(--font-body); padding: 4px 10px; border-radius: 999px; background: #d1fae5; color: #047857; }
.pill.warn { background: #fef3c7; color: #b45309; }
.pill.blue { background: #dbeafe; color: #1d4ed8; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 10px 4px 0; }
.chart-bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--medical-2), var(--medical)); opacity: .85; }

/* ---------- Process ---------- */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: s; content: "0" counter(s); position: absolute; top: 0; left: 0;
  font: 800 56px var(--font-head); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9;
}
.step h3 { font-size: 20px; }
.step p { color: var(--on-dark-muted); font-size: 15px; }

/* Tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; box-shadow: 0 4px 12px -8px rgba(16, 28, 70, .2);
}
.chip i { color: var(--violet); }

/* ---------- Team ---------- */
.member { text-align: center; }
.member .photo {
  aspect-ratio: 1; border-radius: 26px; overflow: hidden; margin-bottom: 18px; position: relative;
  background: var(--grad); padding: 3px;
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; filter: saturate(.95); transition: transform .5s; }
.member:hover .photo img { transform: scale(1.04); }
.member h3 { font-size: 19px; margin-bottom: 2px; }
.member span { color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  border-radius: 36px; padding: 70px 56px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 90% 0%, rgba(34, 211, 238, .45), transparent 60%),
              radial-gradient(600px 300px at 0% 100%, rgba(236, 72, 153, .35), transparent 60%),
              linear-gradient(135deg, #1b2a78, #4c2fd1);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); color: #fff; margin-bottom: .3em; }
.cta p { color: #d7defb; margin: 0; font-size: 17px; }
@media (max-width: 640px) { .cta { padding: 44px 26px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-bottom: 16px; }
.info-item i { font-size: 22px; width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.info-item h3 { font-size: 16px; margin-bottom: 4px; }
.info-item p { margin: 0; color: var(--muted); }
.info-item a:hover { color: var(--violet); }
.form { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } .form { padding: 24px; } }
.form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font: 15px var(--font-body); color: var(--text); margin-bottom: 16px; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, .15); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 14px; margin-top: 12px; display: none; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 360px; margin-top: 40px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 15px; }
.site-footer li a:hover { color: #fff; }
.site-footer .contact-line { display: flex; gap: 10px; }
.site-footer .contact-line i { color: var(--cyan); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--violet); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 60px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* ---------- Madrsti page ---------- */
.m-hero { background: radial-gradient(1000px 520px at 85% 0%, rgba(56, 189, 248, .35), transparent 60%),
                     radial-gradient(800px 500px at 0% 100%, rgba(37, 99, 235, .45), transparent 60%), #06102e; }
.m-hero .grad-text { background: linear-gradient(120deg, #60a5fa, #38bdf8, #a5f3fc); -webkit-background-clip: text; background-clip: text; }
.m-hero .btn-primary { background: linear-gradient(135deg, #2563eb, #0ea5e9); box-shadow: 0 12px 30px -10px rgba(14, 165, 233, .7); }
.m-logo { width: 84px; height: 84px; border-radius: 22px; background: #fff; padding: 8px; margin-bottom: 22px; box-shadow: 0 16px 40px -14px rgba(56, 189, 248, .8); }
.m-logo img { width: 100%; height: 100%; object-fit: contain; }

.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .module-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
.module {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); transition: .25s; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%;
}
.module:hover { border-color: var(--madrsti); transform: translateY(-3px); box-shadow: var(--shadow); }
.module i { font-size: 20px; width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.module b { display: block; font: 600 15px var(--font-head); }
.module small { color: var(--muted); font-size: 12.5px; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 70px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.feature-row:first-of-type { border-top: 0; }
.feature-row.flip .feature-media { order: -1; }
.feature-row .num { font: 700 13px var(--font-body); color: var(--madrsti); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.feature-row .num i { font-size: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--madrsti), var(--madrsti-2)); }
.feature-row h3 { font-size: clamp(26px, 2.8vw, 36px); }
.feature-row > div > p { color: var(--muted); font-size: 17px; }
.feature-row ul { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-row li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.feature-row li i { color: var(--madrsti); font-size: 18px; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 70%); z-index: 0;
}
.feature-media > * { position: relative; z-index: 1; }
.shot-wide { border-radius: 20px; box-shadow: var(--shadow-lg); border: 6px solid #fff; background: #fff; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 36px; padding: 50px 0; }
  .feature-row.flip .feature-media { order: 0; }
}

.timeline { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.timeline .yr { font: 800 54px var(--font-head); color: #fff; }
.timeline .line { flex: 1; min-width: 120px; max-width: 360px; height: 3px; background: linear-gradient(90deg, #2563eb, #38bdf8); border-radius: 3px; position: relative; }
.timeline .line::after { content: "\F285"; font-family: "bootstrap-icons"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: #38bdf8; }

.store-badges img { max-width: 320px; margin-top: 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 14px; z-index: 90;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 22px;
  opacity: 0; visibility: hidden; transition: .3s; box-shadow: var(--shadow-lg);
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- WeShop & Medical pages ---------- */
.w-hero { background: radial-gradient(1000px 520px at 85% 0%, rgba(236, 72, 153, .38), transparent 60%),
                     radial-gradient(800px 500px at 0% 100%, rgba(249, 115, 22, .35), transparent 60%), #1a0b16; }
.w-hero .grad-text { background: linear-gradient(120deg, #fb923c, #f472b6); -webkit-background-clip: text; background-clip: text; }
.w-hero .btn-primary, .theme-weshop .btn-primary { background: linear-gradient(135deg, var(--weshop), var(--weshop-2)); box-shadow: 0 12px 30px -10px rgba(236, 72, 153, .7); }
.theme-weshop .card .ic { background: linear-gradient(135deg, var(--weshop), var(--weshop-2)); box-shadow: 0 12px 24px -10px rgba(236, 72, 153, .6); }
.theme-weshop .card::after { background: linear-gradient(90deg, var(--weshop), var(--weshop-2)); }
.theme-weshop .section-head .tag { color: var(--weshop-2); }

.md-hero { background: radial-gradient(1000px 520px at 85% 0%, rgba(6, 182, 212, .35), transparent 60%),
                      radial-gradient(800px 500px at 0% 100%, rgba(16, 185, 129, .35), transparent 60%), #04161a; }
.md-hero .grad-text { background: linear-gradient(120deg, #34d399, #67e8f9); -webkit-background-clip: text; background-clip: text; }
.md-hero .btn-primary, .theme-medical .btn-primary { background: linear-gradient(135deg, var(--medical), var(--medical-2)); box-shadow: 0 12px 30px -10px rgba(6, 182, 212, .7); }
.theme-medical .card .ic { background: linear-gradient(135deg, var(--medical), var(--medical-2)); box-shadow: 0 12px 24px -10px rgba(6, 182, 212, .6); }
.theme-medical .card::after { background: linear-gradient(90deg, var(--medical), var(--medical-2)); }
.theme-medical .section-head .tag { color: var(--medical); }
.hero .mock { margin-left: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split ul { list-style: none; padding: 0; margin: 20px 0 0; }
.split li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.split li i { color: var(--accent, var(--violet)); font-size: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis div { background: #f7f8fc; border-radius: 12px; padding: 10px; }
.kpis b { display: block; font: 700 16px var(--font-head); }
.kpis small { font-size: 11px; color: var(--muted); }
.shop-bars span { background: linear-gradient(180deg, var(--weshop), var(--weshop-2)); }
