/* ============================================================
   mTablica – Global Stylesheet
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg: #060b14;
  --line: rgba(255, 255, 255, .13);
  --txt: #f4f7ff;
  --muted: rgba(232, 241, 255, .7);
  --a: #67b2ff;
  --a2: #9ad8ff;
}

/* ---------- Scrollbar ---------- */
:root {
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 178, 255, .35) rgba(4, 8, 14, .95);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(4, 8, 14, .95);
}

::-webkit-scrollbar-thumb {
  background: rgba(103, 178, 255, .3);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(103, 178, 255, .6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--txt);
  background:
    radial-gradient(circle at 15% 0, rgba(103, 178, 255, .25), transparent 36%),
    radial-gradient(circle at 85% 8%, rgba(154, 216, 255, .16), transparent 32%),
    linear-gradient(180deg, #04070e, #0a1120);
  overflow-x: hidden;
}

body.intro-lock {
  overflow: hidden;
}

body.overflow-hidden {
  overflow: hidden;
}

/* ============================================================
   Particles canvas
   ============================================================ */
#particles {
  position: fixed;
  inset: 0;
  z-index: -2;
}

/* ============================================================
   Splash / Intro screen
   ============================================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(87, 150, 230, .24), transparent 52%),
    linear-gradient(180deg, #061226, #040c1b);
  opacity: 1;
  visibility: visible;
  transition: opacity .7s ease, visibility .7s ease;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-stars {
  position: absolute;
  inset: -30%;
  background-image:
    radial-gradient(2px 2px at 20% 22%, rgba(183, 224, 255, .95), transparent),
    radial-gradient(1.6px 1.6px at 74% 16%, rgba(179, 218, 255, .85), transparent),
    radial-gradient(1.2px 1.2px at 42% 70%, rgba(165, 209, 255, .8), transparent),
    radial-gradient(1.7px 1.7px at 84% 64%, rgba(190, 227, 255, .9), transparent);
  background-size: 330px 330px, 280px 280px, 245px 245px, 360px 360px;
  opacity: .66;
  transform: scale(1);
  filter: blur(0);
  transition:
    transform 1.12s cubic-bezier(.14, .62, .14, 1),
    opacity .88s ease,
    filter 1.12s ease;
}

#splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(142, 201, 255, .2), transparent 58%);
  opacity: .95;
  transform: scale(1);
  transition: transform .9s ease, opacity .75s ease;
}

.splash-logo {
  position: relative;
  z-index: 2;
  width: min(72vw, 640px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(6, 16, 36, .55));
  transform: scale(1);
  opacity: 1;
  transition:
    transform .95s cubic-bezier(.16, .68, .14, 1),
    opacity .65s ease,
    filter .95s ease;
}

.splash-text {
  width: min(92vw, 1080px);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  color: #f4f7ff;
  text-shadow: 0 8px 24px rgba(6, 16, 36, .45);
}

.splash-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(3rem, 12vw, 9.2rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
}

.splash-title .splash-t {
  color: var(--a);
}

.splash-subtitle {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  opacity: .95;
}

/* Splash warp animation */
#splash.go .splash-stars {
  transform: scale(3.25);
  opacity: 0;
  filter: blur(2px);
}

#splash.go::before {
  transform: scale(2.45);
  opacity: 0;
}

#splash.go .splash-logo {
  transform: scale(.34);
  opacity: 0;
  filter: drop-shadow(0 2px 8px rgba(6, 16, 36, .3)) blur(1.2px);
}

@media (prefers-reduced-motion: reduce) {
  #splash,
  .splash-stars,
  #splash::before,
  .splash-logo {
    transition: none;
  }
  .splash-stars {
    transform: none;
    opacity: .4;
  }
  .splash-logo {
    transform: none;
  }
}

/* ============================================================
   Navigation – floating pill
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 5vw;
  z-index: 50;
  pointer-events: none;
  transition: padding .35s;
}

nav.shrink {
  padding: 10px 5vw;
}

.nav-pill {
  pointer-events: all;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(4, 8, 14, .72);
  padding: 13px 26px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: padding .35s, box-shadow .35s;
}

nav.shrink .nav-pill {
  padding: 9px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--txt);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  padding: 5px 10px;
  border-radius: 9999px;
  transition: color .2s, background .2s;
}

nav a:hover {
  color: var(--a2);
  background: rgba(103, 178, 255, .08);
}

/* Hamburger button */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--txt);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}

.nav-burger:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
}

/* Mobile drawer overlay */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background .3s, backdrop-filter .3s;
}

.nav-drawer.is-open {
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: all;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: default;
  border: none;
}

