/* ==========================================================================
   ASSEMBLO — Pocket-friendly, AI-powered ERP for modern manufacturers
   Design system: Industrial-tech. Midnight navy canvas, electric-blue +
   warm-amber "spark" accents. Sora (display) / Hanken Grotesk (body + labels).
   ========================================================================== */

/* ---------- Design Tokens ------------------------------------------------- */
:root {
  /* Brand palette */
  --ink:        #0a0e1a;   /* near-black navy */
  --ink-2:      #0d1426;
  --navy:       #111a30;
  --navy-2:     #16213d;
  --slate:      #1d2a47;
  --line:       #243153;

  --blue:       #4d7cff;   /* electric blue accent */
  --blue-bright:#6f97ff;
  --blue-deep:  #2c54d4;
  --amber:      #ffb547;   /* warm spark */
  --amber-deep: #ff9f1c;
  --mint:       #46e3b0;   /* success / free plan */
  --violet:     #a78bfa;

  --text:       #eaf0ff;
  --text-soft:  #b7c2dd;
  --text-dim:   #8190b0;
  --white:      #ffffff;

  /* Surfaces (dark default) */
  --bg:         #070b16;
  --bg-grad:    radial-gradient(1200px 700px at 80% -10%, rgba(77,124,255,.18), transparent 60%),
                radial-gradient(900px 600px at -10% 10%, rgba(255,181,71,.10), transparent 55%),
                var(--bg);
  --surface:    rgba(255,255,255,.035);
  --surface-2:  rgba(255,255,255,.06);
  --glass:      rgba(16,24,46,.55);
  --glass-brd:  rgba(255,255,255,.09);

  /* Type */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "Hanken Grotesk", system-ui, sans-serif; /* humanised — mono retired */

  /* Radii & shadow */
  --r-sm: 10px;  --r: 16px;  --r-lg: 24px;  --r-xl: 34px;  --r-pill: 999px;
  --shadow-s: 0 2px 8px rgba(2,6,20,.35);
  --shadow:   0 18px 50px -20px rgba(3,8,28,.7);
  --shadow-glow: 0 0 0 1px rgba(77,124,255,.35), 0 20px 60px -22px rgba(77,124,255,.5);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* Light theme overrides */
:root[data-theme="light"] {
  --ink: #0b1020;
  --text:       #14203b;
  --text-soft:  #3c4b6b;
  --text-dim:   #6b7a98;
  --bg:         #eef2fb;
  --bg-grad:    radial-gradient(1100px 650px at 82% -12%, rgba(77,124,255,.16), transparent 60%),
                radial-gradient(850px 560px at -8% 8%, rgba(255,159,28,.14), transparent 55%),
                var(--bg);
  --surface:    rgba(255,255,255,.7);
  --surface-2:  rgba(255,255,255,.92);
  --glass:      rgba(255,255,255,.72);
  --glass-brd:  rgba(14,24,52,.10);
  --line:       #d4ddf0;
  --navy:       #ffffff;
  --navy-2:     #f4f7fe;
  --slate:      #eaf0fb;
  --shadow:     0 18px 50px -24px rgba(20,40,90,.30);
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg-grad);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: #1a1206; }

/* ---------- Layout helpers ----------------------------------------------- */
.wrap { width: min(100% - 2*var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2*var(--gutter), 1360px); margin-inline: auto; }
section { position: relative; padding: clamp(64px, 9vw, 130px) 0; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }

/* Eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue-bright);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(77,124,255,.10); border: 1px solid rgba(77,124,255,.28);
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px 2px var(--amber); }

/* Headings */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05;
  letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin: 18px 0 14px; }
.gradient-text {
  background: linear-gradient(105deg, var(--blue-bright) 0%, var(--violet) 45%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: var(--r-pill); font-weight: 600;
  font-family: var(--font-display); font-size: .96rem; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  position: relative; white-space: nowrap; will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep));
  color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(77,124,255,.5), 0 26px 60px -18px rgba(77,124,255,.7); }
.btn-amber { background: linear-gradient(180deg, var(--amber), var(--amber-deep)); color: #221603;
  box-shadow: 0 14px 40px -14px rgba(255,159,28,.65); }
