:root{
  --bg:#07111f;
  --bg-soft:#0b1728;
  --card:rgba(255,255,255,0.04);
  --line:rgba(255,255,255,0.08);

  --white:#f5fbff;
  --muted:#91a6bb;

  --cyan:#00d4ff;
  --green:#00ff9d;
  --blue:#118dff;

  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:22px;
}

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:'DM Sans',sans-serif;
  background:radial-gradient(circle at top, rgba(0,212,255,.08), transparent 30%), var(--bg);
  color:var(--white);
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

canvas#canvas-bg{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:-1;
}

section{
  width:min(1200px, calc(100% - 40px));
  margin:0 auto;
  padding:110px 0;
  position:relative;
}

nav{
  width:min(1200px, calc(100% - 40px));
  margin:24px auto 0;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  position:sticky;
  top:18px;
  z-index:1000;
  background:rgba(7,17,31,.6);
  border:1px solid var(--line);
  backdrop-filter:blur(16px);
  border-radius:18px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo img{
  width:44px;
  height:44px;
  object-fit:contain;
}

.logo-text{
  font-family:'Syne',sans-serif;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.02em;
}

.logo-text span{
  color:var(--cyan);
}

.nav-links{
  list-style:none;
  display:flex;
  align-items:center;
  gap:26px;
}

.nav-links a{
  color:var(--muted);
  transition:.3s;
}

.nav-links a:hover{
  color:var(--white);
}

.nav-cta,
.btn-primary,
.cta-glow-btn{
  border:none;
  cursor:pointer;
  background:linear-gradient(135deg,var(--green),var(--cyan));
  color:#041019;
  font-weight:700;
  padding:14px 20px;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,255,157,.18);
  transition:.3s;
}

.nav-cta:hover,
.btn-primary:hover,
.cta-glow-btn:hover{
  transform:translateY(-2px);
}

.btn-ghost{
  padding:14px 20px;
  border-radius:14px;
  border:1px solid var(--line);
  color:var(--white);
  background:rgba(255,255,255,.02);
}

#hero{
  min-height:90vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.hero-orb{
  position:absolute;
  width:500px;
  height:500px;
  top:-100px;
  left:50%;
  transform:translateX(-50%);
}

.hero-badge,
.section-label,
.slide-tag,
.service-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(0,212,255,.18);
  background:rgba(0,212,255,.08);
  color:var(--cyan);
  font-size:.82rem;
}

#hero h1,
h2{
  font-family:'Syne',sans-serif;
  line-height:1.05;
}

#hero h1{
  font-size:clamp(2.5rem, 6vw, 5.6rem);
  margin:22px 0 14px;
}

.highlight{
  color:var(--green);
}

.hero-sub{
  color:var(--muted);
  font-size:1.1rem;
  max-width:680px;
}

.hero-actions{
  display:flex;
  gap:14px;
  margin-top:28px;
  flex-wrap:wrap;
  justify-content:center;
}

.hero-scroll{
  margin-top:40px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  color:var(--muted);
}

.scroll-line{
  width:1px;
  height:54px;
  background:linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
}

.about-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:42px;
  align-items:center;
}

.about-text p{
  color:var(--muted);
  line-height:1.7;
  margin-top:16px;
}

.about-pillars{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:26px;
}

.pillar{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:16px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
}

.pillar-icon{
  font-size:1.1rem;
}

.about-visual{
  position:relative;
}

.glow-orb{
  position:absolute;
  border-radius:999px;
  filter:blur(60px);
  opacity:.3;
  pointer-events:none;
}

.orb-cyan{
  background:var(--cyan);
}

.orb-green{
  background:var(--green);
  width:260px;
  height:260px;
  right:0;
  bottom:0;
}

.about-visual .orb-cyan{
  width:240px;
  height:240px;
  left:-40px;
  top:-30px;
}

.tech-mockup{
  position:relative;
  z-index:2;
  padding:18px;
  background:rgba(8,17,30,.88);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
}

.mockup-bar{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:20px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
}

