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

:root {
  --blue:       #0D6EFD;
  --blue-light: #3d8bfe;
  --blue-glow:  rgba(13,110,253,0.18);
  --blue-dim:   rgba(13,110,253,0.10);
  --navy:       #0A0F1C;
  --navy-2:     #0D1321;
  --navy-3:     #111827;
  --navy-card:  #141c2e;
  --gray:       #6B7280;
  --light:      #E5E7EB;
  --white:      #ffffff;
  --border:     rgba(255,255,255,0.07);
  --border-b:   rgba(13,110,253,0.25);
  --font:       'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: url('../city.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--light);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(13,110,253,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,110,253,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}
* { position: relative; z-index: 1; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(10,15,28,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-apex { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.18em; color: var(--white); text-transform: uppercase; }
.logo-sub  { font-size: 0.48rem; font-weight: 600; letter-spacing: 0.22em; color: var(--blue); text-transform: uppercase; margin-top: 1px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--gray); text-decoration: none; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }

.nav-cta { background: var(--blue); color: var(--white); padding: 0.55rem 1.4rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: background 0.2s, transform 0.15s; }
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }

/* SITE BANNER */
.apex-banner {
  position: relative;
  width: 100%;
  min-height: 300px;
  margin-top: 72px;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, rgba(13,26,46,0.88) 0%, rgba(8,14,26,0.85) 60%, rgba(5,10,20,0.82) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  overflow: hidden;
  font-family: var(--font);
  border-bottom: 1px solid var(--border);
}
.apex-banner::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,10 185,175 155,175 100,55 45,175 15,175' fill='none' stroke='%23162640' stroke-width='8'/%3E%3Cpath d='M30,140 Q100,95 170,140' stroke='%23162640' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C%2Fsvg%3E") no-repeat center / contain;
  opacity: 0.55;
  pointer-events: none;
}
.banner-logo-icon {
  width: 96px; height: 96px;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 0 22px rgba(13,110,253,0.5));
}
.banner-apex-letter {
  font-size: 3.8rem; font-weight: 900;
  letter-spacing: 0.24em; line-height: 1;
  background: linear-gradient(180deg, #d0dff0 0%, #ffffff 40%, #8aabcf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.7));
  margin-bottom: 0.3rem;
}
.banner-apex-sub {
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: #1a7fff; margin-bottom: 1.1rem;
}
.banner-apex-tagline {
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #7a8fa8;
}

/* HERO */
.hero {
  min-height: calc(100vh - 72px - 300px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 5%; overflow: hidden;
  background: transparent !important;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(13,110,253,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 80%, rgba(13,110,253,0.06) 0%, transparent 60%);
  z-index: 0;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-dim); border: 1px solid var(--border-b);
  border-radius: 100px; padding: 0.35rem 1rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 1.75rem;
}

.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 2s ease-in-out infinite; }

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }

.hero-h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.02em; color: var(--white); margin-bottom: 0.25rem;
}
.hero-h1 .blue       { color: var(--blue); }
.hero-h1 .blue-light { color: var(--blue-light); }

.hero-tagline { font-size: 0.9rem; font-weight: 400; color: var(--gray); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.5rem; }

