/* ============================================
   InfraNet Technology — Global Stylesheet
   Modern · Interactive · Mobile-App Ready
   ============================================ */

:root {
  --bg: #080d1a;
  --bg-elevated: #0e1528;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.4);
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --success: #34d399;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --nav-h: 70px;
  --bottom-nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
}

body.menu-open { overflow: hidden; }

::selection {
  background: rgba(6, 182, 212, 0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--indigo));
  border-radius: 4px;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Layout ---- */
.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section { padding: 100px 0; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 14px;
}

.label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 1px;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(120deg, #22d3ee 0%, #818cf8 45%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  font-family: inherit;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn:hover::after { transform: translateX(120%); }

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

/* ---- Top Navigation ---- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.topnav.scrolled {
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.topnav-inner {
  width: min(1140px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.55);
}

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

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-links .btn {
  margin-left: 10px;
  padding: 10px 20px;
  font-size: 0.82rem;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.25s, border-color 0.25s;
}

.menu-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-glow);
}

.menu-btn svg { width: 22px; height: 22px; }

/* ---- Mobile Drawer ---- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(310px, 84%);
  height: 100%;
  background: #0c1222;
  z-index: 1200;
  padding: 28px 22px;
  transition: right 0.4s var(--ease);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
}

.drawer.open { right: 0; }

.drawer-close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  font-size: 1.1rem;
  transition: background 0.25s;
}

.drawer-close:hover { background: var(--surface-hover); }

.drawer a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 15px 14px;
  border-radius: 12px;
  transition: background 0.25s, color 0.25s;
}

.drawer a:hover,
.drawer a.active {
  background: var(--surface-hover);
  color: var(--cyan-bright);
}

/* ---- Bottom Nav (Mobile App Style) ---- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(8, 13, 26, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--border);
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-3);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 14px;
  transition: color 0.25s, transform 0.25s var(--ease);
  min-width: 58px;
}

.bnav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  transition: transform 0.25s var(--ease);
}

.bnav-item.active,
.bnav-item:hover {
  color: var(--cyan-bright);
}

.bnav-item.active {
  transform: translateY(-3px);
}

.bnav-item.active svg {
  transform: scale(1.1);
}

/* ---- Hero ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 0 90px;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% -15%, rgba(6, 182, 212, 0.2), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 35%, rgba(99, 102, 241, 0.14), transparent),
    radial-gradient(ellipse 40% 35% at 12% 65%, rgba(139, 92, 246, 0.1), transparent);
}

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
  font-size: 0.8rem;
  font-weight: 500;
  color: #67e8f9;
  margin-bottom: 24px;
  animation: rise 0.8s var(--ease) both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: blink 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  max-width: 740px;
  margin-bottom: 20px;
  animation: rise 0.8s 0.1s var(--ease) both;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 530px;
  margin-bottom: 34px;
  animation: rise 0.8s 0.18s var(--ease) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: rise 0.8s 0.26s var(--ease) both;
}

.hero-metrics {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
  animation: rise 0.8s 0.34s var(--ease) both;
}

.metric strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan-bright);
  letter-spacing: -0.02em;
}

.metric span {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 500;
}

/* Floating cards */
.float-card {
  position: absolute;
  z-index: 1;
  padding: 14px 18px;
  background: rgba(14, 21, 40, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 500;
  animation: floatY 7s ease-in-out infinite;
  display: none;
}

.float-card strong { color: var(--cyan-bright); }

@media (min-width: 1100px) {
  .float-card { display: block; }
  .fc-1 { top: 22%; right: 7%; animation-delay: 0s; }
  .fc-2 { bottom: 22%; right: 13%; animation-delay: -2.8s; }
}

/* ---- Feature Strip ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -50px;
  position: relative;
  z-index: 5;
}

.feat-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  cursor: default;
}

.feat-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feat-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feat-card p {
  font-size: 0.88rem;
  color: var(--text-2);
}

/* ---- Service Cards ---- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.svc-card {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--indigo), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.svc-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-glow);
  background: var(--surface-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.svc-card:hover::before { transform: scaleX(1); }

.svc-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s var(--ease);
}

.svc-card:hover .icon { transform: scale(1.1) rotate(-5deg); }

.svc-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.svc-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 16px;
}

.svc-card .link {
  font-size: 0.85rem;
  color: var(--cyan-bright);
  font-weight: 600;
  transition: letter-spacing 0.3s;
}

.svc-card:hover .link { letter-spacing: 0.03em; }

/* ---- CTA Band ---- */
.cta-band {
  border-radius: var(--radius-xl);
  padding: 60px 44px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.1)),
    var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 14px;
  position: relative;
}

.cta-band p {
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 30px;
  position: relative;
}

/* ---- Footer ---- */
footer {
  padding: 60px 0 110px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-2);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 270px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 5px 0;
  transition: color 0.25s, padding-left 0.25s;
}

.footer-col a:hover {
  color: var(--cyan-bright);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ---- Animations ---- */
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(1.25); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .bottom-nav { display: flex; }
  .features { grid-template-columns: 1fr; margin-top: -30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .section { padding: 72px 0; }
  .cta-band { padding: 44px 28px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-metrics { gap: 28px; }
  .hero h1 { font-size: 2.2rem; }
  .btn { padding: 12px 22px; font-size: 0.88rem; }
  .container { width: 92%; }
}