.btn-amber:hover { transform: translateY(-3px); box-shadow: 0 22px 54px -14px rgba(255,159,28,.8); }
.btn-ghost { background: var(--surface); border: 1px solid var(--glass-brd); color: var(--text);
  backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--blue); }
.btn-lg { --pad: 17px 34px; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* ---------- Navbar -------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  transition: background .3s, box-shadow .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent; padding: 14px 0;
}
.nav.scrolled {
  background: var(--glass); backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid var(--glass-brd); box-shadow: var(--shadow-s); padding: 9px 0;
}
.nav-inner { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display);
  font-weight: 700; font-size: 1.32rem; letter-spacing: -.03em; color: var(--text); }
.brand .logo { width: 38px; height: 38px; flex: none; }
.brand b { color: var(--blue-bright); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a { padding: 9px 15px; border-radius: var(--r-pill); font-weight: 500; font-size: .95rem;
  color: var(--text-soft); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Pill control (theme / lang / currency triggers) */
.pill-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px;
  border-radius: var(--r-pill); border: 1px solid var(--glass-brd);
  background: var(--surface); color: var(--text-soft); font-weight: 600; font-size: .85rem;
  transition: border-color .2s, color .2s, transform .2s;
}
.pill-btn:hover { color: var(--text); border-color: var(--blue); transform: translateY(-1px); }
.pill-btn svg { width: 16px; height: 16px; }

/* Dropdown menu (lang & currency) */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px;
  background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--glass-brd);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transition: opacity .2s, transform .2s, visibility .2s; max-height: 320px; overflow-y: auto; z-index: 50;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-soft); font-size: .92rem;
  transition: background .15s, color .15s;
}
.dropdown-menu button:hover, .dropdown-menu button.sel { background: var(--surface-2); color: var(--text); }
.dropdown-menu button .flag { font-size: 1.1rem; }
.dropdown-menu button.sel::after { content: "✓"; margin-left: auto; color: var(--mint); }

/* Mobile menu */
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--glass-brd);
  background: var(--surface); position: relative; }
.hamburger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s, opacity .2s; }
.hamburger span:nth-child(1) { top: 15px; } .hamburger span:nth-child(2) { top: 21px; } .hamburger span:nth-child(3) { top: 27px; }
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 899; background: var(--bg); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; padding: 96px var(--gutter) 40px; gap: 6px;
  transform: translateX(100%); transition: transform .4s var(--ease-out); overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; padding: 14px 0;
  border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-panel .btn { margin-top: 18px; }

/* ---------- Hero ---------------------------------------------------------- */
.hero { padding-top: clamp(130px, 18vh, 200px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 38px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--text-dim); font-size: .9rem; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg);
  margin-left: -10px; background-size: cover; background-position: center; }
.stars { color: var(--amber); letter-spacing: 2px; }

/* floating decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle, var(--blue), transparent 70%); top: -120px; right: -120px; animation: drift 18s ease-in-out infinite; }
.blob.b2 { width: 360px; height: 360px; background: radial-gradient(circle, var(--amber), transparent 70%); bottom: -100px; left: -80px; animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.12); } }

/* Hero product mock (dashboard) */
.hero-visual { position: relative; }
.dash {
  background: linear-gradient(170deg, #18244a, #0c1326);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; transform: perspective(1500px) rotateY(-9deg) rotateX(4deg);
  transition: transform .6s var(--ease);
}
.hero-visual:hover .dash { transform: perspective(1500px) rotateY(-3deg) rotateX(1deg); }
.dash-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.2); }
.dash-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.dash-bar i:nth-child(2) { background: #febc2e; } .dash-bar i:nth-child(3) { background: #28c840; }
.dash-bar .url { margin-left: 12px; font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim);
  background: var(--surface); padding: 4px 12px; border-radius: var(--r-pill); }
