:root {
  --navy: #1a2a42;
  --navy-2: #243a58;
  --slate: #3e4c60;
  --navy-grad: linear-gradient(100deg, #14243c 0%, #1a2a42 45%, #3e4c60 100%);
  --gold: #f5c518;
  --gold-dark: #d9a90c;
  --text: #1d2433;
  --muted: #5b6577;
  --light: #f4f6fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(20, 33, 58, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--white); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-dark); margin: 1rem 0 0.4rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-grad);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand img { height: 72px; width: auto; }
.main-nav { display: flex; gap: 1.4rem; align-items: center; }
.main-nav a {
  color: #dfe5ef;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--gold); }
.main-nav .nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--gold-dark); color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--white); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background:
    linear-gradient(100deg, rgba(20, 36, 60, 0.97), rgba(26, 42, 66, 0.95) 45%, rgba(62, 76, 96, 0.92)),
    var(--navy);
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(242, 196, 24, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(242, 196, 24, 0.04);
}
.hero-content { max-width: 760px; position: relative; z-index: 1; }
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.lead {
  color: #cdd6e3;
  font-size: 1.15rem;
  margin: 1.2rem 0 2rem;
  max-width: 640px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Stats */
.stats { background: var(--gold); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 2.5rem 0;
  gap: 1rem;
}
.stat-num {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-label { color: var(--navy); font-weight: 500; font-size: 0.95rem; }

/* Sections */
.section { padding: 90px 0; }
.section.alt { background: var(--light); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); }
.sub-head { text-align: center; margin: 3rem 0 1.5rem; font-size: 1.6rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.two-col p { color: var(--muted); margin-bottom: 1rem; }
.two-col h2 { margin-bottom: 1rem; }

.vm { display: grid; gap: 1.2rem; }
.vm-box {
  background: var(--white);
  border-left: 5px solid var(--gold);
  padding: 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.vm-box p { color: var(--muted); margin: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.values li {
  background: var(--navy);
  color: var(--gold);
  text-align: center;
  padding: 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-top-color: var(--gold); }
.card p { color: var(--muted); }
.card ul li {
  color: var(--muted);
  padding: 0.25rem 0 0.25rem 1.1rem;
  position: relative;
  font-size: 0.95rem;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.tags { color: var(--muted); font-size: 0.95rem; }

.industry h3, .project h3, .feature h3 { color: var(--navy); }
.project { border-top-color: var(--navy-2); }
.feature h3::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 0.9rem;
  border-radius: 2px;
}

/* Blog */
.topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.topics li {
  background: var(--navy);
  color: var(--white);
  padding: 1.3rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  transition: background 0.2s;
}
.topics li:hover { background: var(--slate); }

/* Contact */
.contact-info { margin-top: 2rem; display: grid; gap: 1.2rem; }
.contact-info li { display: flex; flex-direction: column; }
.contact-info strong { color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info span { color: var(--muted); font-size: 1.05rem; }
.contact-info a { color: var(--navy-2); text-decoration: none; }
.contact-info a:hover { color: var(--gold-dark); text-decoration: underline; }

.contact-form {
  background: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #fbfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 196, 24, 0.25);
}
.field textarea { resize: vertical; }
.field.invalid input,
.field.invalid textarea { border-color: #d64545; }
.form-status { font-size: 0.95rem; min-height: 1.4rem; color: var(--muted); }
.form-status.success { color: #1e7a3c; }
.form-status.error { color: #b42323; }

/* Footer */
.site-footer { background: var(--navy-grad); color: #c3cde0; padding-top: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-logo { height: 80px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: var(--gold); margin: 0 0 1rem; font-size: 0.9rem; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a { color: #c3cde0; text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold); }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.3rem 0;
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4, .topics { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  .main-nav.open { max-height: 540px; }
  .main-nav a { padding: 0.8rem 4%; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .main-nav .nav-cta { margin: 0.8rem 4% 0; text-align: center; border: 0; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .topics, .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 56px; }
  .hero { padding: 80px 0 90px; }
  .contact-form { padding: 1.5rem; }
}