.dot-r{ background:#ff5f57; }
.dot-y{ background:#ffbd2f; }
.dot-g{ background:#28c840; }

.mockup-url{
  margin-left:10px;
  color:var(--muted);
  font-size:.85rem;
}

.mockup-chart{
  height:220px;
  display:flex;
  align-items:flex-end;
  gap:10px;
}

.bar-col{
  flex:1;
  border-radius:12px 12px 6px 6px;
  background:linear-gradient(to top, var(--cyan), var(--green));
  opacity:.95;
}

.mockup-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:20px;
}

.stat-card{
  padding:16px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:18px;
}

.stat-val{
  font-weight:800;
  font-size:1.15rem;
  color:var(--green);
}

.stat-lbl{
  margin-top:4px;
  color:var(--muted);
  font-size:.9rem;
}

.section-header{
  text-align:center;
  max-width:760px;
  margin:0 auto 46px;
}

.section-header p:last-child{
  color:var(--muted);
  margin-top:12px;
  line-height:1.7;
}

h2{
  font-size:clamp(2rem, 4vw, 3.6rem);
  margin-top:16px;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.service-card{
  padding:26px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:24px;
  transition:.35s;
}

.service-card:hover{
  transform:translateY(-6px);
  border-color:rgba(0,212,255,.28);
}

.service-icon{
  font-size:2rem;
  margin-bottom:18px;
}

.service-card h3{
  font-family:'Syne',sans-serif;
  margin-bottom:12px;
}

.service-card p{
  color:var(--muted);
  line-height:1.7;
  margin-bottom:18px;
}

.carousel-wrapper{
  position:relative;
}

.carousel-track{
  display:flex;
  transition:transform .55s ease;
}

.carousel-slide{
  min-width:100%;
  position:relative;
}

.slide-inner{
  position:relative;
  height:520px;
  border-radius:26px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  box-shadow:var(--shadow);
}

.slide-visual{
  width:100%;
  height:100%;
}

.portfolio-img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .8s ease, filter .6s ease;
}

.carousel-slide:hover .portfolio-img{
  transform:scale(1.06);
  filter:brightness(1.06);
}

.slide-overlay{
  position:absolute;
  inset:0;
  border-radius:26px;
  background:linear-gradient(to top, rgba(4,8,15,.92), rgba(4,8,15,.18), transparent 55%);
  pointer-events:none;
}

.slide-info{
  position:absolute;
  left:32px;
  bottom:32px;
  z-index:2;
  max-width:520px;
}

.slide-title{
  font-family:'Syne',sans-serif;
  font-size:2rem;
  margin-top:14px;
}

.slide-sub{
  margin-top:8px;
  color:rgba(255,255,255,.78);
  line-height:1.6;
}

.carousel-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:22px;
}

.carousel-dots{
  display:flex;
  gap:10px;
}

.cdot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  cursor:pointer;
  transition:.3s;
}

.cdot.active{
  width:34px;
  background:linear-gradient(135deg,var(--green),var(--cyan));
}

.carousel-btns{
  display:flex;
  gap:10px;
}

.cbtn{
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--white);
  cursor:pointer;
  font-size:1rem;
  transition:.3s;
}

.cbtn:hover{
  background:rgba(255,255,255,.09);
  transform:translateY(-2px);
}

#cta .cta-inner{
  padding:56px 28px;
  text-align:center;
  background:
    radial-gradient(circle at top, rgba(0,255,157,.10), transparent 35%),
    rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
}

#cta p{
  color:var(--muted);
  max-width:760px;
  margin:18px auto 26px;
  line-height:1.7;
}

.center{
  justify-content:center;
}

footer{
  width:min(1200px, calc(100% - 40px));
  margin:0 auto 40px;
  padding:28px 0 10px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.footer-copy{
  color:var(--muted);
}

.footer-links{
  list-style:none;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.footer-links a{
  color:var(--muted);
}

.footer-links a:hover{
  color:var(--white);
}

.reveal{
  opacity:1;
  transform:none;
}

@media (max-width: 1100px){
  .services-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .about-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 820px){
  nav{
    flex-wrap:wrap;
    justify-content:center;
  }

  .nav-links{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
  }

  .slide-inner{
    height:420px;
  }

  .slide-title{
    font-size:1.5rem;
  }
}

@media (max-width: 640px){
  section{
    padding:90px 0;
  }

  .services-grid,
  .about-pillars,
  .mockup-stats{
    grid-template-columns:1fr;
  }

  .hero-actions{
    flex-direction:column;
    width:100%;
  }

  .hero-actions a{
    width:100%;
    text-align:center;
  }

  .carousel-nav{
    flex-direction:column;
  }

  .slide-info{
    left:20px;
    right:20px;
    bottom:20px;
  }

  .slide-inner{
    height:340px;
  }
}