.dash-body { padding: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.dash-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.dash-kpi .lbl { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.dash-kpi .val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-top: 6px; }
.dash-kpi .val.up { color: var(--mint); } .dash-kpi .val.blue { color: var(--blue-bright); } .dash-kpi .val.amber { color: var(--amber); }
.dash-chart { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.dash-chart .ct { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dash-chart .ct b { font-family: var(--font-display); font-size: .95rem; }
.dash-chart .ct span { font-family: var(--font-mono); font-size: .7rem; color: var(--mint); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; }
.bars div { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep)); opacity: .85;
  animation: growbar 1.1s var(--ease-out) backwards; }
.bars div:nth-child(even) { background: linear-gradient(180deg, var(--amber), var(--amber-deep)); }
@keyframes growbar { from { height: 0 !important; opacity: 0; } }
.floating-card {
  position: absolute; background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-brd); border-radius: var(--r); padding: 13px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px; font-size: .85rem; animation: floaty 5s ease-in-out infinite;
}
.floating-card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.floating-card b { font-family: var(--font-display); }
.fc-1 { top: 8%; left: -7%; } .fc-2 { bottom: 10%; right: -6%; animation-delay: 1.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Logo marquee -------------------------------------------------- */
.marquee { overflow: hidden; padding: 30px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--text-dim); opacity: .6; white-space: nowrap; letter-spacing: -.02em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Cards / Feature grid ----------------------------------------- */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: var(--surface); border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
  padding: 30px; transition: transform .35s var(--ease), border-color .35s, background .35s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--blue); background: var(--surface-2); box-shadow: var(--shadow); }
.card .ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(160deg, rgba(77,124,255,.22), rgba(77,124,255,.06)); border: 1px solid rgba(77,124,255,.3);
}
.card .ic svg { width: 27px; height: 27px; color: var(--blue-bright); }
.card.amber .ic { background: linear-gradient(160deg, rgba(255,181,71,.22), rgba(255,181,71,.06)); border-color: rgba(255,181,71,.32); }
.card.amber .ic svg { color: var(--amber); }
.card.mint .ic { background: linear-gradient(160deg, rgba(70,227,176,.2), rgba(70,227,176,.05)); border-color: rgba(70,227,176,.3); }
.card.mint .ic svg { color: var(--mint); }
.card.violet .ic { background: linear-gradient(160deg, rgba(167,139,250,.2), rgba(167,139,250,.05)); border-color: rgba(167,139,250,.3); }
.card.violet .ic svg { color: var(--violet); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: .98rem; }
.card .arrow { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue-bright);
  font-weight: 600; font-size: .9rem; font-family: var(--font-display); }
.card .arrow svg { transition: transform .3s; }
.card:hover .arrow svg { transform: translateX(5px); }