.hero-custom-sub {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.hero-custom-sub strong {
  font-weight: 700;
  font-style: normal;
  color: var(--white);
}

.hero-desc { font-size: 1rem; font-weight: 300; color: #9eaabf; max-width: 540px; line-height: 1.85; margin-bottom: 2.5rem; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.btn-blue { background: var(--blue); color: var(--white); padding: 0.85rem 2rem; border-radius: 5px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; display: inline-block; }
.btn-blue:hover { background: var(--blue-light); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--light); padding: 0.85rem 2rem; border-radius: 5px; border: 1px solid rgba(255,255,255,0.18); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color 0.2s, color 0.2s; display: inline-block; }
.btn-outline:hover { border-color: var(--blue); color: var(--white); }

.hero-feats { display: flex; gap: 2.5rem; flex-wrap: wrap; }

.hero-feat { display: flex; align-items: center; gap: 10px; }

.feat-icon { width: 40px; height: 40px; border: 1px solid var(--border-b); border-radius: 8px; background: var(--blue-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feat-icon svg { width: 18px; height: 18px; stroke: var(--blue-light); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feat-text strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.feat-text span   { font-size: 0.7rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; }

/* MARQUEE */
.marquee-wrap { background: rgba(17,24,39,0.82); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 0.85rem 0; }
.marquee-track { display: flex; gap: 2.5rem; animation: slide 25s linear infinite; white-space: nowrap; }
.marquee-item { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); flex-shrink: 0; }
.m-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
@keyframes slide { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* SECTIONS */
section { padding: 6rem 5%; }

.sec-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.sec-eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--blue); border-radius: 2px; }

.sec-title { font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.75rem; max-width: 680px; }
.sec-title .blue { color: var(--blue); }

.sec-desc { font-size: 0.95rem; font-weight: 300; color: #8898aa; line-height: 1.9; max-width: 540px; margin-bottom: 3.5rem; }

/* SERVICES */
#services { background: rgba(13,19,33,0.78); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }

.svc-card { background: rgba(20,28,46,0.72); border: 1px solid var(--border); border-radius: 10px; padding: 2rem 1.75rem; transition: border-color 0.25s, transform 0.2s; cursor: default; }
.svc-card:hover { border-color: var(--border-b); transform: translateY(-3px); }

.svc-icon { width: 50px; height: 50px; border-radius: 10px; background: var(--blue-dim); border: 1px solid var(--border-b); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.svc-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.svc-name { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.svc-desc { font-size: 0.855rem; font-weight: 300; color: #8898aa; line-height: 1.8; }

/* STATS */
#stats { background: rgba(13,110,253,0.82); padding: 4.5rem 5%; }
.stats-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-num   { font-size: 3rem; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.72); }

/* PROCESS */
#process { background: rgba(10,15,28,0.78); }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 28px; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-b), transparent); }

.proc-step { padding: 0 1.5rem 2rem; text-align: center; }
.proc-num-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.proc-num { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-card); border: 2px solid var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: var(--blue); position: relative; z-index: 2; }
.proc-title { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.proc-desc  { font-size: 0.82rem; font-weight: 300; color: #8898aa; line-height: 1.8; }

/* WHY */
#why { background: rgba(13,19,33,0.78); }

.why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-items  { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 0.5rem; }
.why-item   { display: flex; gap: 1rem; align-items: flex-start; }

.why-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; background: var(--blue-dim); border: 1px solid var(--border-b); display: flex; align-items: center; justify-content: center; }
.why-icon svg { width: 17px; height: 17px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-body strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem; }
.why-body p      { font-size: 0.855rem; font-weight: 300; color: #8898aa; line-height: 1.75; }

.tech-panel { background: rgba(20,28,46,0.72); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; position: relative; overflow: hidden; }
.tech-panel::after { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(13,110,253,0.1) 0%, transparent 70%); pointer-events: none; }

.tech-panel-title { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-tag  { background: var(--blue-dim); border: 1px solid var(--border-b); border-radius: 4px; padding: 0.3rem 0.75rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--blue-light); }

/* CONTACT */
#contact { background: rgba(10,15,28,0.78); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.c-info-item  { display: flex; gap: 1rem; align-items: center; }
.c-info-icon  { width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; background: var(--blue-dim); border: 1px solid var(--border-b); display: flex; align-items: center; justify-content: center; }
.c-info-icon svg { width: 17px; height: 17px; stroke: var(--blue); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.c-info-text strong { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 2px; }
.c-info-text span   { font-size: 0.92rem; color: var(--light); }

.contact-form { background: rgba(20,28,46,0.72); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-form h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.15rem; }
.contact-form p  { font-size: 0.82rem; color: var(--gray); margin-bottom: 0.25rem; line-height: 1.6; }

.f-row { display: flex; gap: 1rem; }
.f-row .f-group { flex: 1; }
.f-group { display: flex; flex-direction: column; gap: 0.35rem; }
.f-group label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.f-group input, .f-group textarea, .f-group select { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; color: var(--light); padding: 0.7rem 1rem; font-family: var(--font); font-size: 0.9rem; font-weight: 400; outline: none; transition: border-color 0.2s; width: 100%; }
.f-group input:focus, .f-group textarea:focus, .f-group select:focus { border-color: var(--blue); }
.f-group textarea { resize: vertical; min-height: 110px; }
.f-group select option { background: var(--navy-3); }

.form-submit { display: flex; align-items: center; gap: 1rem; margin-top: 0.25rem; }
#form-success { display: none; font-size: 0.85rem; color: #4ade80; }
#form-error   { display: none; font-size: 0.85rem; color: #f87171; }

/* FOOTER */
footer { background: rgba(13,19,33,0.88); border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 5%; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-nav  { display: flex; gap: 2rem; list-style: none; }
.footer-nav a { font-size: 0.8rem; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-tagline { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }
.footer-copy    { font-size: 0.75rem; color: var(--gray); }

/* ANIMATIONS */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.hero-badge   { animation: fadeUp 0.5s ease 0.05s both; }
.hero-h1      { animation: fadeUp 0.6s ease 0.15s both; }
.hero-tagline { animation: fadeUp 0.6s ease 0.25s both; }
.hero-desc    { animation: fadeUp 0.6s ease 0.32s both; }
.hero-btns    { animation: fadeUp 0.6s ease 0.40s both; }
.hero-feats   { animation: fadeUp 0.6s ease 0.50s both; }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,15,28,0.98);
  backdrop-filter: blur(20px);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .mobile-cta {
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 2.5rem;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.mobile-menu .mobile-cta:hover { background: var(--blue-light); color: var(--white); }

/* RESPONSIVE */
@media (max-width: 860px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  section { padding: 4rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .why-layout, .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .f-row { flex-direction: column; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-feats { gap: 1.5rem; }
}
