/* ===============
   Premium Dark Theme (Charcoal + Electric Cyan)
   Mobile-first, accessible, fast.
   =============== */

/* Reset & Variables */
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
:root{
  --bg: #0b1220;          /* charcoal */
  --panel: #0f1628;       /* slightly lighter */
  --card: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.08);
  --text: #e6edf6;        /* light */
  --muted: #a3b1c6;       /* muted */
  --accent: #00e5ff;      /* electric cyan */
  --accent2: #60a5fa;     /* blue for gradients */
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
}

body.theme--dark{
  background: radial-gradient(1000px 500px at 20% -10%, rgba(0,229,255,0.08), transparent 50%),
              radial-gradient(900px 500px at 80% 110%, rgba(96,165,250,0.08), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
}

/* Layout */
.container{ max-width: 1140px; margin:0 auto; padding: 0 20px; }
.section{ padding: 96px 0; position:relative; }
.section--panel{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)); }
.center{ text-align:center; }
.pad--sm{ padding:16px 0; }
.border--top{ border-top:1px solid var(--border); }

.grid{ display:grid; gap:24px; }
.grid--2{ grid-template-columns:1fr; }
.grid--3{ grid-template-columns:1fr; }
.grid--4{ grid-template-columns:1fr; }
@media (min-width: 900px){
  .grid--2{ grid-template-columns:repeat(2,1fr); }
  .grid--3{ grid-template-columns:repeat(3,1fr); }
  .grid--4{ grid-template-columns:repeat(4,1fr); }
}

/* Nav */
.nav{
  position:sticky; top:0; z-index:999;
  background: rgba(11,18,32,0.7);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav__inner{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.brand{ display:inline-flex; align-items:center; gap:12px; color:inherit; text-decoration:none; }
.brand__logo{ width:48px; height:48px; border-radius:12px; background:#0b1220; border:1px solid var(--border); box-shadow: var(--shadow); }
.brand__name{ font-weight:700; letter-spacing:-0.01em; }
.nav__links{ display:none; gap:18px; align-items:center; }
.nav__links a{ text-decoration:none; color: var(--text); font-weight:500; opacity:.9; }
.nav__links a:hover{ color: var(--accent); }

.nav__toggle{ display:inline-flex; flex-direction:column; gap:4px; border:0; background:transparent; cursor:pointer; }
.nav__toggle span{ width:24px; height:2px; background: #cbd5e1; display:block; border-radius:2px; }
@media (min-width:900px){ .nav__links{ display:flex; } .nav__toggle{ display:none; } }

/* Hero */
.hero{ padding-top: 120px; }
.glow--orb{ position:absolute; right: -160px; top: -120px; width: 540px; height: 540px;
  filter: blur(80px);
  background: radial-gradient(closest-side, rgba(0,229,255,.28), rgba(0,229,255,.12), transparent 70%);
  pointer-events:none;
}
.hero__title{ font-size: 42px; font-weight: 900; line-height:1.05; margin:0; }
.accent{ color: var(--accent); }
@media (min-width:900px){ .hero__title{ font-size: 62px; } }
.hero__cta{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:18px; }
.badges{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top: 18px; }
@media (min-width:600px){ .badges{ grid-template-columns: repeat(4, 1fr); } }
.pill{ padding:10px 12px; border:1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.02); font-size:14px; }

/* Cards */
.card{ background: var(--card); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card__title{ font-weight:800; letter-spacing: -0.01em; }
.featurelist{ list-style:none; padding:0; margin:12px 0 0; display:grid; gap:10px; }
.featurelist li{ display:flex; gap:10px; align-items:flex-start; }
.featurelist span{ width:22px; display:inline-block; }

/* Services tiles */
.svc{ text-decoration:none; color: inherit; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.svc:hover{ transform: translateY(-3px); border-color: rgba(0,229,255,0.45); background: linear-gradient(180deg, rgba(0,229,255,0.04), rgba(255,255,255,0.02)); }
.svc__icon{ font-size: 26px; }
.svc__title{ font-weight: 800; margin-top: 6px; }
.svc__cta{ display:inline-block; margin-top: 10px; color: var(--accent); font-weight:600; }

/* UI */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 16px; border-radius: 12px; border:1px solid var(--border); text-decoration:none; cursor:pointer; transition:.15s ease; font-weight:700; letter-spacing:.01em; }
.btn--primary{ background: var(--accent); color:#001219; border-color: transparent; }
.btn--primary:hover{ filter: brightness(1.03); transform: translateY(-1px); }
.btn--ghost{ background: transparent; color: var(--text); }
.btn--small{ padding:10px 12px; font-size: 14px; }

/* Typography */
.section__title{ font-size: 28px; font-weight: 900; letter-spacing: -0.01em; margin:0 0 8px; }
@media (min-width:900px){ .section__title{ font-size: 34px; } }
.muted{ color: var(--muted); }
.small{ font-size: 13px; }
.list{ margin:12px 0 0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 8px 0; }

/* People */
.person{ text-align:center; padding:24px; }
.avatar{ width:64px; height:64px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color:#001219; font-weight:900; display:flex; align-items:center; justify-content:center; font-size:20px; margin: 0 auto 8px; }
.person__name{ font-weight:800; }

/* Forms */
.form .field{ display:flex; flex-direction:column; gap:6px; }
.form label{ font-weight:600; }
.form input, .form textarea{
  width:100%; padding:12px 14px; border-radius: 12px; border:1px solid var(--border); outline:none; font: inherit; background: #0b1322; color: var(--text);
}
.form input:focus, .form textarea:focus{ border-color: rgba(0,229,255,0.5); box-shadow: 0 0 0 3px rgba(0,229,255,0.18); }
.form__actions{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top: 8px; }
.success{ color:#10b981; background: rgba(16,185,129,0.1); padding: 12px 14px; border-radius: 12px; border:1px solid rgba(16,185,129,0.25); margin-top: 12px; }

/* Footer */
.footer{ background: rgba(255,255,255,0.02); border-top:1px solid var(--border); }
.foot__title{ font-weight:800; }
.linklist{ list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.linklist a{ color: var(--text); text-decoration:none; opacity:.9; }
.linklist a:hover{ color: var(--accent); }

/* Reveal */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.reveal.visible{ opacity:1; transform: translateY(0); }

/* Accessibility */
a:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Mobile menu sheet */
@media (max-width: 899px){
  .nav__links{
    position: fixed;
    top: 76px; right: 16px; left: 16px;
    display: none;                 /* toggled by JS */
    flex-direction: column; gap: 10px;
    background: #0b1322; border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow); padding: 12px; z-index: 60;
  }
  .nav__links a{ padding: 12px 10px; min-height: 44px; }
  .btn--small{ width: 100%; }      /* larger tap target */
  .section{ padding: 72px 0; }
  .container{ padding: 0 16px; }
  .hero__title{ font-size: 36px; }
}

body.no-scroll{ overflow: hidden; }




/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#preloader img.preloader-logo {
  width: 120px; /* adjust size */
  height: auto;
  animation: pulse 1.5s infinite;
}

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