/* =====================================================
   SOMAR IT SOLUTIONS — Motion Graphics Website
   ===================================================== */

:root {
  --blue: #1e5eff;
  --blue-deep: #1436b8;
  --blue-bright: #4d8dff;
  --cyan: #38c8ff;
  --navy: #060b1c;
  --navy-2: #0a1228;
  --navy-3: #0e1834;
  --white: #f4f7ff;
  --muted: #93a3c8;
  --card: rgba(20, 32, 66, 0.55);
  --card-border: rgba(77, 141, 255, 0.16);
  --gradient: linear-gradient(120deg, #4d8dff, #38c8ff 50%, #7aa8ff);
  --shadow-blue: 0 12px 40px rgba(30, 94, 255, 0.35);
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue-deep); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* =====================================================
   PRELOADER
   ===================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-logo { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.preloader-img {
  width: 86px; height: 86px; border-radius: 50%;
  object-fit: cover; background: #fff;
  box-shadow: 0 0 30px rgba(30, 94, 255, 0.5);
  animation: pulse-s 1.2s ease-in-out infinite;
}
.preloader-s {
  font-family: var(--font-head); font-weight: 800; font-size: 44px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pulse-s 1.2s ease-in-out infinite;
}
.preloader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(77, 141, 255, 0.15);
  border-top-color: var(--blue-bright);
  animation: spin 1s linear infinite;
}
.preloader-text {
  font-family: var(--font-head); letter-spacing: 6px; font-size: 12px; color: var(--muted);
  animation: pulse-s 1.2s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-s { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* =====================================================
   BACKGROUND FX
   ===================================================== */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(77, 141, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 141, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 100%);
}

.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: #1e5eff; top: -12%; left: -8%; }
.orb-2 { width: 420px; height: 420px; background: #0e2f8f; bottom: -10%; right: -6%; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #38c8ff; top: 45%; left: 55%; opacity: 0.14; animation-delay: -12s; }
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* =====================================================
   SCROLL PROGRESS
   ===================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient); z-index: 1001;
  box-shadow: 0 0 12px rgba(56, 200, 255, 0.8);
  transition: width 0.1s linear;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 11, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

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

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; background: #fff;
  box-shadow: 0 0 0 2px rgba(77, 141, 255, 0.4), 0 4px 16px rgba(30, 94, 255, 0.3);
}
.nav-logo-fallback {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  align-items: center; justify-content: center;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-text strong { font-family: var(--font-head); font-size: 20px; letter-spacing: 1px; }
.nav-brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: 2.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  position: relative; font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color 0.3s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gradient); border-radius: 2px;
  transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1002;
}
.nav-toggle span {
  width: 26px; height: 2.5px; background: var(--white); border-radius: 2px;
  transition: all 0.35s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 50px; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s, color 0.35s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-nav { padding: 10px 22px; font-size: 14px; }

.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: #fff; box-shadow: var(--shadow-blue);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 50px rgba(30, 94, 255, 0.5); }

.btn-ghost {
  color: var(--white); border: 1.5px solid rgba(147, 163, 200, 0.35);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--blue-bright); background: rgba(77, 141, 255, 0.1); transform: translateY(-3px); }

.btn-outline {
  color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  position: relative;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--blue-bright);
  background: rgba(77, 141, 255, 0.1);
  border: 1px solid var(--card-border);
  padding: 8px 18px; border-radius: 50px; margin-bottom: 26px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #35e07f;
  box-shadow: 0 0 0 0 rgba(53, 224, 127, 0.6);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 127, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(53, 224, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 127, 0); }
}

