/* ===== Digital Box — Vibrant SaaS Design Tokens ===== */
:root{
  --navy: #1a2340;
  --blue: #2f6fed;
  --blue-light: #6ea1ff;
  --red: #ff4d67;
  --red-light: #ff8095;
  --purple: #7c5cff;
  --purple-light: #a48bff;
  --ink: #1a2340;
  --muted: #67728c;
  --bg: #f3f5fb;
  --card: #ffffff;
  --border: #eaedf6;
  --radius: 22px;
  --shadow: 0 12px 34px rgba(26, 35, 64, .08);
  --shadow-lg: 0 24px 60px rgba(26, 35, 64, .16);
  --ease: cubic-bezier(.22,.9,.32,1);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.65;
}
img{ max-width: 100%; display: block; }
a{ text-decoration: none; color: inherit; }
ul{ list-style: none; }
.container{ max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section{ padding: 110px 0; position: relative; }
.section-tag{
  display: inline-block; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  font-size: 13px; color: var(--purple); margin-bottom: 14px;
}
.section-tag.light{ color: var(--blue-light); }
.section-head{ text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-sub{ color: var(--muted); font-size: 16.5px; margin-top: 14px; }
.section-sub.light{ color: #c7d3e6; }
h1,h2,h3{ font-weight: 700; line-height: 1.2; color: var(--navy); }
h2{ font-size: clamp(28px, 4vw, 40px); font-weight: 800; }

/* ===== Preloader ===== */
#preloader{
  position: fixed; inset: 0; background: var(--bg); z-index: 9999;
  display:flex; align-items:center; justify-content:center;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
#preloader.hidden{ opacity: 0; visibility: hidden; }
.loader-box{
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--red));
  animation: spin 1.1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg) scale(1.1); } }

