:root{
  --bg:#ffffff;
  --bg2:#f8fafc;

  /* panels / cards */
  --panel:#ffffff;
  --card:#ffffff;
  --chip:#e5edf5;

  /* text */
  --text:#001022; /* main navy text */
  --muted:#4b5563; /* softer navy/gray for body text */

  /* brand colors */
  --brand:#0ea5e9; /* sky-500 */
  --brand-2:#22c55e; /* green-500 */
  --brand-3:#f59e0b; /* amber-500 */

  /* borders & shadows */
  --border:rgba(15,23,42,.14); /* IMPORTANT: this must be a COLOR only */
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.12);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  background: var(--bg);
  font:400 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Inter,Ubuntu,"Helvetica Neue",Arial;
}

/* No global page scroll – each page scrolls internally */
body{
  overflow:hidden;
}

a{
  color:var(--brand);
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

.container{
  max-width:1200px;
  margin-inline:auto;
  padding:24px;
}

/* HEADER & NAV */
header{
  position:sticky;
  top:0;
  z-index:50;
  background: #ffffff;
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  transition:box-shadow .2s ease, background .2s ease;
}
header.scrolled{
  box-shadow:0 12px 30px rgba(0,0,0,.55);
  background:rgba(15,23,42,.96);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* LOGO */
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  white-space:nowrap;
}

.logo-img{
  width:40px;
  height:40px;
  border-radius:12px;
  object-fit:contain;
  background:#020617;
  padding:4px;
  box-shadow:var(--shadow);
}

.logo-mark{
  width:32px;
  height:32px;
  border-radius:10px;
  background:
    radial-gradient(120% 120% at 20% 20%, var(--brand), var(--brand-2) 60%, transparent 61%),
    linear-gradient(135deg, #0ea5e9, #22c55e);
  box-shadow:var(--shadow);
  background-size:200% 200%;
  animation:shimmer 14s linear infinite;
}

.logo-text-main{
  font-size:15px;
}
.logo-text-sub{
  font-size:11px;
  color:var(--muted);
  letter-spacing:.03em;
  text-transform:uppercase;
}

/* NAV LINKS */
.menu{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:flex-end;
}

.menu a{
  color:var(--text);
  opacity:.9;
  position:relative;
  font-size:14px;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.menu a.active{
  color:var(--brand-3);
}
.menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  height:2px;
  width:0;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  transition:width .25s ease;
}
.menu a:hover::after,
.menu a.active::after{
  width:100%;
}

/* MOBILE MENU TOGGLE */
.menu-toggle{
  display:none;
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(15,23,42,.9);
  padding:8px;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  outline:none;
}
.menu-toggle span{
  display:block;
  height:2px;
  width:100%;
  background:#e5e7eb;
  border-radius:999px;
  transition:transform .25s ease, opacity .25s ease;
  position:relative;
}
.menu-toggle span:nth-child(1){top:2px;position:relative;}
.menu-toggle span:nth-child(2){margin:6px 0;}
.menu-toggle span:nth-child(3){bottom:2px;position:relative;}
.menu-toggle.active span:nth-child(1){
  transform:translateY(4px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2){
  opacity:0;
}
.menu-toggle.active span:nth-child(3){
  transform:translateY(-4px) rotate(-45deg);
}

/* HERO & COMMON ELEMENTS */
.hero{
  padding:72px 0 48px;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:36px;
  align-items:center;
}
.hero h1{
  font-size:clamp(28px,4vw,48px);
  line-height:1.1;
  margin:0 0 12px;
}

tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(90deg,rgba(14,165,233,.12),rgba(34,197,94,.12));
  border:1px solid rgba(148,163,184,.25);
  color:var(--text);
  padding:6px 12px;
  border-radius:999px;
  font-size:14px;
}

.lead{
  color:var(--muted);
  max-width:900px;
}

.cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

/* BUTTONS */
.btn{
  padding:12px 16px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#0a1326;
  color:var(--text);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-size:14px;
  position:relative;
  overflow:hidden;
}

.btn::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:60%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.35),transparent);
  transform:skewX(-18deg);
  opacity:0;
  pointer-events:none;
}