.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.08; letter-spacing: -1px; margin-bottom: 26px;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.12em; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub {
  font-size: 17.5px; color: var(--muted); max-width: 540px; margin-bottom: 36px;
}
.hero-sub strong { color: var(--white); }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num, .stat-plus {
  font-family: var(--font-head); font-weight: 700; font-size: 32px;
  color: var(--white); display: inline;
}
.stat-plus { color: var(--blue-bright); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 44px; background: rgba(147, 163, 200, 0.2); }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-logo-wrap { position: relative; width: min(380px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero-logo {
  width: 82%; border-radius: 50%;
  box-shadow: 0 0 80px rgba(30, 94, 255, 0.45), 0 0 0 1px rgba(77, 141, 255, 0.2);
  position: relative; z-index: 2;
}
.hero-logo-fallback {
  display: none; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #16307e, var(--navy-2));
  border: 2px solid var(--card-border);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; position: relative; z-index: 2;
  box-shadow: 0 0 80px rgba(30, 94, 255, 0.45);
}
.hero-logo-fallback span {
  font-family: var(--font-head); font-weight: 800; font-size: 96px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.hero-logo-fallback p {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  text-align: center; letter-spacing: 3px;
}
.hero-logo-fallback small { font-size: 11px; color: var(--muted); letter-spacing: 4px; }

.floaty { animation: floaty 5.5s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(77, 141, 255, 0.3);
}
.ring-1 { inset: -6%; animation: spin 26s linear infinite; }
.ring-2 { inset: -16%; border-style: dotted; border-color: rgba(56, 200, 255, 0.22); animation: spin 40s linear infinite reverse; }
.ring-3 { inset: -26%; border-color: rgba(77, 141, 255, 0.12); animation: spin 60s linear infinite; }
.ring-1::before, .ring-2::before {
  content: ''; position: absolute; top: 50%; left: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px var(--cyan);
}

.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; font-family: var(--font-head);
  background: rgba(14, 24, 52, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  padding: 10px 16px; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: chip-float 4.5s ease-in-out infinite;
}
.chip-1 { top: 6%; left: -4%; animation-delay: 0s; }
.chip-2 { top: 22%; right: -8%; animation-delay: -1.2s; }
.chip-3 { bottom: 20%; left: -10%; animation-delay: -2.3s; }
.chip-4 { bottom: 4%; right: -2%; animation-delay: -3.1s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.3s;
}
.scroll-hint:hover { color: var(--white); }
.mouse {
  width: 24px; height: 38px; border: 2px solid rgba(147, 163, 200, 0.5);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 6px;
}
.wheel {
  width: 3px; height: 8px; background: var(--blue-bright); border-radius: 3px;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee-section {
  padding: 22px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: rgba(10, 18, 40, 0.5);
  transform: rotate(-1deg) scale(1.02);
  margin: 20px 0 40px;
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex; align-items: center; gap: 34px;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  color: var(--white); opacity: 0.85; text-transform: uppercase; letter-spacing: 1px;
}
.marquee-track i {
  color: var(--blue-bright); font-style: normal; font-size: 12px;
  animation: spin 4s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================
   SECTIONS SHARED
   ===================================================== */
.section { padding: 110px 0; position: relative; }

.section-tag {
  display: inline-block;
  font-family: 'Courier New', monospace; font-weight: 700; font-size: 14px;
  color: var(--cyan); letter-spacing: 2px; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 560px; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .section-sub { margin: 0 auto; }

/* =====================================================
   ABOUT
   ===================================================== */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 60px; align-items: center;
}
.about-left p { color: var(--muted); margin-bottom: 18px; font-size: 16.5px; }
.about-left p strong { color: var(--white); }

.about-points { margin-top: 34px; display: flex; flex-direction: column; gap: 20px; }
.about-point { display: flex; gap: 16px; align-items: flex-start; }
.point-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(77, 141, 255, 0.12); border: 1px solid var(--card-border);
  display: grid; place-items: center;
  color: var(--cyan); font-weight: 700; font-size: 18px;
}
.about-point h4 { font-family: var(--font-head); font-size: 16.5px; margin-bottom: 2px; }
.about-point p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Code card */
.code-card {
  background: var(--navy-2);
  border: 1px solid var(--card-border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
  transform-style: preserve-3d;
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--card-border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.code-title { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-family: monospace; }
.code-body {
  padding: 24px 26px; font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14.5px; line-height: 1.9; color: #c8d6f5; overflow-x: auto;
}
.c-key { color: #4d8dff; }
.c-str { color: #7ee0a3; }
.c-fn { color: #ffc46b; }
.cursor-blink { animation: blink 1s step-start infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

/* =====================================================
   SERVICES
   ===================================================== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 26px 28px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(77, 141, 255, 0.13), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(77, 141, 255, 0.5);
  box-shadow: 0 24px 60px rgba(14, 47, 143, 0.4);
}

.service-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 94, 255, 0.22), rgba(56, 200, 255, 0.1));
  border: 1px solid var(--card-border);
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--blue-bright);
  transition: transform 0.45s var(--ease), color 0.45s, background 0.45s;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon {
  transform: scale(1.12) rotate(-6deg);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.service-card h3 {
  font-family: var(--font-head); font-size: 18.5px; font-weight: 700;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.service-card p { color: var(--muted); font-size: 14.5px; position: relative; z-index: 1; }

.service-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-head); font-weight: 800; font-size: 38px;
  color: rgba(77, 141, 255, 0.12);
  transition: color 0.4s;
}
.service-card:hover .service-num { color: rgba(77, 141, 255, 0.3); }

/* =====================================================
   SERVICE HOVER PREVIEWS
   ===================================================== */
.preview-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 12px;
  letter-spacing: 0.5px; color: var(--cyan);
  background: rgba(56, 200, 255, 0.08);
  border: 1px solid rgba(56, 200, 255, 0.25);
  padding: 6px 13px; border-radius: 50px;
  position: relative; z-index: 1;
  transition: background 0.35s, box-shadow 0.35s;
}
.service-card:hover .preview-badge {
  background: rgba(56, 200, 255, 0.16);
  box-shadow: 0 0 18px rgba(56, 200, 255, 0.25);
}
.preview-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  animation: pulse-dot 1.8s infinite;
}

.svc-popup {
  position: fixed; top: 0; left: 0; z-index: 950;
  width: min(560px, 92vw);
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(0.92);
  transform-origin: center;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  pointer-events: none;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6));
}
.svc-popup.visible {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.svc-popup.centered { pointer-events: auto; }

.svc-popup-window {
  background: var(--navy-2);
  border: 1px solid rgba(77, 141, 255, 0.35);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(56, 200, 255, 0.08), 0 0 60px rgba(30, 94, 255, 0.25);
}

.svc-popup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--card-border);
}
.svc-popup-url {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 12px; padding: 4px 14px;
  background: rgba(6, 11, 28, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-family: monospace; font-size: 11.5px; color: var(--muted);
}
.svc-popup-close {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08); border: none; color: var(--white);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  font-size: 12px; line-height: 1;
}
.svc-popup.centered .svc-popup-close { display: grid; place-items: center; }

.svc-popup-body { position: relative; background: #0b1224; }
.svc-popup-img { display: block; width: 100%; }

/* CSS mock dashboard fallback */
.svc-popup-fallback { display: none; padding: 16px; }
.mock-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px;
}
.mock-tile {
  border-radius: 9px; padding: 10px 12px; color: #fff;
  display: flex; flex-direction: column; gap: 1px;
}
.mock-tile small { font-size: 9.5px; opacity: 0.85; }
.mock-tile strong { font-family: var(--font-head); font-size: 14.5px; letter-spacing: -0.3px; }
.mock-tile em { font-style: normal; font-size: 8.5px; opacity: 0.7; }
.t-blue { background: linear-gradient(135deg, #4b63e8, #3648c9); }
.t-green { background: linear-gradient(135deg, #1d9e63, #157a4b); }
.t-cyan { background: linear-gradient(135deg, #10bde4, #0b95c9); }
.t-teal { background: linear-gradient(135deg, #17a689, #10836b); }
.t-red { background: linear-gradient(135deg, #e2504f, #c03a3a); }
.t-gold { background: linear-gradient(135deg, #f0b429, #d99a16); }

.mock-chart {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px; padding: 12px 14px 10px;
}
.mock-chart small { font-size: 10.5px; color: var(--muted); display: block; margin-bottom: 8px; }
.mock-bars { display: flex; align-items: flex-end; gap: 9px; height: 64px; }
.mock-bars span {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep));
  height: 0;
  transition: height 0.8s var(--ease);
}
.svc-popup.visible .mock-bars span { height: var(--h); }
.svc-popup.visible .mock-bars span:nth-child(2) { transition-delay: 0.08s; }
.svc-popup.visible .mock-bars span:nth-child(3) { transition-delay: 0.16s; }
.svc-popup.visible .mock-bars span:nth-child(4) { transition-delay: 0.24s; }
.svc-popup.visible .mock-bars span:nth-child(5) { transition-delay: 0.32s; }
.svc-popup.visible .mock-bars span:nth-child(6) { transition-delay: 0.4s; }
.svc-popup.visible .mock-bars span:nth-child(7) { transition-delay: 0.48s; }

.svc-popup-caption {
  display: flex; flex-direction: column; gap: 2px;
  padding: 13px 18px;
  border-top: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}
.svc-popup-caption strong { font-family: var(--font-head); font-size: 13.5px; color: var(--white); }
.svc-popup-caption span { font-size: 12px; color: var(--muted); }

/* ---- Mock building blocks (used by the per-product previews) ---- */
.m-rows { border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.m-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8.5px 13px; font-size: 12px; color: #c8d6f5;
  border-bottom: 1px solid rgba(77, 141, 255, 0.09);
}
.m-row:last-child { border-bottom: none; }
.m-row b { font-family: var(--font-head); font-size: 12.5px; color: var(--white); white-space: nowrap; }
.m-head {
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-head); font-weight: 700; font-size: 10px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted);
}
.m-total { background: rgba(77, 141, 255, 0.12); font-weight: 700; }

.m-pill {
  font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 0.4px;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.p-green { color: #35e07f; background: rgba(53, 224, 127, 0.13); }
.p-amber { color: #ffc46b; background: rgba(255, 196, 107, 0.13); }
.p-red   { color: #ff7b7b; background: rgba(255, 107, 107, 0.13); }
.p-blue  { color: var(--blue-bright); background: rgba(77, 141, 255, 0.13); }

.m-paykeys { display: flex; gap: 8px; margin-top: 11px; }
.m-paykeys span {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--card-border); color: var(--muted);
}
.m-paykeys .k-accent {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; border-color: transparent;
}

.m-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.m-cam {
  position: relative; aspect-ratio: 16 / 9.5; border-radius: 9px; overflow: hidden;
  background: linear-gradient(160deg, #1a2747, #0b1224 65%);
  border: 1px solid var(--card-border);
}
.m-cam::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.015) 3px 4px);
}
.m-cam i {
  position: absolute; top: 7px; left: 9px; z-index: 1;
  font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: 0.5px; color: #ff5f57;
  animation: blink 1.4s step-start infinite;
}
.m-cam span { position: absolute; bottom: 6px; left: 9px; z-index: 1; font-size: 9px; color: var(--muted); }

.m-meter {
  flex: 1; max-width: 42%; height: 7px; border-radius: 6px;
  background: rgba(147, 163, 200, 0.15); overflow: hidden;
}
.m-meter i { display: block; height: 100%; width: var(--w, 50%); border-radius: 6px; background: var(--gradient); }

.m-cellgrid { display: grid; gap: 8px; }
.m-rooms { grid-template-columns: repeat(6, 1fr); }
.m-rooms .cell {
  text-align: center; padding: 9px 0; border-radius: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: 10.5px;
}
.c-vac { background: rgba(53, 224, 127, 0.14); color: #35e07f; }
.c-occ { background: rgba(255, 107, 107, 0.14); color: #ff7b7b; }
.c-cln { background: rgba(255, 196, 107, 0.14); color: #ffc46b; }

.m-legend {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 11px; font-size: 10px; color: var(--muted);
}
.m-legend i { font-style: normal; display: flex; align-items: center; gap: 5px; }
.m-legend i::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: currentColor; }
.l-green { color: #35e07f; } .l-red { color: #ff7b7b; } .l-amber { color: #ffc46b; }

.m-rack { display: flex; flex-direction: column; gap: 9px; }
.m-rack-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--card-border);
  border-radius: 9px; padding: 9px 13px;
}
.m-rack-row b { font-family: monospace; font-size: 10.5px; color: var(--muted); width: 54px; flex-shrink: 0; }
.m-ports { display: flex; gap: 4.5px; flex-wrap: wrap; }
.m-ports i { width: 13px; height: 13px; border-radius: 3px; background: rgba(147, 163, 200, 0.18); }
.m-ports .on { background: var(--cyan); box-shadow: 0 0 8px rgba(56, 200, 255, 0.7); }

.m-lab { grid-template-columns: repeat(5, 1fr); }
.m-lab .pc {
  position: relative; height: 30px; border-radius: 5px; margin-bottom: 7px;
  background: linear-gradient(150deg, #27418f, #12234f);
  border: 1px solid rgba(77, 141, 255, 0.4);
}
.m-lab .pc::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  width: 14px; height: 4px; border-radius: 2px; background: rgba(147, 163, 200, 0.35);
}

.m-web { border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.m-web-nav { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: rgba(255, 255, 255, 0.05); }
.m-web-nav i { width: 26px; height: 5px; border-radius: 3px; background: rgba(147, 163, 200, 0.3); }
.m-web-nav i:first-child { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-bright); }
.m-web-hero {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 12px;
  background: linear-gradient(160deg, rgba(30, 94, 255, 0.25), rgba(56, 200, 255, 0.06));
}
.m-web-hero b { font-family: var(--font-head); font-size: 14px; }
.m-web-hero span { width: 55%; height: 5px; border-radius: 3px; background: rgba(147, 163, 200, 0.3); }
.m-web-hero em {
  font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 9.5px;
  padding: 5px 14px; border-radius: 20px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}
.m-web-cards { display: flex; gap: 8px; padding: 10px; }
.m-web-cards i { flex: 1; height: 34px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--card-border); }

.m-codetext {
  font-family: Consolas, 'Courier New', monospace; font-size: 12px; line-height: 1.85;
  background: #0b1224; border: 1px solid var(--card-border); border-radius: 10px;
  padding: 14px 16px; color: #c8d6f5; white-space: pre; overflow-x: auto;
}

/* =====================================================
   WHY US
   ===================================================== */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px; margin-bottom: 90px;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px; padding: 32px 26px;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}
.why-card:hover { transform: translateY(-8px); border-color: rgba(77, 141, 255, 0.45); }
.why-icon { font-size: 34px; margin-bottom: 16px; }
.why-card h3 { font-family: var(--font-head); font-size: 18px; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.why-bar {
  height: 6px; background: rgba(147, 163, 200, 0.15); border-radius: 6px; overflow: hidden;
}
.why-bar span {
  display: block; height: 100%; width: 0;
  background: var(--gradient); border-radius: 6px;
  transition: width 1.4s var(--ease) 0.3s;
  box-shadow: 0 0 10px rgba(56, 200, 255, 0.6);
}

/* Process */
.process-title {
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  text-align: center; margin-bottom: 48px;
}
.process-steps {
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
}
.process-step { flex: 1; max-width: 220px; text-align: center; }
.step-circle {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  box-shadow: var(--shadow-blue);
  transition: transform 0.4s var(--ease);
}
.process-step:hover .step-circle { transform: scale(1.15) rotate(8deg); }
.process-step h4 { font-family: var(--font-head); font-size: 17px; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: var(--muted); }
.process-line {
  flex: 0.6; height: 2px; margin-top: 31px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright));
  border-radius: 2px; transform-origin: left;
}

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner { padding: 40px 0 110px; }
.cta-inner {
  position: relative; text-align: center;
  background: linear-gradient(140deg, #10225c, #0a1440 60%, #101a3e);
  border: 1px solid rgba(77, 141, 255, 0.3);
  border-radius: 28px;
  padding: 72px 40px;
  overflow: hidden;
}
.cta-glow {
  position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(56, 200, 255, 0.25), transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.cta-inner h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px;
  position: relative;
}
.cta-inner p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto 36px; position: relative; }
.cta-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact { padding-top: 20px; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.contact-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 38px 30px;
  text-align: center;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.contact-card:hover {
  transform: translateY(-10px);
  border-color: rgba(77, 141, 255, 0.5);
  box-shadow: 0 24px 60px rgba(14, 47, 143, 0.35);
}
.contact-icon {
  width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 20px;
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease);
}
.contact-card:hover .contact-icon { transform: scale(1.12) rotate(-6deg); }
.contact-icon.fb { background: linear-gradient(135deg, #1877f2, #0a4fb8); color: #fff; box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4); }
.contact-icon.phone { background: linear-gradient(135deg, #28c76f, #1a9e56); color: #fff; box-shadow: 0 10px 30px rgba(40, 199, 111, 0.35); }
.contact-icon.pin { background: linear-gradient(135deg, #ff6b6b, #d94848); color: #fff; box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3); }
.contact-card h3 { font-family: var(--font-head); font-size: 19px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.contact-action { color: var(--blue-bright); font-weight: 600; font-size: 14.5px; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  border-top: 1px solid var(--card-border);
  background: rgba(8, 14, 32, 0.8);
  padding-top: 64px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-tagline { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 15px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--white); margin-bottom: 6px;
}
.footer-col a, .footer-col span { color: var(--muted); font-size: 14.5px; transition: color 0.3s, transform 0.3s; }
.footer-col a:hover { color: var(--blue-bright); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid rgba(147, 163, 200, 0.1);
  padding: 22px 0; text-align: center;
  color: var(--muted); font-size: 13.5px;
}

/* =====================================================
   FLOATING ACTION BUTTON
   ===================================================== */
.fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #1877f2, #0a4fb8);
  color: #fff; padding: 15px 18px; border-radius: 50px;
  box-shadow: 0 12px 40px rgba(24, 119, 242, 0.5);
  transform: translateY(120px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s, box-shadow 0.3s;
}
.fab.visible { transform: translateY(0); opacity: 1; }
.fab:hover { box-shadow: 0 16px 50px rgba(24, 119, 242, 0.7); transform: translateY(-4px) scale(1.04); }
.fab-label {
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width 0.5s var(--ease);
}
.fab:hover .fab-label { max-width: 140px; }

/* =====================================================
   SCROLL REVEAL SYSTEM
   ===================================================== */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-line {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(44px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.88); }
.reveal-line  { transform: translateY(110%); display: inline-block; }

.in-view .reveal-up, .in-view.reveal-up,
.in-view .reveal-left, .in-view.reveal-left,
.in-view .reveal-right, .in-view.reveal-right,
.in-view .reveal-scale, .in-view.reveal-scale,
.in-view .reveal-line, .in-view.reveal-line {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }
.delay-5 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { margin-top: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .float-chip { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 0; z-index: 1001;
    background: rgba(6, 11, 28, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 34px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 22px; }
  .nav-toggle { display: flex; }

  .section { padding: 80px 0; }
  .hero { padding-top: 120px; }
  .hero-stats { justify-content: center; gap: 18px; }
  .stat-num, .stat-plus { font-size: 26px; }
  .scroll-hint { display: none; }

  .process-steps { flex-direction: column; align-items: center; gap: 30px; }
  .process-line { width: 2px; height: 40px; flex: none; margin: 0; }

  .cta-inner { padding: 56px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .fab-label { display: none; }
}