/* ===== Buttons ===== */
.btn{
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 16px 32px; border-radius: 50px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(120deg, var(--blue), var(--purple));
  color: #fff; box-shadow: 0 14px 32px rgba(47,111,237,.35);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 20px 44px rgba(47,111,237,.45); }
.btn-ghost{
  background: #fff; color: var(--navy); box-shadow: var(--shadow);
}
.btn-ghost:hover{ background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn.full{ width: 100%; }

/* ===== Header ===== */
#header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: padding .35s var(--ease);
  padding: 22px 0;
}
#header.scrolled{ padding: 14px 0; }
#header.scrolled::before{
  content:''; position: absolute; inset: 0; background: rgba(243,245,251,.85); backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(26,35,64,.06); z-index: -1;
}
.nav-wrap{ display: flex; align-items: center; justify-content: space-between; }
.brand img{ height: 62px; border-radius: 16px; background: #fff; padding: 6px 12px; box-shadow: var(--shadow); transition: height .35s var(--ease); }
#header.scrolled .brand img{ height: 52px; }
#nav ul{
  display: flex; align-items: center; gap: 4px; background: #fff; padding: 8px; border-radius: 50px;
  box-shadow: var(--shadow);
}
#nav a{ font-weight: 500; font-size: 14.5px; color: var(--navy); transition: background .25s, color .25s; padding: 11px 22px; border-radius: 50px; display: block; }
#nav a:not(.nav-cta):hover{ background: var(--bg); }
.nav-cta{
  background: linear-gradient(120deg, var(--blue), var(--purple)); color: #fff !important; padding: 11px 24px !important; border-radius: 50px;
  box-shadow: 0 10px 24px rgba(47,111,237,.35);
}
#navToggle{ display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 1001; }
#navToggle span{ width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero{
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 110px;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; }
.grid-overlay{ display: none; }
.cube-float{
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45;
  animation: float 10s ease-in-out infinite;
}
.cube1{ width: 460px; height: 460px; top: -140px; right: -100px; background: var(--blue); }
.cube2{ width: 380px; height: 380px; bottom: -160px; left: -120px; background: var(--red); opacity: .3; animation-delay: 2s; }
.cube3{ width: 300px; height: 300px; top: 40%; left: 60%; background: var(--purple); opacity: .3; animation-delay: 4s; }
@keyframes float{
  0%,100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-30px) scale(1.06); }
}
.hero-content{ position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px; background: #fff; padding: 10px 22px; border-radius: 50px;
  font-weight: 600; font-size: 13.5px; color: var(--purple); box-shadow: var(--shadow); margin-bottom: 28px;
}
.hero h1{ color: var(--navy); font-size: clamp(36px, 6vw, 62px); font-weight: 800; margin-bottom: 24px; }
.gradient-text{
  background: linear-gradient(120deg, var(--blue), var(--purple), var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub{ color: var(--muted); max-width: 560px; font-size: 18px; margin: 0 auto 40px; }
.hero-actions{ display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-bottom: 70px; }
.hero-stats{ display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.stat{ background: #fff; border-radius: 18px; padding: 22px 30px; box-shadow: var(--shadow); }
.stat .num{ font-size: 34px; font-weight: 800; background: linear-gradient(120deg, var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p{ color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.scroll-cue{
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; color: var(--purple);
  animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce{ 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ===== About ===== */
.about-grid{ display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.about-text p{ color: var(--muted); margin-top: 18px; font-size: 16px; }
.about-cards{ display: flex; flex-direction: column; gap: 22px; }
.vm-card{
  background: var(--card); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.vm-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vm-icon{
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; font-size: 20px; margin-bottom: 16px;
}
.vm-card:nth-child(2) .vm-icon{ background: linear-gradient(135deg, var(--red), var(--red-light)); }
.vm-card h3{ margin-bottom: 10px; }
.vm-card p{ color: var(--muted); font-size: 15px; }

/* ===== Values ===== */
.values{ background: #fff; }
.values-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card{
  background: var(--bg); border-radius: var(--radius); padding: 34px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.value-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lg); background: #fff; }
.value-icon{
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; margin-bottom: 18px;
}
.value-card:nth-child(5n+1) .value-icon{ background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.value-card:nth-child(5n+2) .value-icon{ background: linear-gradient(135deg, var(--red), var(--red-light)); }
.value-card:nth-child(5n+3) .value-icon{ background: linear-gradient(135deg, var(--purple), var(--purple-light)); }
.value-card:nth-child(5n+4) .value-icon{ background: linear-gradient(135deg, var(--navy), #425079); }
.value-card:nth-child(5n+5) .value-icon{ background: linear-gradient(135deg, var(--blue), var(--purple)); }
.value-card h3{ font-size: 19px; margin-bottom: 10px; }
.value-card p{ color: var(--muted); font-size: 14.5px; }

/* ===== Services ===== */
.services-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card{
  background: var(--card); border-radius: var(--radius); padding: 34px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.service-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-icon{
  width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 23px; margin-bottom: 20px;
}
.service-card:nth-child(4n+1) .service-icon{ background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.service-card:nth-child(4n+2) .service-icon{ background: linear-gradient(135deg, var(--red), var(--red-light)); }
.service-card:nth-child(4n+3) .service-icon{ background: linear-gradient(135deg, var(--purple), var(--purple-light)); }
.service-card:nth-child(4n+4) .service-icon{ background: linear-gradient(135deg, var(--navy), #425079); }
.service-card h3{ font-size: 18px; margin-bottom: 10px; }
.service-card p{ color: var(--muted); font-size: 14px; }

/* ===== Why Us ===== */
.why{ background: #fff; }
.why-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-list{ margin: 26px 0 34px; display: flex; flex-direction: column; gap: 14px; }
.why-list li{ display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.why-list i{
  width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.why-visual{ display: flex; align-items: center; justify-content: center; }
.orbit-wrap{ position: relative; width: 340px; height: 340px; display: flex; align-items: center; justify-content: center; }
.orbit-logo{ width: 140px; border-radius: 24px; box-shadow: var(--shadow-lg); z-index: 2; background: #fff; padding: 10px; }
.orbit{
  position: absolute; width: 60px; height: 60px; border-radius: 18px; background: var(--card);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--blue); animation: orbitSpin 14s linear infinite;
}
.orbit-1{ top: -10px; left: 50%; margin-left: -30px; animation-delay: 0s; color: var(--red); }
.orbit-2{ top: 50%; right: -10px; margin-top: -30px; animation-delay: -3.5s; color: var(--purple); }
.orbit-3{ bottom: -10px; left: 50%; margin-left: -30px; animation-delay: -7s; color: var(--red); }
.orbit-4{ top: 50%; left: -10px; margin-top: -30px; animation-delay: -10.5s; color: var(--blue); }
@keyframes orbitSpin{
  0%{ transform: rotate(0deg) translateX(0) rotate(0deg); }
  100%{ transform: rotate(360deg) translateX(0) rotate(-360deg); }
}
.orbit-wrap::before{
  content:''; position: absolute; width: 100%; height: 100%; border: 2px dashed var(--border); border-radius: 50%;
}

/* ===== Contact ===== */
.contact{ background: linear-gradient(135deg, var(--navy), #262f52); }
.contact-panel{
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 28px;
  padding: 56px; backdrop-filter: blur(10px);
}
.contact-info h2{ color: #fff; }
.contact-list{ margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li{ display: flex; align-items: center; gap: 14px; color: #dbe4f2; font-size: 15px; }
.contact-list i{ color: var(--blue-light); width: 20px; }
.contact-form{ background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.form-row{ display: flex; gap: 16px; margin-bottom: 16px; }
.contact-form input, .contact-form textarea{
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border);
  font-family: inherit; font-size: 14.5px; transition: border-color .25s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus{ outline: none; border-color: var(--blue); }
.contact-form textarea{ margin-bottom: 18px; }
.form-note{ margin-top: 14px; font-size: 14px; color: var(--purple); text-align: center; }

/* ===== Footer ===== */
.footer{ background: var(--navy); color: #a9b6cc; padding: 60px 0 0; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img{ height: 50px; margin-bottom: 14px; border-radius: 12px; background: #fff; padding: 5px 10px; }
.footer h4{ color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-links a, .footer-contact p{ display: block; margin-bottom: 12px; font-size: 14.5px; }
.footer-links a:hover{ color: var(--blue-light); }
.footer-contact i{ margin-right: 8px; color: var(--blue-light); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: 13.5px; }

/* ===== Back to top ===== */
#backToTop{
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(120deg, var(--blue), var(--purple)); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(47,111,237,.4); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .35s var(--ease); z-index: 900;
}
#backToTop.show{ opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== Reveal animation =====
   Content is visible by default (progressive enhancement).
   JS adds .reveal-armed on load, which hides elements just before
   they animate in via IntersectionObserver. This guarantees content
   is never blank if JS is slow/disabled or for crawlers/SEO. */
[data-reveal]{ transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].reveal-armed{ opacity: 0; transform: translateY(34px); }
[data-reveal].reveal-armed.in-view{ opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 992px){
  #nav{
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 340px; height: 100vh;
    background: #fff; padding: 100px 34px; transition: right .4s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,.15);
  }
  #nav.open{ right: 0; }
  #nav ul{ flex-direction: column; align-items: stretch; gap: 10px; background: none; box-shadow: none; padding: 0; }
  #nav a{ color: var(--navy) !important; font-size: 17px; text-align: left; }
  #navToggle{ display: flex; }
  .about-grid, .why-grid{ grid-template-columns: 1fr; }
  .values-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-panel{ grid-template-columns: 1fr; padding: 34px; }
}
@media (max-width: 600px){
  .section{ padding: 80px 0; }
  .values-grid, .services-grid{ grid-template-columns: 1fr; }
  .hero-stats{ gap: 14px; }
  .stat{ padding: 18px 22px; }
  .form-row{ flex-direction: column; gap: 0; }
  .contact-form input{ margin-bottom: 16px; }
  .orbit-wrap{ width: 260px; height: 260px; }
}
