:root {
  /* Core palette – dark, premium, high contrast */
  --clr-bg: #080b12;
  --clr-surface: #0d111b;
  --clr-surface-dark: #0b0f18;
  --clr-primary: #9ca3ff;
  --clr-primary-light: #e0e4ff;
  --clr-accent: #eef0ff;
  --clr-text: #edf2f7;
  --clr-muted: #8d96a7;
  --clr-border: #242b3a;
  --clr-divider: #202634;
  --clr-cta-bg: #4f5bff;
  --clr-cta-hover: #6a78ff;
  --nav-height: 3.5rem;
}

/* Global reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 100%; /* 16px base */
}
body {
  margin: 0;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-text);
}
h1 {
  font-size: clamp(1.75rem, 5vw + 1rem, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 4vw + 0.8rem, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 3.5vw + 0.6rem, 2rem);
}
p {
  margin: 0 0 1em;
}

/* Links */
a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: var(--clr-primary-light);
}

/* Navigation – compact, mobile‑first */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 5%;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-divider);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-text);
}
.logo span {
  color: var(--clr-primary);
}
nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
nav a {
  color: var(--clr-muted);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover,
nav a:focus {
  background: var(--clr-surface);
  color: var(--clr-primary);
}

/* Hero section – balanced whitespace */
.hero {
  padding: 3rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}
.hero h1 {
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1rem;
  color: var(--clr-muted);
  max-width: 700px;
}

/* CTA button */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--clr-cta-bg);
  color: var(--clr-bg);
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover,
.btn:focus {
  background: var(--clr-cta-hover);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 2rem 5%;
}

/* Grid layout for cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

/* Service cards – compact */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 0.75rem;
  transition: box-shadow 0.2s, transform 0.1s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0 0 0.4rem;
}
.card p {
  margin: 0;
  color: var(--clr-muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  padding: 2rem 5%;
  border-top: 1px solid var(--clr-divider);
  color: var(--clr-muted);
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Form elements */
input,
textarea {
  width: 100%;
  background: var(--clr-surface-dark);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.6rem;
  margin: 0.4rem 0;
  font-family: inherit;
  font-size: 1rem;
}
input::placeholder,
textarea::placeholder {
  color: var(--clr-muted);
}
button,
input[type="submit"] {
  background: var(--clr-cta-bg);
  color: var(--clr-bg);
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s, transform 0.1s;
}
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--clr-cta-hover);
  transform: translateY(-1px);
}

/* Accessibility – focus outlines */
:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 5%;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 6vw + 0.5rem, 2.2rem);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 0.6rem;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 700px) {
  nav {
    padding: 0.5rem 5%;
  }
  section {
    padding: 1.5rem 5%;
  }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .hero {
    padding: 4rem 5%;
  }
}
@media (min-width: 1025px) {
  .hero {
    padding: 5rem 7%;
  }
}
/* Webster protected mobile navigation safety */
nav{
    position:relative !important;
    top:auto !important;
    z-index:100 !important;
    background:#080b12 !important;
}

@media(max-width:700px){
    nav{
        display:block !important;
        padding:18px 5% 14px !important;
    }

    nav .logo{
        display:block !important;
        margin-bottom:10px !important;
    }

    nav > div:last-child{
        display:flex !important;
        flex-wrap:wrap !important;
        gap:8px 18px !important;
    }

    nav a{
        margin:0 !important;
        white-space:nowrap !important;
    }
}