.nav-drawer-panel {
  position: relative;
  margin: 16px;
  width: 100%;
  max-width: 300px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(4, 8, 14, .92);
  padding: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.nav-drawer-panel.is-open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--txt);
  cursor: pointer;
  transition: background .2s;
}

.nav-drawer-close:hover {
  background: rgba(255, 255, 255, .12);
}

.nav-drawer-links {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer-links a {
  display: block;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background .2s, color .2s;
  background: transparent;
}

.nav-drawer-links a:hover {
  background: rgba(103, 178, 255, .1);
  color: var(--a2);
}

/* ============================================================
   Hero section
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 130px 6vw 70px;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 40vw);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 14ch;
}

.hero p {
  margin-top: 20px;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.75;
}

/* Hero 3-D model panel */
.hero-mini {
  position: relative;
  justify-self: stretch;
  width: 100%;
  height: clamp(420px, 62vh, 620px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero-mini::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(
    circle at 58% 46%,
    rgba(109, 184, 255, .14),
    rgba(109, 184, 255, .05) 34%,
    transparent 72%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.hero-mini model-viewer {
  display: block;
  width: 80%;
  height: 80%;
  margin: 10% auto;
  --poster-color: transparent;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ---------- Shared utilities ---------- */
.kicker {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--a2);
}

.row {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.p {
  background: linear-gradient(120deg, #57a5ff, #83cfff);
  color: #021223;
  box-shadow: 0 16px 30px rgba(85, 165, 255, .3);
}

.btn.g {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
  color: var(--txt);
}

/* ============================================================
   Story teaser
   ============================================================ */
.story {
  padding: 10px 6vw 70px;
  display: grid;
  gap: 20px;
}

.story h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  opacity: 0;
  transform: translateY(24px);
  transition: .6s;
}

.story h2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Product story (sticky scroll)
   ============================================================ */
.product-story {
  padding: 0 6vw 20px;
  position: relative;
}

.product {
  position: sticky;
  top: 9vh;
  height: 82vh;
  display: grid;
  grid-template-columns: minmax(330px, 1.18fr) minmax(290px, .82fr);
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(14, 22, 38, .92), rgba(8, 14, 25, .9));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

/* Model panel */
.model {
  position: relative;
  padding: 16px;
  overflow: hidden;
}

#model {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  transition: opacity .35s ease, filter .35s ease;
}

.glow {
  position: absolute;
  width: 430px;
  height: 430px;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 189, 255, .45),
    rgba(124, 189, 255, .12) 36%,
    transparent 68%
  );
  filter: blur(20px);
  pointer-events: none;
  transition: .4s;
}

/* Integration screenshot overlay */
.integration-shot {
  position: absolute;
  inset: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  z-index: 2;
}

.integration-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}

.integration-shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(5, 11, 22, .74);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #d8ebff;
}

.model.show-integration #model {
  opacity: .16;
  filter: blur(1.6px);
}

.model.show-integration .glow {
  opacity: .25;
}

.model.show-integration .integration-shot {
  opacity: 1;
  transform: scale(1);
}

/* Stage info panel */
.stage {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#et {
  font-family: 'Sora', sans-serif;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--a2);
}

#tt {
  margin-top: 12px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  line-height: 1.15;
}

#td {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.72;
}

#tb {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

#tb p {
  font-size: .92rem;
  color: #d8e9ff;
}

/* Stage pills */
.pills {
  display: flex;
  gap: 10px;
}

.pill {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.pill.on,
.pill:hover {
  background: linear-gradient(120deg, #5da8ff, #92dcff);
  border-color: rgba(111, 187, 255, .85);
  color: #031122;
}

.story-track {
  height: 220vh;
}

/* ============================================================
   Generic section layout
   ============================================================ */
.sec {
  padding: 105px 6vw;
}

.title {
  max-width: 760px;
}

.title h2 {
  margin-top: 10px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.title p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.72;
}

/* ============================================================
   Dimensions section
   ============================================================ */
.dims {
  padding-top: 40px;
}

.dims-media {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(16, 25, 40, .94), rgba(9, 15, 27, .9));
  box-shadow: 0 24px 54px rgba(0, 0, 0, .34);
}

.dims-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
}

.dims-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

.dim-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dim-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(165deg, rgba(15, 24, 39, .92), rgba(9, 15, 27, .9));
}

.dim-value {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.dim-label {
  margin-top: 8px;
  font-family: 'Sora', sans-serif;
  font-size: .94rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--a2);
}

.dim-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.64;
  font-size: .92rem;
}

/* ============================================================
   Showcase section
   ============================================================ */
.showcase {
  padding-top: 30px;
}

.showcase-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 16px;
}

.showcase-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(165deg, rgba(16, 25, 40, .94), rgba(9, 15, 27, .9));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
}

.showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
}

.showcase-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.58;
}

/* ============================================================
   Integration section
   ============================================================ */