/* Bento variant */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; grid-auto-rows: minmax(190px, auto); }
.bento .card { display: flex; flex-direction: column; }
.span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } .span-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }
.card-img { padding: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-overlay { position: absolute; inset: auto 0 0 0; padding: 24px; background: linear-gradient(0deg, rgba(7,11,22,.92), transparent); }

/* ---------- Steps / how it works ----------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--glass-brd); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.3px var(--blue); display: block; margin-bottom: 16px; }
.step h3 { font-size: 1.18rem; margin-bottom: 9px; }
.step p { color: var(--text-soft); font-size: .94rem; }

/* ---------- Stats band ---------------------------------------------------- */
.stats-band { background: linear-gradient(140deg, var(--blue-deep), #1b2c63 60%, var(--ink)); border-radius: var(--r-xl); padding: clamp(40px,6vw,72px); position: relative; overflow: hidden; }
.stats-band::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 90% 0, rgba(255,181,71,.25), transparent 60%); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; position: relative; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem,5vw,3.6rem); line-height: 1; color: #fff; }
.stat .num .suf { color: var(--amber); }
.stat .lbl { color: #c7d2f0; margin-top: 8px; font-size: .96rem; }

/* ---------- Module showcase (split) -------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.split.rev .split-media { order: -1; }
.split-media img { border-radius: var(--r-lg); border: 1px solid var(--glass-brd); box-shadow: var(--shadow); width: 100%; }
.feature-list { display: grid; gap: 14px; margin-top: 26px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-soft); }
.feature-list .tick { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center;
  background: rgba(70,227,176,.16); border: 1px solid rgba(70,227,176,.35); color: var(--mint); margin-top: 2px; }
.feature-list .tick svg { width: 14px; height: 14px; }
.feature-list b { color: var(--text); font-weight: 600; }

/* ---------- Testimonials -------------------------------------------------- */
.quote { display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: 1.05rem; color: var(--text); font-family: var(--font-display); font-weight: 500; line-height: 1.5; letter-spacing: -.01em; }
.quote .who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.quote .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; font-family: var(--font-display); }
.quote .who span { color: var(--text-dim); font-size: .85rem; }
.quote .stars { color: var(--amber); }

/* ---------- Pricing ------------------------------------------------------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 14px; margin: 8px auto 0; padding: 7px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--glass-brd); }
.billing-toggle button { padding: 9px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; color: var(--text-dim); transition: .25s; }
.billing-toggle button.on { background: var(--blue); color: #fff; box-shadow: var(--shadow-glow); }
.save-tag { font-family: var(--font-mono); font-size: .68rem; color: var(--mint); background: rgba(70,227,176,.14); padding: 4px 9px; border-radius: var(--r-pill); border: 1px solid rgba(70,227,176,.3); }

.price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--glass-brd); border-radius: var(--r-lg); padding: 30px 26px; display: flex; flex-direction: column; position: relative; transition: transform .3s, border-color .3s; }
.plan:hover { transform: translateY(-6px); border-color: var(--blue); }
.plan.popular { border-color: var(--blue); background: linear-gradient(180deg, rgba(77,124,255,.12), var(--surface)); box-shadow: var(--shadow-glow); }
.plan .tag-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg,var(--amber),var(--amber-deep)); color: #221603; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .05em; padding: 6px 16px; border-radius: var(--r-pill); text-transform: uppercase; white-space: nowrap; }
.plan .pname { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.plan .pdesc { color: var(--text-dim); font-size: .88rem; margin: 6px 0 20px; min-height: 38px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan .price .cur { font-family: var(--font-display); font-size: 1.4rem; color: var(--text-soft); }
.plan .price .amt { font-family: var(--font-display); font-weight: 700; font-size: 3rem; letter-spacing: -.03em; }
.plan .price .per { color: var(--text-dim); font-size: .9rem; }
.plan .pnote { font-size: .82rem; color: var(--text-dim); margin-bottom: 22px; min-height: 20px; }
.plan ul.pfeat { display: grid; gap: 12px; margin: 6px 0 26px; }
.plan ul.pfeat li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-soft); }
.plan ul.pfeat li svg { width: 18px; height: 18px; flex: none; color: var(--mint); margin-top: 2px; }
.plan ul.pfeat li.off { color: var(--text-dim); opacity: .6; } .plan ul.pfeat li.off svg { color: var(--text-dim); }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ----------------------------------------------------------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--glass-brd); border-radius: var(--r); overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: var(--blue); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 22px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.faq-q .pm { width: 26px; height: 26px; flex: none; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--blue-bright); border-radius: 2px; transition: transform .3s; }
.faq-q .pm::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-q .pm::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.faq-item.open .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 24px; color: var(--text-soft); }

/* ---------- CTA band ------------------------------------------------------ */
/* Fixed branded gradient (theme-independent) so it never fades to a muddy
   grey/black in light mode. Always light text on a rich indigo→blue→violet. */
.cta-band { text-align: center; color: #fff;
  background:
    radial-gradient(700px 360px at 85% -10%, rgba(255,181,71,.28), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(120,86,255,.45), transparent 55%),
    linear-gradient(135deg, #1a2a73 0%, #2c54d4 46%, #6b3fb5 100%);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-xl);
  padding: clamp(46px,7vw,86px) var(--gutter); position: relative; overflow: hidden;
  box-shadow: 0 30px 80px -34px rgba(44,84,212,.6); }
.cta-band .blob { opacity: .35; }
.cta-band h2 { max-width: 18ch; margin: 16px auto 18px; color: #fff; }
.cta-band .lead { margin: 0 auto 30px; color: #dde4ff; }
.cta-band .muted { color: #c3cdf2; }
.cta-band .kicker { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.32); color: #fff; }
.cta-band .kicker::before { background: var(--amber); box-shadow: 0 0 12px 2px var(--amber); }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer -------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 34px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.25)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 34px; margin-bottom: 50px; }
.footer .brand { margin-bottom: 16px; }
.footer-about p { color: var(--text-dim); font-size: .94rem; max-width: 34ch; margin-bottom: 20px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--glass-brd); color: var(--text-soft); transition: .25s; }
.socials a:hover { color: #fff; background: var(--blue); transform: translateY(-3px); border-color: var(--blue); }
.footer-col h4 { font-family: var(--font-display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-soft); font-size: .94rem; padding: 6px 0; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--blue-bright); padding-left: 5px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: .86rem; }
.footer-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-badges span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Page hero (interior) ----------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(150px, 20vh, 230px); padding-bottom: clamp(40px,6vw,80px); text-align: center; }
.page-hero .lead { margin: 20px auto 0; }
.breadcrumb { display: inline-flex; gap: 8px; font-family: var(--font-mono); font-size: .76rem; color: var(--text-dim); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--blue-bright); }

