/* ============ Fonts ============ */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/BricolageGrotesque-Variable.woff2') format('woff2-variations'),
       url('../fonts/BricolageGrotesque-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-Variable.woff2') format('woff2-variations'),
       url('../fonts/WorkSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens ============ */
:root{
  --bg: #030710;
  --bg-deep: #02050c;
  --surface-solid: #0a1226;
  --card: linear-gradient(180deg, rgba(16, 28, 60, 0.55), rgba(8, 14, 30, 0.85));
  --border: rgba(126, 160, 255, 0.13);
  --border-strong: rgba(126, 160, 255, 0.30);
  --text: #f2f6ff;
  --muted: #94a3c7;
  --muted-2: #5c6a8f;
  --blue: #0b63ff;
  --blue-bright: #2f7bff;
  --cyan: #00f0d4;
  --warm-a: #ff7a5c;
  --warm-b: #ffb46b;
  --grad: linear-gradient(93deg, #3d8bff 0%, #6ea8ff 45%, #00f0d4 100%);
  --grad-warm: linear-gradient(93deg, #ff7a5c, #ffb46b);
  --radius-lg: 26px;
  --radius-md: 18px;
  --font-display: 'Bricolage Grotesque', 'Work Sans', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container{
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section{ padding: 110px 0; position: relative; }

.skip-link{
  position: absolute;
  left: -999px;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 999;
}
.skip-link:focus{ left: 24px; top: 24px; }

::selection{ background: var(--blue); color: #fff; }

/* ============ Type helpers ============ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.gradient-text{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.warm-text{
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6fd7ff;
  background: rgba(47, 123, 255, 0.10);
  border: 1px solid rgba(111, 195, 255, 0.22);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow-warm{
  color: var(--warm-b);
  background: rgba(255, 122, 92, 0.08);
  border-color: rgba(255, 180, 107, 0.28);
}

/* ============ Buttons ============ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 12px 36px -10px rgba(11, 99, 255, 0.75);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 18px 46px -10px rgba(11, 99, 255, 0.9);
}
.btn-ghost{
  background: rgba(148, 178, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover{
  border-color: rgba(0, 240, 212, 0.55);
  color: #9ff5e8;
}
.btn-sm{ padding: 10px 22px; font-size: 14px; }
.btn-lg{ padding: 17px 34px; font-size: 16px; }
.btn-block{ width: 100%; }

/* ============ Nav (floating pill) ============ */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 16px 16px 0;
  pointer-events: none;
}
.nav-pill{
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(1120px, 100%);
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: rgba(6, 12, 28, 0.62);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 40px -18px rgba(2, 6, 18, 0.9);
  position: relative;
}
.logo{
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  margin-right: auto;
}
.logo-mark{ height: 28px; width: auto; }
.main-nav{
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a{
  color: var(--muted);
  transition: color .15s ease;
}
.main-nav a:hover{ color: #fff; }
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
}
.nav-toggle span{
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero{
  position: relative;
  padding: 172px 0 0;
  overflow: hidden;
}
.hero-sky{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 44% at 50% 0%, rgba(11, 84, 245, 0.50) 0%, rgba(11, 84, 245, 0.16) 48%, transparent 74%),
    radial-gradient(30% 26% at 78% 6%, rgba(0, 240, 212, 0.13) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid{
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(163, 196, 255, 0.14) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(56% 46% at 50% 4%, #000 15%, transparent 78%);
  mask-image: radial-gradient(56% 46% at 50% 4%, #000 15%, transparent 78%);
  pointer-events: none;
}
.hero-orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: .8;
}
.hero-orb-a{
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(11, 99, 255, 0.32), transparent 68%);
  top: -160px; left: -140px;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-orb-b{
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0, 240, 212, 0.14), transparent 68%);
  top: 40px; right: -160px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift{
  from{ transform: translate3d(0,0,0); }
  to{ transform: translate3d(60px, 40px, 0); }
}

.hero-inner{
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title{
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero-sub{
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* --- 3D stage --- */
.hero-stage{
  position: relative;
  z-index: 1;
  height: clamp(300px, 34vw, 520px);
  margin-top: 64px;
  perspective: 1600px;
}
.stage-glow{
  position: absolute;
  left: 50%; bottom: -12%;
  width: 74%; height: 46%;
  transform: translateX(-50%);
  background: radial-gradient(50% 62% at 50% 100%, rgba(11, 99, 255, 0.4), transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}
.stage-card{
  position: absolute;
  top: 0;
  left: 50%;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1226;
  border: 1px solid rgba(140, 174, 255, 0.22);
  box-shadow: 0 40px 90px -30px rgba(1, 4, 14, 0.9);
  will-change: transform;
}
.stage-card img{ width: 100%; height: auto; display: block; }
.frame-bar{
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(10, 18, 38, 0.96);
  border-bottom: 1px solid rgba(140, 174, 255, 0.14);
}
.frame-bar i{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(163, 196, 255, 0.22);
}
.stage-center{
  width: min(58%, 720px);
  transform: translateX(-50%) translateY(calc(var(--tilt-y, 0) * 1px)) rotateY(calc(var(--tilt-x, 0) * 1deg));
  z-index: 3;
  transition: box-shadow .3s ease;
}
.stage-center:hover{
  box-shadow: 0 50px 110px -30px rgba(11, 99, 255, 0.45);
}
.stage-left, .stage-right{
  width: min(44%, 520px);
  z-index: 1;
  filter: brightness(0.52) saturate(0.9);
  top: 7%;
}
.stage-left{
  transform: translateX(-124%) rotateY(34deg) scale(.94);
  transform-origin: right center;
}
.stage-right{
  transform: translateX(24%) rotateY(-34deg) scale(.94);
  transform-origin: left center;
}

/* Floating chips */
.chip{
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  color: #cfdcff;
  background: rgba(8, 16, 36, 0.72);
  border: 1px solid rgba(126, 160, 255, 0.3);
  padding: 10px 16px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(1, 4, 14, 0.9);
  animation: floaty 6s ease-in-out infinite alternate;
}
.chip b{
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chip-1{ left: 7%; top: -3%; }
.chip-2{ right: 6%; top: 12%; animation-delay: -2.2s; }
.chip-3{ right: 20%; bottom: 4%; animation-delay: -4.1s; }
@keyframes floaty{
  from{ transform: translateY(-7px); }
  to{ transform: translateY(7px); }
}

/* --- Hero stats --- */
.hero-stats{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(880px, calc(100% - 48px));
  margin: -6px auto 0;
  padding: 30px 0 44px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.stat dt{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat dd{ font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ============ Marquee ============ */
.marquee{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 15, 34, 0.5);
  overflow: hidden;
  padding: 22px 0;
  -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;
  align-items: center;
  gap: 44px;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 17px;
  color: #8fa5d4;
  animation: marquee 30s linear infinite;
}
.marquee-track i{
  font-style: normal;
  color: var(--cyan);
  font-size: 12px;
  opacity: .8;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ============ Section heads ============ */
.section-head{
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head h2{
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-sub{ color: var(--muted); font-size: 1.06rem; }

/* ============ Portfolio ============ */
.bento{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "a a a b b b"
    "c c d d e e";
  gap: 22px;
}
.card-a{ grid-area: a; }
.card-b{ grid-area: b; }
.card-c{ grid-area: c; }
.card-d{ grid-area: d; }
.card-e{ grid-area: e; }

.bento-card{
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bento-card:hover{
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -30px rgba(11, 99, 255, 0.35);
}
.browser-frame{
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}
.browser-bar{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  flex-shrink: 0;
}
.browser-bar .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(163, 196, 255, 0.2);
}
.browser-url{
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--muted-2);
  background: rgba(163, 196, 255, 0.07);
  padding: 3px 12px;
  border-radius: 999px;
}
.bento-card img{
  width: 100%;
  flex: 1;
  min-height: 0;
  aspect-ratio: 1.55;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.bento-card:hover img{ transform: scale(1.03); }
.bento-meta{ padding: 20px 12px 10px; }
.bento-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bento-meta h3{ font-size: 1.18rem; }
.tag{
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7ff2df;
  background: rgba(0, 240, 212, 0.08);
  border: 1px solid rgba(0, 240, 212, 0.22);
  padding: 4px 12px;
  border-radius: 999px;
}
.bento-meta p{ color: var(--muted); font-size: 0.95rem; }

/* ============ Pain ============ */
.pain{ overflow: hidden; }
.pain-glow{
  position: absolute;
  left: 50%; top: -60px;
  width: 860px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 0%, rgba(255, 122, 92, 0.12), transparent 70%);
  pointer-events: none;
}
.pain-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 26px;
  position: relative;
}
.pain-stat{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
}
.pain-stat strong{
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.pain-stat p{ color: var(--muted); font-size: 0.95rem; }

.compare{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  position: relative;
}
.compare-col{
  border-radius: var(--radius-lg);
  padding: 38px 34px;
}
.compare-col h3{ font-size: 1.35rem; margin-bottom: 22px; }
.compare-col li{
  position: relative;
  padding-left: 30px;
  margin: 13px 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.compare-col li::before{
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 700;
}
.compare-bad{
  background: linear-gradient(180deg, rgba(30, 18, 24, 0.5), rgba(12, 10, 16, 0.7));
  border: 1px solid rgba(255, 122, 92, 0.18);
}
.compare-bad li::before{ content: "✕"; color: #ff8a75; }
.compare-good{
  background: linear-gradient(180deg, rgba(17, 36, 86, 0.72), rgba(7, 14, 34, 0.92));
  border: 1px solid rgba(0, 240, 212, 0.30);
  box-shadow: 0 30px 70px -40px rgba(11, 99, 255, 0.55);
  position: relative;
}
.compare-good li::before{ content: "✓"; color: var(--cyan); }
.compare-good li{ color: #b9c7e8; }
.compare-badge{
  position: absolute;
  top: -14px; left: 34px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px -10px rgba(11, 99, 255, 0.8);
}

/* ============ Services ============ */
.services{ overflow: hidden; }
.services-glow{
  position: absolute;
  left: 50%; top: 0;
  width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 0%, rgba(11, 84, 245, 0.16), transparent 70%);
  pointer-events: none;
}
.services-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  position: relative;
}
.service-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 32px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover{
  transform: translateY(-5px);
  border-color: rgba(0, 240, 212, 0.4);
  box-shadow: 0 28px 60px -30px rgba(0, 240, 212, 0.22);
}
.service-head{
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.service-num{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.service-card h3{ font-size: 1.45rem; }
.service-card > p{ color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; }
.service-list li{
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  color: #b9c7e8;
  font-size: 0.94rem;
}
.service-list li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
}

/* --- Service visuals (pure CSS illustrations) --- */
.service-visual{
  position: relative;
  height: 172px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(11, 84, 245, 0.18), transparent 60%),
    rgba(5, 10, 24, 0.75);
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-window{
  width: 74%;
  background: rgba(8, 16, 36, 0.92);
  border: 1px solid rgba(140, 174, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px 14px;
}
.sv-dots{ display: flex; gap: 5px; margin-bottom: 8px; }
.sv-dots i{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(163, 196, 255, 0.25);
}
.sv-line{
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(190, 215, 255, 0.75);
  margin: 6px auto;
}
.sv-line.dim{ background: rgba(190, 215, 255, 0.28); }
.w30{ width: 30%; } .w40{ width: 40%; } .w45{ width: 45%; }
.w50{ width: 50%; } .w55{ width: 55%; } .w60{ width: 60%; }
.w65{ width: 65%; } .w70{ width: 70%; }
.sv-hero{ padding-top: 4px; }
.sv-cta{
  display: block;
  width: 34%; height: 13px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--blue-bright), #00cfe0);
  margin: 10px auto 12px;
  box-shadow: 0 6px 16px -4px rgba(11, 99, 255, 0.7);
}
.sv-row{ display: flex; gap: 6px; }
.sv-block{
  flex: 1; height: 24px;
  border-radius: 6px;
  background: rgba(120, 160, 255, 0.10);
  border: 1px solid rgba(120, 160, 255, 0.16);
}

.sv-multi .sv-page{
  position: absolute;
  width: 44%; height: 68%;
  background: rgba(10, 20, 44, 0.95);
  border: 1px solid rgba(140, 174, 255, 0.25);
  border-radius: 10px;
  padding: 14px;
}
.sv-multi .sv-line{ margin: 7px 0; }
.sv-page.p1{ transform: translateX(-62%) rotate(-7deg); z-index: 1; opacity: .6; }
.sv-page.p2{ z-index: 2; }
.sv-page.p3{ transform: translateX(62%) rotate(7deg); z-index: 1; opacity: .6; }

.sv-shop{ gap: 10px; }
.sv-product{
  width: 24%;
  background: rgba(10, 20, 44, 0.95);
  border: 1px solid rgba(140, 174, 255, 0.2);
  border-radius: 10px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}
.sv-product .sv-line{ margin: 0; }
.sv-img{
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(47, 123, 255, 0.38), rgba(0, 240, 212, 0.2));
}
.sv-price{
  width: 46%; height: 8px;
  border-radius: 4px;
  background: rgba(0, 240, 212, 0.75);
}
.sv-product.featured{
  transform: translateY(-8px);
  border-color: rgba(0, 240, 212, 0.5);
}
.sv-cart{
  position: absolute;
  top: -9px; right: -9px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(11, 99, 255, 0.9);
}

.sv-codelines{ padding: 2px 0 4px; }
.cl{
  display: block;
  height: 7px;
  border-radius: 4px;
  margin: 8px 0;
}
.cl.c1{ background: rgba(0, 240, 212, 0.65); }
.cl.c2{ background: rgba(122, 170, 255, 0.60); }
.cl.c3{ background: rgba(255, 255, 255, 0.22); }

/* ============ Process ============ */
.process-steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-steps li{
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  overflow: hidden;
}
.process-steps li::after{
  content: "";
  position: absolute;
  top: 0; left: 30px; right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 212, 0.5), transparent);
}
.step-num{
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.process-steps h3{ font-size: 1.18rem; margin-bottom: 10px; }
.process-steps p{ color: var(--muted); font-size: 0.95rem; }

/* ============ Contact ============ */
.contact{ overflow: hidden; padding-bottom: 130px; }
.contact-glow{
  position: absolute;
  left: 50%; bottom: -180px;
  width: 900px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(50% 55% at 50% 100%, rgba(11, 84, 245, 0.22), transparent 72%);
  pointer-events: none;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: start;
  position: relative;
}
.contact-info h2{
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  margin-bottom: 16px;
  text-wrap: balance;
}
.contact-sub{
  color: var(--muted);
  margin-bottom: 34px;
  font-size: 1.02rem;
}
.info-card{
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.info-card:hover{
  border-color: rgba(0, 240, 212, 0.45);
  transform: translateY(-2px);
}
.info-icon{
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 99, 255, 0.30), rgba(0, 240, 212, 0.16));
  border: 1px solid rgba(111, 195, 255, 0.3);
  color: #8fd0ff;
}
.info-text{ display: flex; flex-direction: column; gap: 2px; }
.info-text span{
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-weight: 600;
}
.info-text strong{
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.18rem;
}
.contact-perks{
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-perks li{
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.96rem;
}
.contact-perks li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
}

.contact-form{
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 40px 90px -50px rgba(11, 99, 255, 0.4);
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field label{
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #bcd2ff;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea{
  width: 100%;
  background: rgba(4, 9, 22, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field textarea{ resize: vertical; min-height: 110px; }
.form-field ::placeholder{ color: var(--muted-2); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline: none;
  border-color: rgba(47, 123, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.18);
}
.select-wrap{ position: relative; }
.select-wrap::after{
  content: "▾";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.select-wrap select{
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
.form-status{
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #7ff2df;
  background: rgba(0, 240, 212, 0.08);
  border: 1px solid rgba(0, 240, 212, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
}
.form-status.is-error{
  color: #ffb2a3;
  background: rgba(255, 122, 92, 0.08);
  border-color: rgba(255, 122, 92, 0.3);
}
.form-note{
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
}
.form-note strong{ color: #8fd0ff; font-weight: 600; }

/* ============ Footer ============ */
.site-footer{
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding-top: 64px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.footer-brand p{ color: var(--muted); margin-top: 14px; font-size: 0.95rem; }
.footer-brand .logo-mark{ height: 26px; }
.footer-col{ display: flex; flex-direction: column; gap: 11px; }
.footer-col h4{
  font-family: var(--font-body);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 8px;
  font-weight: 600;
}
.footer-col a{ color: var(--muted); font-size: 0.95rem; transition: color .15s ease; }
.footer-col a:hover{ color: #8fd0ff; }
.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
.footer-bottom p{ color: var(--muted-2); font-size: 13px; }

/* ============ Legal pages ============ */
.legal-hero{
  position: relative;
  padding: 168px 0 56px;
  overflow: hidden;
  text-align: center;
}
.legal-hero h1{
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 14px;
  text-wrap: balance;
}
.legal-updated{
  color: var(--muted-2);
  font-size: 0.95rem;
}
.legal-content{ padding-bottom: 110px; position: relative; }
.legal-container{ max-width: 800px; }
.legal-content h2{
  font-size: 1.55rem;
  margin: 48px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.legal-content h3{
  font-size: 1.18rem;
  margin: 30px 0 14px;
  color: #cfdcff;
}
.legal-content p{
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.75;
}
.legal-content strong{ color: #d7e2ff; font-weight: 600; }
.legal-content a{
  color: #6fd7ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(111, 215, 255, 0.4);
  transition: color .15s ease;
  word-break: break-word;
}
.legal-content a:hover{ color: var(--cyan); }
.legal-content ul, .legal-content ol{
  margin: 0 0 18px;
  padding-left: 4px;
}
.legal-content ul li, .legal-content ol li{
  position: relative;
  padding-left: 28px;
  margin: 9px 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.legal-content ul > li::before{
  content: "";
  position: absolute;
  left: 6px; top: 0.72em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  transform: rotate(45deg);
}
.legal-content ol{ counter-reset: legal-ol; }
.legal-content ol > li{ counter-increment: legal-ol; }
.legal-content ol > li::before{
  content: counter(legal-ol) ".";
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: #6fd7ff;
  font-size: 0.92rem;
}
.legal-content li ul{ margin: 8px 0 0; }
.table-wrap{
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}
.legal-content table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
.legal-content th, .legal-content td{
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.6;
}
.legal-content th{
  font-family: var(--font-display);
  font-weight: 500;
  color: #cfdcff;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  background: rgba(11, 84, 245, 0.10);
  white-space: nowrap;
}
.legal-content tr:last-child td{ border-bottom: none; }
.legal-content td code, .legal-content p code{
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85em;
  color: #9ff5e8;
  background: rgba(0, 240, 212, 0.08);
  border: 1px solid rgba(0, 240, 212, 0.16);
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.legal-content hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ============ Footer legal row ============ */
.footer-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  text-align: left;
}
.footer-legal{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-legal a, .footer-legal button{
  color: var(--muted-2);
  font-size: 13px;
  transition: color .15s ease;
  padding: 0;
}
.footer-legal a:hover, .footer-legal button:hover{ color: #8fd0ff; }

/* ============ Cookie banner ============ */
.cookie-banner{
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 300;
  width: min(400px, calc(100vw - 40px));
  background: rgba(8, 15, 34, 0.88);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 22px 24px;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 70px -30px rgba(1, 4, 14, 0.95);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.cookie-banner.is-open{
  opacity: 1;
  transform: translateY(0);
}
.cookie-top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-icon{
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 99, 255, 0.30), rgba(0, 240, 212, 0.16));
  border: 1px solid rgba(111, 195, 255, 0.3);
  color: #8fd0ff;
  flex-shrink: 0;
}
.cookie-banner h3{ font-size: 1.1rem; }
.cookie-banner p{
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 16px;
}
.cookie-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-actions .btn{ flex: 1; }

@media (max-width: 520px){
  .cookie-banner{
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 18px 18px;
  }
}

/* ============ Reveal ============ */
/* Se aplica doar cand JS-ul e activ (html.js) si doar pe ecrane mari —
   pe mobil si fara JS continutul e vizibil imediat. */
@media (min-width: 761px){
  html.js .reveal{
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .5s ease, transform .5s ease;
  }
  html.js .reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Responsive ============ */
@media (max-width: 1024px){
  .services-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 900px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-pill.nav-open .main-nav{
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(6, 12, 28, 0.92);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 14px 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .nav-pill.nav-open .main-nav a{ padding: 12px 4px; }

  .chip{ display: none; }
  .bento{
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "e";
  }
  .pain-stats{ grid-template-columns: 1fr; }
  .compare{ grid-template-columns: 1fr; }
  .process-steps{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px){
  .hero{ padding-top: 140px; }
  /* blur-urile animate sunt scumpe pe GPU-urile de telefon */
  .hero-orb{ display: none; }
  /* randare amanata pentru sectiunile de sub fold — incarcare initiala mult mai rapida */
  .portfolio, .pain, .services, .process, .contact{
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
  .hero-title{
    white-space: nowrap;
    font-stretch: 85%;
    letter-spacing: -0.03em;
  }
  .stage-left, .stage-right{ display: none; }
  .hero-stage{ height: auto; margin-top: 48px; }
  .stage-center{ position: relative; display: block; margin-inline: auto; left: auto; transform: none; width: min(94%, 560px); }
  .stage-glow{ bottom: -8%; height: 60%; }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .form-row{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .nav-cta{ display: none; }
  .logo-mark{ height: 22px; }
  .section{ padding: 72px 0; }
  .contact-form{ padding: 26px 20px; }
  .compare-col{ padding: 30px 24px; }
  .footer-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 380px){
  .hero-title{ font-stretch: 78%; }
}
@media (max-width: 340px){
  .hero-title{ white-space: normal; font-stretch: 80%; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .hero-orb-a, .hero-orb-b, .marquee-track, .chip{ animation: none; }
  .bento-card, .service-card, .btn, .bento-card img, .info-card{ transition: none; }
}
