@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 700;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 700;
}

:root {
  --navy: #060C4C;
  --navy-card: #1F2333;
  --blue: #68C2F3;
  --teal: #4CBD75;
  --orange: #F6B647;
  --grey-dark: #3C3249;
  --grey-light: #A6A8BC;
  --white: #FEFEFF;
}

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .mono {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
}
header.scrolled {
  background: rgba(6, 12, 76, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
nav img.logo { height: 32px; }
nav .links { display: flex; gap: 32px; align-items: center; }
nav .links a {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  color: var(--grey-light);
  transition: color 0.2s;
}
nav .links a:hover { color: var(--blue); }
nav .links a.cta-btn, nav .links a.cta-btn:hover { color: var(--navy); }
.cta-btn {
  display: inline-block;
  background: var(--blue);
  color: var(--navy);
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(104, 194, 243, 0.35); }
.cta-btn.ghost {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
}
.cta-btn.ghost:hover { box-shadow: 0 8px 24px rgba(76, 189, 117, 0.25); }

/* ── Hero ── */
.hero {
  padding: 160px 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-bg {
  position: absolute;
  top: -10%; left: 0;
  width: 100%; height: 130%;
  background-image: url('img/hero/hero-backdrop.png');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,12,76,0.35) 0%, rgba(6,12,76,0.55) 45%, var(--navy) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero .eyebrow {
  font-family: "Roboto Mono", monospace;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 24px;
  text-shadow: 0 4px 32px rgba(6,12,76,0.6);
}
.hero h1 .accent { color: var(--blue); }
.hero p.sub {
  color: var(--grey-light);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Stats band ── */
.stats-band {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 28px 24px;
  background: rgba(31, 35, 51, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-band .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stats-band .stat:last-child { border-right: none; }
.stats-band .stat .mono {
  font-family: "Roboto Mono", monospace;
  font-size: 16px;
  color: var(--blue);
}
.stats-band .stat .lbl {
  font-size: 12px;
  color: var(--grey-light);
}

/* ── Scroll reveal ── */
/* Content is visible by default (no-JS, JS-blocked, crawlers). The "js"
   class is added synchronously in <head> only when JS actually runs, so
   only real browsers with working JS ever see the hidden/animate-in state. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none !important; }
}

/* ── Sections ── */
section { padding: 90px 24px; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
  font-family: "Roboto Mono", monospace;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 14px; }
.section-head p { color: var(--grey-light); }

/* ── Services grid ── */
.services-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.service-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(104,194,243,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--grey-light); font-size: 14px; }

/* ── Portfolio teaser ── */
.portfolio-teaser {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-slot {
  aspect-ratio: 4/3;
  background: var(--navy-card);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-light);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* ── Credibility band ── */
.credibility {
  background: var(--navy-card);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.credibility .row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.credibility .item { flex: 1; min-width: 220px; }
.credibility .item .num {
  font-family: "Roboto Mono", monospace;
  font-size: 32px;
  color: var(--teal);
  margin-bottom: 8px;
}
.credibility .item p { color: var(--grey-light); font-size: 14px; }

/* ── Final CTA ── */
.final-cta {
  text-align: center;
  padding: 110px 24px;
}
.final-cta h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.final-cta p { color: var(--grey-light); max-width: 480px; margin: 0 auto 36px; }

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 24px;
}
footer .row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer img.logo { height: 24px; opacity: 0.8; }
footer .links { display: flex; gap: 24px; }
footer .links a { color: var(--grey-light); font-size: 13px; }
footer .links a:hover { color: var(--blue); }

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  background: rgba(6, 12, 76, 0.97);
  backdrop-filter: blur(8px);
}
.mobile-menu a {
  font-family: "Roboto Mono", monospace;
  font-size: 15px;
  color: var(--grey-light);
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a.cta-btn {
  text-align: center;
  margin-top: 10px;
  border-bottom: none;
}
.mobile-menu.open { display: flex; }

/* ── Portfolio page ── */
.page-hero {
  padding: 160px 24px 60px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.page-hero .eyebrow {
  font-family: "Roboto Mono", monospace;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 18px; }
.page-hero .sub { color: var(--grey-light); font-size: 17px; }

.portfolio-full { padding: 20px 24px 90px; }
.portfolio-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.portfolio-full-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.portfolio-full-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.portfolio-full-img {
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-light);
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  text-align: center;
  padding: 20px;
}
.portfolio-full-body { padding: 20px 22px 26px; }
.portfolio-full-body .tag {
  display: inline-block;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.portfolio-full-body h3 { font-size: 17px; margin-bottom: 8px; }
.portfolio-full-body p { color: var(--grey-light); font-size: 14px; }

@media (max-width: 860px) {
  nav .links { display: none; }
  .nav-toggle { display: flex; }
  .services-grid, .portfolio-teaser, .portfolio-grid { grid-template-columns: 1fr; }
  .credibility .row { flex-direction: column; gap: 28px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stats-band .stat:nth-child(2n) { border-right: none; }
  .stats-band .stat:nth-child(-n+2) { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero { padding-top: 120px; min-height: auto; }
  .page-hero { padding-top: 120px; }
}