/* ---------- Forms (contact) ---------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--glass-brd); border-radius: var(--r-sm);
  padding: 14px 16px; color: var(--text); font: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77,124,255,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-card { background: var(--surface); border: 1px solid var(--glass-brd); border-radius: var(--r-lg); padding: clamp(26px,4vw,44px); }
.form-note { font-size: .8rem; color: var(--text-dim); margin-top: 6px; }
.contact-side .ic-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-side .ic-row .ic { width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center; background: rgba(77,124,255,.14); border: 1px solid rgba(77,124,255,.3); color: var(--blue-bright); }
.contact-side .ic-row b { font-family: var(--font-display); display: block; margin-bottom: 3px; }
.contact-side .ic-row span { color: var(--text-soft); font-size: .94rem; }

/* ---------- Blog ---------------------------------------------------------- */
.post-card { background: var(--surface); border: 1px solid var(--glass-brd); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s, border-color .35s; }
.post-card:hover { transform: translateY(-6px); border-color: var(--blue); }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .pc-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); display: flex; gap: 12px; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-bright); background: rgba(77,124,255,.12); padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid rgba(77,124,255,.25); align-self: flex-start; }
.post-card h3 { font-size: 1.2rem; } .post-card p { color: var(--text-soft); font-size: .92rem; flex: 1; }

