:root {
  --navy: #0b1f33;
  --navy-2: #122b45;
  --gold: #c6a15b;
  --text: #1a2430;
  --muted: #5f6b76;
  --white: #ffffff;
  --offwhite: #f6f7f9;
  --border: #dfe4ea;
  --shadow: 0 12px 30px rgba(11, 31, 51, 0.09);
  --radius: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(92%, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 31, 51, 0.96);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}
 
.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(198, 161, 91, 0.15), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  padding: 92px 0 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.about-grid h2,
.contact-grid h2 {
  margin-top: 0;
  line-height: 1.08;
}

.hero h1 {
font-size: clamp(3rem, 6vw, 4.6rem);
  margin-bottom: 1rem;
  max-width: 780px;
}

.hero-text {
  color: #d9e1e8;
  max-width: 760px;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.metric-card,
.insight-card {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  padding: 1.2rem;
  border-radius: var(--radius);
}

.metric-card span {
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.mini-chart {
  min-height: 220px;
  display: flex;
  gap: 0.65rem;
  align-items: end;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}

.mini-chart span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(to top, var(--gold), #f0dca7);
}

.section {
  padding: 86px 0;
}

.section-alt {
  background: var(--offwhite);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.about-grid h2,
.contact-grid h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.card-grid,
.service-grid,
.tech-grid,
.portfolio-grid {
  display: grid;
  gap: 1.2rem;
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.service,
.tech-card,
.project-card,
.about-panel,
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.service,
.tech-card,
.project-card {
  padding: 1.4rem;
}

.card h3,
.service h3,
.tech-card h3,
.project-card h3 {
  margin-top: 0;
}

.service-grid,
.tech-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-panel,
.contact-form {
  padding: 1.6rem;
}

.highlight {
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  font-weight: 600;
}

.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill-wrap span {
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.portfolio-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-type {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tools {
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.contact-meta {
  margin-top: 1.5rem;
}

.contact-meta a {
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
}

label span {
  font-weight: 400;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(198, 161, 91, 0.35);
  border-color: var(--gold);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  color: #c6d0d9;
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,0.62);
  z-index: 2000;
}

.modal.open {
  display: grid;
}

.modal-panel {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: 0.55s ease;
}

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

@media (max-width: 980px) {
  .card-grid.four,
  .service-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    display: none;
    flex-direction: column;
    padding: 1rem 4%;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav.open {
    display: flex;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .card-grid.four,
  .service-grid,
  .tech-grid,
  .portfolio-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .footer-grid {
    flex-direction: column;
  }
}