.btn.primary{
  background:linear-gradient(135deg,var(--brand),#38bdf8 60%, #22c55e);
  color:#051018;
  font-weight:700;
  box-shadow:0 10px 24px rgba(8,47,73,.5);
}

.btn:hover{
  transform:translateY(-2px) scale(1.01);
  box-shadow:0 12px 26px rgba(0,0,0,.35);
  background:#0b1730;
}
.btn.primary:hover{
  background:linear-gradient(135deg,#38bdf8,var(--brand),#22c55e);
}
.btn:hover::after{
  opacity:1;
  animation:btnShine .8s ease-out forwards;
}

/* Ripple element inside buttons */
.btn .ripple {
  position: absolute;
  border-radius: 999px;
  transform: scale(0);
  background: rgba(255,255,255,.35);
  pointer-events: none;
  animation: ripple .6s ease-out;
  mix-blend-mode: screen;
  opacity: 0.9;
}

/* Ripple animation */
@keyframes ripple {
  to {
    transform: scale(18);
    opacity: 0;
  }
}

/* Glowing main CTA button */
.cta-main{
  box-shadow:0 0 0 rgba(56,189,248,0.0);
  animation:pulseGlow 2.4s ease-in-out infinite;
}

/* Soft aura behind the button */
.cta-main::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:inherit;
  background:radial-gradient(circle at 50% 0%,
    rgba(56,189,248,.45),
    rgba(34,197,94,.0) 60%);
  opacity:.75;
  filter:blur(8px);
  z-index:-1;
}

/* Keyframes for breathing glow */
@keyframes pulseGlow{
  0%{
    transform:translateY(0);
    box-shadow:0 0 0 rgba(56,189,248,0.0);
  }
  30%{
    transform:translateY(-1px) scale(1.01);
    box-shadow:0 0 28px rgba(56,189,248,0.7);
  }
  60%{
    transform:translateY(0) scale(1);
    box-shadow:0 0 16px rgba(56,189,248,0.4);
  }
  100%{
    transform:translateY(0);
    box-shadow:0 0 0 rgba(56,189,248,0.0);
  }
}

/* HERO CARD */
.hero-card{
  background:linear-gradient(180deg,#0a1428,#071021);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:12px;
}

.kpi{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  text-align:center;
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.kpi:hover{
  transform:translateY(-3px) translateZ(0);
  background:#0d1a2d;
  box-shadow:0 12px 30px rgba(15,23,42,.6);
}
.kpi b{
  display:block;
  font-size:28px;
  color:var(--brand);
}
.kpi small{
  display:block;
  color:var(--muted);
}

/* GRID & CARDS */
.grid{
  display:grid;
  gap:18px;
}
.grid.cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.grid.cols-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px; /* you already boosted this */
  box-shadow:0 12px 28px rgba(15,23,42,.06);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(15,23,42,.14);
  border-color:rgba(56,189,248,.6);
}

.chip{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:var(--chip);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 12px;
  color:var(--text);
  font-size:13px;
}

ul.clean{
  padding-left:18px;
}
.pillrow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0;
}
.icon{
  width:18px;
  height:18px;
  border-radius:5px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
}

section{
  padding:150px 0 64px; /* BIGGER top padding so it clears the header */
  border-top:1px solid var(--border);
  transform-style:preserve-3d;
}

/* Extra safety for the Contact page */
#contact{
  padding-top:170px;
}


/* MAIN PAGE-BASED LAYOUT */
main{
  position:relative;
  height:calc(100vh - 70px); /* approx header height */
  perspective:1400px;
  overflow:hidden;
}

/* Each section is a PAGE */
.page{
  position:absolute;
  inset:0;
  padding:54px 0;
  border-top:1px solid var(--border);
  background: var(--bg); /* pure white */
  opacity:0;
  pointer-events:none;
  transform:translateX(40px) scale(.97);
  transform-style:preserve-3d;
  will-change:transform,opacity;
  transition:opacity .45s ease, transform .45s ease;
  overflow-y:auto;
}

/* Initial active page */
.page-active{
  opacity:1;
  pointer-events:auto;
  transform:translateX(0) scale(1);
}

/* RANDOM ANIMATION VARIANTS */
.page-anim-flip{
  animation:pageFlip .6s cubic-bezier(.23,.82,.22,.99);
  transform-origin:left center;
}
.page-anim-slide{
  animation:pageSlide .55s ease-out;
}
.page-anim-rise{
  animation:pageRise .55s ease-out;
}
.page-anim-zoom{
  animation:pageZoom .55s ease-out;
}

/* Stronger page-turn animation on section */
.page-turn{
  animation: pageTurn .85s cubic-bezier(.23, .82, .22, .99);
  transform-origin: left center;
}

@keyframes pageTurn{
  0%{
    opacity: 0;
    transform:
      rotateY(-40deg)
      translateX(-30px)
      scale(0.94);
    box-shadow: 0 0 0 rgba(0,0,0,0);
    filter: blur(2px);
  }
  55%{
    opacity: 1;
    transform:
      rotateY(10deg)
      translateX(8px)
      scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
    filter: blur(0);
  }
  100%{
    opacity: 1;
    transform:
      rotateY(0deg)
      translateX(0)
      scale(1);
    box-shadow: 0 10px 26px rgba(0,0,0,.4);
    filter: blur(0);
  }
}
@keyframes pageSlide{
  0%{
    opacity:0;
    transform:translateX(80px) translateZ(-80px) scale(.96);
  }
  100%{
    opacity:1;
    transform:translateX(0) translateZ(0) scale(1);
  }
}