.integration {
  padding-top: 16px;
}

.integration-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.integration-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(170deg, rgba(17, 28, 45, .93), rgba(8, 13, 21, .9));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.integration-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.12rem;
}

.integration-card p {
  margin-top: 10px;
  font-size: .92rem;
  line-height: 1.58;
  color: var(--muted);
}

.integration-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start;
}

.integration-cta-slot {
  display: flex;
  align-items: center;
  min-height: 52px;
}

/* ============================================================
   Target audience section
   ============================================================ */
.target {
  padding-top: 28px;
}

.target-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.target-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(170deg, rgba(17, 28, 45, .93), rgba(8, 13, 21, .9));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.target-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.18rem;
}

.target-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.target-list p {
  font-size: .92rem;
  line-height: 1.58;
  color: var(--muted);
}

.target-list b {
  color: #d4eaff;
}

/* ============================================================
   How it works section
   ============================================================ */
.how {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 17, 30, .85), rgba(10, 14, 24, .82));
}

.howg {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hc {
  --py: 0px;
  position: relative;
  padding: 24px 20px;
  min-height: 230px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 31, 53, .92), rgba(10, 18, 33, .88));
  transform: translateY(var(--py));
  transition: .3s;
}

.hc:hover {
  transform: translateY(calc(var(--py) - 8px));
  border-color: rgba(123, 200, 255, .6);
}

.hn {
  position: absolute;
  right: 12px;
  top: 0;
  font-family: 'Sora', sans-serif;
  font-size: 4rem;
  color: rgba(149, 205, 255, .16);
}

.hc h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
}

.hc p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: .7s;
}

.reveal.v {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Admin panel mockup
   ============================================================ */
.admin-shell {
  margin-top: 36px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
}

.admin {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 34, 59, .38);
  transform-style: preserve-3d;
  transition: transform .2s;
}

.left {
  background: #edf2f7;
  color: #1f2c40;
  padding: 18px 14px;
}

.left h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
}

.menu {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.menu div {
  padding: 9px 10px;
  border-radius: 10px;
  font-size: .9rem;
  color: #2c3f59;
}

.menu .on {
  background: #ffdfe3;
  color: #9f3044;
  font-weight: 700;
}

.right {
  background: #f8fbff;
  color: #1e2f47;
  padding: 20px 16px;
}

.head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.head h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
}

.head p {
  margin-top: 4px;
  color: #51657f;
  font-size: .86rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e9f3ff;
  color: #2c4d72;
  font-size: .82rem;
  font-weight: 700;
}

.tbl {
  margin-top: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  overflow: hidden;
}

.r {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 1fr;
  gap: 8px;
  padding: 10px;
  font-size: .84rem;
  border-bottom: 1px solid #e3eaf4;
}

.r:last-child {
  border-bottom: 0;
}

.r.h {
  background: #eff4fb;
  font-weight: 700;
  color: #2a415f;
}

.r.on {
  background: #f1f7ff;
}

/* ============================================================
   ROI calculator
   ============================================================ */
.roi {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 14, 26, .92), rgba(7, 11, 20, .95));
}

.roig {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, .95fr);
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(16, 26, 44, .95), rgba(8, 14, 24, .88));
}

.f {
  display: grid;
  gap: 12px;
}

.fd {
  display: grid;
  gap: 6px;
}

.fd label {
  color: var(--muted);
  font-size: .9rem;
}

.fd input {
  min-height: 48px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .03);
  color: var(--txt);
  padding: 0 12px;
}

.fd input:focus {
  outline: none;
  border-color: rgba(129, 205, 255, .8);
}

.res {
  margin-top: 6px;
  border: 1px solid rgba(112, 190, 255, .38);
  border-radius: 12px;
  padding: 14px;
  background: rgba(64, 136, 215, .1);
}

.res p {
  font-size: .84rem;
  color: var(--muted);
}

#rv {
  display: block;
  margin-top: 3px;
  font-family: 'Sora', sans-serif;
  font-size: 1.95rem;
}

.note {
  margin-top: 8px;
  font-size: .8rem;
  color: rgba(216, 234, 255, .62);
  line-height: 1.5;
}

/* ============================================================
   Security grid
   ============================================================ */
.secg {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sc {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(170deg, rgba(17, 28, 45, .93), rgba(8, 13, 21, .9));
}

.sc b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(95, 170, 255, .2);
  color: #b7dfff;
  font-size: .75rem;
  letter-spacing: .08em;
}

.sc h3 {
  margin-top: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
}

.sc p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.62;
}

/* ============================================================
   Compare section
   ============================================================ */
.compare {
  padding-top: 10px;
}