/* ---------- Solutions/industries ----------------------------------------- */
.industry { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; }
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.industry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,11,22,.95) 5%, rgba(7,11,22,.3) 60%, rgba(77,124,255,.15)); }
.industry:hover img { transform: scale(1.07); }
.industry .ind-body { position: relative; padding: 28px; z-index: 1; }
.industry .ind-body h3 { color: #fff; margin-bottom: 8px; }
.industry .ind-body p { color: #cdd8f3; font-size: .92rem; }

/* ---------- Live chat widget --------------------------------------------- */
.chat-fab { position: fixed; bottom: 26px; right: 26px; z-index: 950; width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep)); box-shadow: 0 14px 40px -10px rgba(77,124,255,.7);
  display: grid; place-items: center; color: #fff; transition: transform .3s var(--ease); }
.chat-fab:hover { transform: scale(1.08) rotate(-6deg); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab .badge { position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #221603; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.chat-fab .close-ic { display: none; } .chat-fab.open .open-ic { display: none; } .chat-fab.open .close-ic { display: block; }

.chat-panel { position: fixed; bottom: 100px; right: 26px; z-index: 949; width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100vh - 140px));
  background: var(--glass); backdrop-filter: blur(14px) saturate(140%); border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.96); transform-origin: bottom right; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-head { padding: 18px 20px; background: linear-gradient(150deg, var(--blue-deep), var(--navy)); display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(150deg, var(--amber), var(--amber-deep)); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #221603; position: relative; }
.chat-head .av .dot { position: absolute; bottom: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); border: 2px solid var(--navy); }
.chat-head b { font-family: var(--font-display); color: #fff; display: block; }
.chat-head span { color: #c7d2f0; font-size: .78rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.45; animation: msgIn .3s var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { background: var(--surface-2); border: 1px solid var(--glass-brd); border-bottom-left-radius: 5px; align-self: flex-start; color: var(--text); }
.msg.user { background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep)); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.chat-time { font-family: var(--font-mono); font-size: .64rem; color: var(--text-dim); align-self: center; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.quick-replies button { padding: 8px 13px; border-radius: var(--r-pill); border: 1px solid var(--blue); background: rgba(77,124,255,.1); color: var(--blue-bright); font-size: .82rem; font-weight: 600; transition: .2s; }
.quick-replies button:hover { background: var(--blue); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--glass-brd); background: rgba(0,0,0,.15); }
.chat-input input { flex: 1; background: var(--surface); border: 1px solid var(--glass-brd); border-radius: var(--r-pill); padding: 12px 16px; color: var(--text); font: inherit; font-size: .9rem; }
.chat-input input:focus { outline: none; border-color: var(--blue); }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; transition: .2s; }
.chat-input button:hover { background: var(--blue-bright); transform: scale(1.05); }
.typing { display: flex; gap: 4px; padding: 13px 16px; background: var(--surface-2); border-radius: 16px; border-bottom-left-radius: 5px; align-self: flex-start; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* ---------- Cookie banner & back-to-top ---------------------------------- */
.cookie { position: fixed; bottom: 26px; left: 26px; z-index: 940; max-width: 380px; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--glass-brd); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); transform: translateY(140%); transition: transform .5s var(--ease-out); }
.cookie.show { transform: translateY(0); }
.cookie p { font-size: .88rem; color: var(--text-soft); margin-bottom: 14px; }
.cookie .row { display: flex; gap: 10px; }
.cookie .btn { --pad: 10px 18px; font-size: .85rem; }
.to-top { position: fixed; bottom: 26px; right: 100px; z-index: 930; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--glass-brd); color: var(--text); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; backdrop-filter: blur(10px); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Scroll reveal ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- RTL support --------------------------------------------------- */
[dir="rtl"] .nav-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .dropdown-menu { right: auto; left: 0; }
[dir="rtl"] .chat-fab, [dir="rtl"] .chat-panel { right: auto; left: 26px; }
[dir="rtl"] .cookie { left: auto; right: 26px; }
[dir="rtl"] .to-top { right: auto; left: 100px; }
[dir="rtl"] .card .arrow svg, [dir="rtl"] .btn svg { transform: scaleX(-1); }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(4,1fr); }
  .span-4 { grid-column: span 4; } .span-3 { grid-column: span 2; } .span-2 { grid-column: span 2; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-actions .desktop-only { display: none; }
  .hamburger { display: block; }
  .cols-3, .cols-4, .steps, .stats-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cols-2, .cols-3, .cols-4, .steps, .stats-grid, .price-grid, .bento { grid-template-columns: 1fr; }
  .bento .card { grid-column: 1 / -1 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { flex: 1; }
  .dash-body { grid-template-columns: repeat(3,1fr); }
  .floating-card { display: none; }
  .to-top { right: 92px; bottom: 22px; }
  .chat-fab { bottom: 22px; right: 22px; }
}
/* ---------- Mobile nav fit — keep brand + pills + hamburger within 390px -- */
@media (max-width: 600px) {
  .nav-inner { gap: 10px; }
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand .logo { width: 32px; height: 32px; }
  .nav-actions { gap: 6px; }
  .pill-btn { padding: 7px 9px; font-size: .8rem; gap: 5px; }
  /* Theme toggle stays icon-only on mobile to save space */
  .theme-toggle { padding: 7px; }
  .theme-toggle svg { width: 18px; height: 18px; }
  /* Stack hero CTAs full-width so labels never clip */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { flex: none; width: 100%; }
}
/* Very small screens: drop text labels on lang/currency so the visible
   theme toggle + hamburger always fit without overflow. */
@media (max-width: 400px) {
  #langLabel { display: none; }            /* globe icon remains */
  .nav-actions .dropdown .pill-btn { padding: 7px 8px; }
}