@keyframes pageRise{
  0%{
    opacity:0;
    transform:translateY(40px) scale(.96) rotateX(8deg);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes pageZoom{
  0%{
    opacity:0;
    transform:scale(.9) translateY(16px);
  }
  100%{
    opacity:1;
    transform:scale(1) translateY(0);
  }
}

/* OTHER ANIMATIONS */
@keyframes shimmer{
  0%{background-position:0% 50%}
  100%{background-position:100% 50%}
}

@keyframes btnShine{
  0%{transform:translateX(-120%) skewX(-18deg);opacity:0}
  30%{opacity:1}
  100%{transform:translateX(140%) skewX(-18deg);opacity:0}
}

/* FLOATING CONTACT BUTTON */
.fab-contact{
  position:fixed;
  right:18px;
  bottom:22px;
  z-index:60;
  padding:10px 16px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#020617;
  font-weight:600;
  font-size:13px;
  box-shadow:0 10px 30px rgba(0,0,0,.6);
  border:none;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.fab-contact::before{
  content:'•';
  font-size:18px;
}
.fab-contact:hover{
  transform:translateY(-2px);
}

/* SCROLL-TO-TOP BUTTON */
.scroll-top{
   position:fixed;
  right:18px;
  bottom:80px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#001022;
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.6);
  opacity:0;
  pointer-events:none;
  transform:translateY(6px);
  transition:opacity .2s ease, transform .2s ease;
  z-index:60;
}
.scroll-top.visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.scroll-top:hover{
  transform:translateY(-2px);
}

/* RESPONSIVE */
@media (max-width:900px){
  .hero{
    grid-template-columns:1fr;
  }
  .grid.cols-3,
  .grid.cols-2{
    grid-template-columns:1fr;
  }

  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .nav{
    gap:10px;
  }

  .menu{
    position:fixed;
    top:64px;
    right:0;
    bottom:0;
    width:230px;
    background:rgba(15,23,42,.98);
    border-left:1px solid var(--border);
    box-shadow:-10px 0 30px rgba(0,0,0,.7);
    padding:18px;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:12px;
    transform:translateX(100%);
    transition:transform .25s ease-out;
    z-index:40;
  }
  .menu.open{
    transform:translateX(0);
  }
  .menu a{
    font-size:14px;
  }
  .menu .chip{
    width:100%;
    justify-content:flex-start;
  }

  .fab-contact{
    right:12px;
    bottom:18px;
  }
  .scroll-top{
    right:12px;
    bottom:80px;
  }
}

/* Prevent background scroll when menu is open */
body.menu-open{
  overflow:hidden;
}

.logo-img{
  width:72px; /* bigger logo */
  height:72px;
  border-radius:20px;
  object-fit:contain;
  background:#020617;
  padding:4px;
  box-shadow:var(--shadow);
}
.logo-text-main{
  font-size:17px;
}

.logo-text-sub{
  font-size:11px;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Mobile: stack footer lines */
@media (max-width:700px){
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}
/* Fix label spacing inside contact form */
#contactForm label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

#contactForm input,
#contactForm textarea {
  margin-top: 6px; /* space between label and field */
}

#contactForm {
  padding: 30px;
  border-radius: 18px;
}
.card {
  padding: 26px; /* more breathing room */
}
#contactForm {
  padding-top: 28px !important; 
}
:target{
  scroll-margin-top:120px; /* was 90px */
}
/* --------------------------------------------- */
/* FIX: Prevent section titles from hiding */
/* --------------------------------------------- */

#products,
#market,
#operations,
#team {
  padding-top: 200px;   
}

/* Ensure anchor scroll positions are aligned */
:target {
  scroll-margin-top: 200px;
}

footer{
  padding:36px 0;
  border-top:1px solid rgba(0,0,0,.1);
  color:#1e293b; /* DARK NAVY TEXT */
  background:#ffffff; /* PURE WHITE */
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  font-size:13px;
  color:#1e293b; /* ENSURE TEXT IS DARK */
}

.footer-powered{
  display:flex;
  align-items:center;
  gap:4px;
  color:#1e293b; /* VERY VISIBLE */
}

.footer-powered a{
  color:#0ea5e9; /* your brand blue */
  font-weight:600;
  text-decoration:none;
}

.footer-powered a:hover{
  text-decoration:underline;
}
/* ===== FINAL FULL OVERRIDE FOR FOOTER ===== */
footer,
.footer-inner,
.footer-powered,
.footer-powered a,
.footer-inner a,
.footer-inner span {
    color: #0f172a !important; /* deep navy */
    opacity: 1 !important;
}

.footer-powered a {
    color: #0ea5e9 !important; /* brand blue link */
    font-weight: 600 !important;
    text-decoration: none !important;
}

.footer-powered a:hover {
    text-decoration: underline !important;
}