.compare-shell {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(16, 25, 40, .95), rgba(8, 13, 21, .92));
  box-shadow: 0 20px 45px rgba(0, 0, 0, .32);
  overflow: hidden;
}

.compare-head,
.compare-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
}

.compare-head {
  background: rgba(255, 255, 255, .03);
  font-family: 'Sora', sans-serif;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--a2);
}

.compare-row {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.cmp-metric {
  flex: 1.7;
  font-size: .95rem;
  color: #d8e9ff;
}

.cmp-col {
  flex: 1;
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.06rem;
}

.cmp-col.bad {
  color: #ffb3b9;
}

.cmp-col.good {
  color: #9de7cb;
}

/* ============================================================
   Case study
   ============================================================ */
.case-study {
  position: relative;
  overflow: hidden;
}

.case-study-shell {
  position: relative;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(16, 26, 44, .95), rgba(8, 14, 24, .88));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}

.case-study-shell::before {
  content: "";
  position: absolute;
  inset: -20% -8% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(118, 191, 255, .26), transparent 66%);
  pointer-events: none;
  filter: blur(6px);
}

.case-grid {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.case-counter {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
}

.case-value {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1;
  color: #e6f3ff;
}

.case-label {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   Social proof
   ============================================================ */
.proof {
  padding-top: 28px;
}

.proof-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  font-weight: 600;
  color: #dcecff;
}

.proof-logos {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.proof-logo {
  min-height: 54px;
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(219, 235, 255, .52);
  font-size: .84rem;
  background: rgba(255, 255, 255, .02);
}

/* ============================================================
   Sticky CTA group
   ============================================================ */
.cta-dock {
  margin-top: 18px;
  min-height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sticky-cta-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sticky-cta-group.is-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
}

.sticky-cta-group.is-docked {
  position: static;
  z-index: auto;
}

.sticky-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(120deg, #57a5ff, #83cfff);
  color: #021223;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(85, 165, 255, .35);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 0;
  will-change: transform;
}

.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(85, 165, 255, .38);
}

.sticky-mosiedle-slot {
  display: flex;
  align-items: center;
}

.btn.sticky-mosiedle-btn {
  min-height: 52px;
  padding: 0 22px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  background: #f6e6e8;
  border-color: #f6e6e8;
  color: #2a1c22;
  box-shadow: 0 12px 24px rgba(246, 230, 232, .35);
}

.btn.sticky-mosiedle-btn:hover {
  background: #efd9dd;
  border-color: #efd9dd;
  color: #2a1c22;
}

/* ============================================================
   Cinematic CTA section
   ============================================================ */
.cine {
  position: relative;
  min-height: 74vh;
  padding: 120px 6vw 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.cine h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.cine p {
  margin-top: 14px;
  color: var(--muted);
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  /* border-top: 1px solid var(--line); */
  padding: 26px 6vw;
  color: rgba(229, 239, 255, .6);
  font-size: .9rem;
  text-align: center;
}

/* ============================================================
   Responsive – tablets
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-mini {
    justify-self: center;
    width: min(78vw, 460px);
    height: clamp(300px, 56vw, 500px);
  }

  .product {
    grid-template-columns: 1fr;
    position: relative;
    top: auto;
    height: auto;
    min-height: 82vh;
  }

  .story-track {
    display: none;
  }

  .howg,
  .secg,
  .dim-grid,
  .showcase-grid,
  .integration-grid,
  .target-grid,
  .proof-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roig,
  .admin {
    grid-template-columns: 1fr;
  }

  .left {
    border-bottom: 1px solid #d7e1ee;
  }

  .proof-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   Responsive – mobile
   ============================================================ */
@media (max-width: 720px) {
  nav {
    padding: 12px 4vw;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero,
  .story,
  .product-story,
  .sec,
  .cine,
  footer {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero-mini {
    width: min(88vw, 360px);
    height: clamp(250px, 76vw, 420px);
  }

  .howg,
  .secg,
  .dim-grid,
  .showcase-grid,
  .integration-grid,
  .target-grid,
  .proof-grid,
  .case-grid,
  .proof-logos {
    grid-template-columns: 1fr;
  }

  .integration-actions .btn {
    width: 100%;
  }

  .compare-head,
  .compare-row {
    padding: 13px 12px;
    gap: 6px;
  }

  .cmp-metric {
    flex: 1.4;
    font-size: .86rem;
  }

  .cmp-col {
    font-size: .95rem;
  }

  .sticky-cta-group.is-floating {
    left: 5vw;
    right: 5vw;
    bottom: 14px;
  }

  .sticky-cta-group {
    gap: 8px;
  }

  .sticky-cta,
  .sticky-mosiedle-btn {
    min-height: 48px;
    padding: 0 16px;
    font-size: .92rem;
  }

  #rv {
    font-size: 1.55rem;
  }
}
