*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050711;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- layout utilities --- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }
.gap-0 { gap: 0; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.shrink-0 { flex-shrink: 0; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-4 { row-gap: 1rem; }

/* --- sizing --- */
.w-full { width: 100%; }
.max-w-7xl { max-width: 1280px; }
.max-w-5xl { max-width: 1024px; }
.max-w-4xl { max-width: 896px; }
.max-w-3xl { max-width: 768px; }
.max-w-2xl { max-width: 672px; }
.max-w-6xl { max-width: 1152px; }
.max-w-\[330px\] { max-width: 330px; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-11 { height: 2.75rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-11 { width: 2.75rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }

/* --- spacing --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }

/* --- typography --- */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.leading-tight { line-height: 1.25; }
.leading-6 { line-height: 1.5rem; }
.leading-7 { line-height: 1.75rem; }
.leading-8 { line-height: 2rem; }
.leading-\[0\.95\] { line-height: 0.95; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }

/* --- colors --- */
.text-white { color: #fff; }
.text-slate-950 { color: #020617; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-300 { color: #93c5fd; }
.text-blue-100 { color: #dbeafe; }
.text-emerald-500 { color: #10b981; }
.text-emerald-400 { color: #34d399; }
.text-emerald-600 { color: #059669; }
.text-emerald-300 { color: #6ee7b7; }
.text-red-500 { color: #ef4444; }
.text-orange-500 { color: #f97316; }
.text-cyan-400 { color: #22d3ee; }
.text-cyan-300 { color: #67e8f9; }

/* --- backgrounds --- */
.bg-white { background-color: #fff; }
.bg-white\/5 { background-color: rgba(255,255,255,0.05); }
.bg-white\/\[0\.06\] { background-color: rgba(255,255,255,0.06); }
.bg-white\/\[0\.05\] { background-color: rgba(255,255,255,0.05); }
.bg-white\/\[0\.08\] { background-color: rgba(255,255,255,0.08); }
.bg-blue-500\/15 { background-color: rgba(59,130,246,0.15); }
.bg-blue-400\/10 { background-color: rgba(96,165,250,0.1); }
.bg-blue-50 { background-color: #eff6ff; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-950 { background-color: #020617; }
.bg-slate-950\/40 { background-color: rgba(2,6,23,0.4); }
.bg-slate-950\/70 { background-color: rgba(2,6,23,0.7); }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-400\/10 { background-color: rgba(52,211,153,0.1); }
.bg-cyan-400\/15 { background-color: rgba(34,211,238,0.15); }

/* --- border & radius --- */
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-\[2rem\] { border-radius: 2rem; }
.rounded-\[2\.5rem\] { border-radius: 2.5rem; }
.rounded-\[3rem\] { border-radius: 3rem; }
.rounded-\[48px\] { border-radius: 48px; }
.rounded-\[38px\] { border-radius: 38px; }
.rounded-\[28px\] { border-radius: 28px; }
.border { border: 1px solid; }
.border-t { border-top: 1px solid; }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-blue-400\/30 { border-color: rgba(96,165,250,0.3); }
.border-blue-300\/20 { border-color: rgba(147,197,253,0.2); }
.border-emerald-400\/30 { border-color: rgba(52,211,153,0.3); }

/* --- effects --- */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-blue-500\/10 { box-shadow: 0 25px 50px -12px rgba(59,130,246,0.1); }
.shadow-blue-500\/20 { box-shadow: 0 25px 50px -12px rgba(59,130,246,0.2); }
.shadow-blue-500\/25 { box-shadow: 0 25px 50px -12px rgba(59,130,246,0.25); }
.shadow-blue-500\/30 { box-shadow: 0 10px 15px -3px rgba(59,130,246,0.3); }
.shadow-black\/20 { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.backdrop-blur-2xl { backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-right-10 { right: -2.5rem; }
.-left-8 { left: -2rem; }
.top-20 { top: 5rem; }
.bottom-24 { bottom: 6rem; }
.z-10 { z-index: 10; }
.place-items-center { place-items: center; }

/* --- transitions --- */
.transition { transition: all 0.3s ease; }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.hover\:border-blue-400\/40:hover { border-color: rgba(96,165,250,0.4); }
.hover\:bg-white\/\[0\.09\]:hover { background-color: rgba(255,255,255,0.09); }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.group:hover .group-hover\:bg-blue-500 { background-color: #3b82f6; }

/* --- blur glows --- */
.blur-3xl { filter: blur(64px); }

/* --- hero bg --- */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(0,132,255,0.45), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(0,255,194,0.22), transparent 28%),
    linear-gradient(180deg,#050711 0%,#07111f 55%,#050711 100%);
}
.grid-overlay {
  position: absolute; inset: 0; opacity: 0.3;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* --- specific components --- */
.glow-card {
  border-radius: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  background-color: rgba(255,255,255,0.06);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.icon-bubble {
  display: grid;
  height: 3.5rem; width: 3.5rem;
  place-items: center;
  border-radius: 1rem;
  background-color: rgba(59,130,246,0.15);
  font-size: 1.5rem;
}
.icon-bubble-lg {
  display: inline-grid;
  height: 4rem; width: 4rem;
  place-items: center;
  border-radius: 1.5rem;
  font-size: 2rem;
}

/* --- responsive grid layouts --- */
.hero-grid { grid-template-columns: 1fr; }
.dash-grid { grid-template-columns: 1fr; }
.arch-grid { grid-template-columns: 1fr; }
.sec-grid { grid-template-columns: 1fr; }
.contact-grid { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:inline-block { display: inline-block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:p-16 { padding: 4rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:gap-16 { gap: 4rem; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .dash-grid { grid-template-columns: 0.95fr 1.05fr; }
  .arch-grid { grid-template-columns: 0.9fr 1.1fr; }
  .sec-grid { grid-template-columns: 1.1fr 0.9fr; }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
  .lg\:flex { display: flex; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:px-16 { padding-left: 4rem; padding-right: 4rem; }
  .lg\:border-l { border-left: 1px solid; }
  .lg\:border-t-0 { border-top: none; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:flex-row { flex-direction: row; }
}

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050711; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

/* mobile nav toggle */
.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5,7,17,0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; z-index: 101; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
@media (min-width: 768px) { .hamburger { display: none; } }

/* --- popup modal --- */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.popup-overlay.open { opacity: 1; pointer-events: all; }

.popup {
  background: #fff;
  color: #020617;
  border-radius: 2rem;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  max-height: 90vh;
  overflow-y: auto;
}
.popup-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none;
  font-size: 2rem; line-height: 1;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
  padding: 0.25rem;
}
.popup-close:hover { color: #020617; }
.popup-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.popup-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: #334155;
}
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #f8fafc;
}
.form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.popup-submit {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(to right, #3b82f6, #22d3ee);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}
.popup-submit:hover { opacity: 0.9; }
