:root{
  --navy: #06334B;
  --navy-deep: #042536;
  --navy-soft: #0E4C6B;
  --gold: #F4C500;
  --gold-deep: #C99A00;
  --gold-soft: #FBEDB0;
  --paper: #FFFFFF;
  --bg-soft: #F6F5F0;
  --ink: #13222E;
  --ink-soft: #55636D;
  --line: #E3E1D8;
  --mono: 'JetBrains Mono', monospace;
  --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { padding: 110px 48px; max-width: 1200px; margin: 0 auto; }

::selection { background: var(--gold); color: var(--navy); }

/* --- Nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 51, 75, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(244,197,0,0.18);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; height: 100%; }
.logo img { height: 100px; width: auto; display: block; }
nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
}
nav a {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #C9D6DE;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
nav a:hover { color: var(--gold); }
nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
nav a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 9px 18px;
  font-weight: 700;
  border-radius: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(244,197,0,0.35); }

/* --- Mobile nav toggle --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid rgba(244,197,0,0.4);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
#home {
  background:
    radial-gradient(circle at 85% 15%, rgba(244,197,0,0.10), transparent 45%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #F2F6F8;
  padding-top: 30px;
  padding-bottom: 50px;
  max-width: none;
  position: relative;
}
#home::after{
  content:'';
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events:none;
}
.hero-inner { max-width: 1200px; margin: 25px auto; position: relative; padding: 0 48px; }
.hero-cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero-visual { position: relative; margin-bottom: 170px; }
.hero-visual img { width: 100%; height: auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
h1 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
h1 .accent { color: var(--gold); }
.hero-sub {
  max-width: 52ch;
  margin-top: 26px;
  font-size: 1.15rem;
  color: #C9D6DE;
}
.hero-actions { margin-top: 42px; display: flex; gap: 18px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 15px 28px;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 3px;
  transition: all 0.2s ease;
  background: none;
  cursor: pointer;
}

.btn-solid { background: var(--gold); color: var(--navy-deep); font-weight: 700; border-color: var(--gold); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244,197,0,0.3); }
.btn-ghost { border-color: rgba(244,197,0,0.5); color: #F2F6F8; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-strip {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 30px;
  gap: 20px;
}
.hero-strip .stat-num { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.hero-strip .stat-desc { font-size: 0.82rem; color: #AFC0CA; margin-top: 4px; }

/* --- Section headers --- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.section-num {
  font-family: var(--mono);
  font-size: 1.75rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-top: 8px;
  color: var(--navy);
}
.section-note {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 32ch;
  text-align: right;
}

/* --- About --- */
#about { background: var(--bg-soft); max-width: none; }
.about-grid { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; }
#about .section-head { max-width: 1200px; margin: 0 auto 54px; padding: 0 48px 22px; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; max-width: 54ch; }
.about-text p:first-child { color: var(--ink); font-size: 1.12rem; }
.stat-rail { border-left: 2px solid var(--gold); padding-left: 32px; display: flex; flex-direction: column; gap: 30px; }
.stat { position: relative; }
.stat::before { content: ''; position: absolute; left: -37px; top: 6px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.stat-num { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.stat-desc { font-size: 0.88rem; color: var(--ink-soft); margin-top: 4px; }

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(6,51,75,0.08); }
.service-tag { font-family: var(--mono); font-size: 0.72rem; color: var(--gold-deep); letter-spacing: 0.08em; }
.service-name { font-family: var(--mono); font-weight: 700; font-size: 1.08rem; margin-top: 10px; color: var(--navy); }
.service-desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 12px; }
.service-stack { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  border: 1px solid var(--line);
  padding: 3px 9px;
  color: var(--ink-soft);
  border-radius: 3px;
}

/* --- Why Choose --- */
#why { background: var(--navy); color: #F2F6F8; max-width: none; }
#why .section-head { max-width: 1200px; margin: 0 auto 54px; padding: 0 48px 22px; border-bottom-color: rgba(255,255,255,0.14); }
#why .section-note { color: #AFC0CA; }
.why-grid { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-card { border: 1px solid rgba(255,255,255,0.14); padding: 30px 24px; border-radius: 6px; }
.why-num { font-family: var(--mono); font-size: 0.9rem; color: var(--gold); }
.why-title { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; margin-top: 14px; }
.why-desc { font-size: 0.88rem; color: #AFC0CA; margin-top: 10px; }

/* --- Technologies --- */
.tech-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.tech-chip {
  font-family: var(--mono);
  font-size: 0.85rem;
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 4px;
  color: var(--navy);
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tech-chip:hover { border-color: var(--gold); background: var(--gold-soft); }

/* --- MD Message --- */
#md { background: var(--bg-soft); max-width: none; }
#md .section-head { max-width: 1200px; margin: 0 auto 54px; padding: 0 48px 22px; }
.md-grid { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.md-photo-wrap {
  position: relative;
  border: 2px solid var(--gold);
  border-radius: 6px;
  padding: 10px;
  background: var(--paper);
}
.md-photo-wrap img { border-radius: 3px; width: 100%; }
.md-quote-mark { font-family: var(--mono); font-size: 3.5rem; color: var(--gold); line-height: 1; }
.md-message p { font-size: 1.08rem; color: var(--ink); max-width: 62ch; margin-bottom: 18px; }
.md-signoff { margin-top: 28px; }
.md-name { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.md-title { font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }

/* --- Contact --- */
#contact { max-width: none; background: var(--navy); color: #F2F6F8; }
#contact .section-head { max-width: 1200px; margin: 0 auto 54px; padding: 0 48px 22px; border-bottom-color: rgba(255,255,255,0.14); }
#contact .section-note { color: #AFC0CA; }
.contact-grid { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact-info-row { display: flex; flex-direction: column; gap: 26px; }
.contact-item .label { font-family: var(--mono); font-size: 0.9rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 6px; }
.contact-item .value { font-size: 1.1rem; }
.contact-item .value a:hover { color: var(--gold); }

form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 0.72rem; color: #AFC0CA; letter-spacing: 0.06em; }
.field input, .field textarea {
  background: rgba(255,255,255,0.04);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 10px 8px;
  font-family: var(--body);
  font-size: 0.95rem;
  color: #F2F6F8;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 90px; }
form .btn { align-self: flex-start; margin-top: 6px; }

footer {
  background: var(--navy-deep);
  color: #AFC0CA;
  padding: 34px 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--gold); }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244,197,0,0.3);
  border-radius: 50%;
  color: #AFC0CA;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .md-grid { grid-template-columns: 1fr; gap: 40px; }
  .md-grid { text-align: left; }
  .hero-cols { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .nav-wrap { padding: 0px 24px; position: relative; }
  .logo img { height: 75px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(244,197,0,0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.open { max-height: 320px; }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
  }
  nav ul li { border-top: 1px solid rgba(255,255,255,0.08); }
  nav ul li:first-child { border-top: none; }
  nav ul a { display: block; padding: 14px 4px; }
  section, .hero-inner, .about-grid, #about .section-head, .why-grid, #why .section-head, .md-grid, #md .section-head, .contact-grid, #contact .section-head { padding-left: 24px; padding-right: 24px; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; }
  footer { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
