:root {
  --navy: #07142b;
  --ink: #101828;
  --blue: #2563eb;
  --cyan: #08a6c7;
  --green: #18b84f;
  --light: #f7f9ff;
  --muted: #64748b;
  --border: #dfe7f2;
  --white: #fff;
  --shadow: 0 18px 48px rgba(7, 20, 43, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--light);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 999;
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 8, 19, .94);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 900; }
.logo-mark { font-size: 34px; letter-spacing: -2px; line-height: 1; }
.logo-mark span, h1 span, .dark-band span { color: var(--blue); }
.logo-text { font-size: 13px; line-height: 1.08; letter-spacing: .04em; }
.menu { display: flex; gap: 26px; color: var(--white); font-weight: 750; font-size: 14px; }
.menu a { opacity: .84; padding: 28px 0 24px; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.active { opacity: 1; color: #77a2ff; border-color: #77a2ff; }
.talk, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 850;
}
.talk, .btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 14px 35px rgba(37,99,235,.26); }
.btn-outline { border: 1px solid rgba(255,255,255,.48); color: var(--white); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font-size: 24px;
}

.page { display: none; }
.page.active { display: block; }
.hero, .subhero {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(2,8,19,.88), rgba(7,20,43,.8)),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero { padding: 78px 0 96px; }
.hero-grid, .subhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 48px;
  align-items: center;
}
.eyebrow, .subhero small, .section-title small, .blue-label {
  color: #77a2ff;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
}
.eyebrow span { width: 8px; height: 8px; border-radius: 999px; background: var(--cyan); }
h1 { max-width: 760px; margin: 22px 0 18px; font-size: clamp(42px, 7vw, 74px); line-height: .94; letter-spacing: -2px; }
h2 { margin: 8px 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -1px; }
h3 { margin: 0; }
p { line-height: 1.65; }
.hero-copy > p:last-of-type, .subhero p { color: #d8e1f2; font-size: 18px; max-width: 640px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-media {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0,0,0,.45);
}
.hero-media img, .subhero img { width: 100%; min-height: 360px; object-fit: cover; }
.hero-media figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: rgba(2,8,19,.82);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}
.hero-media strong { color: var(--cyan); font-size: 34px; }
.hero-media span { color: #dbeafe; }

.feature-strip { margin-top: -44px; position: relative; z-index: 4; }
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.strip article { padding: 28px; border-right: 1px solid var(--border); }
.strip article:last-child { border-right: 0; }
.ico {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--blue);
  font-weight: 900;
}
.strip p, .card p, .project p, .article p, .about-grid p { color: var(--muted); margin-bottom: 0; }

.section-pad { padding: 78px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card, .project, .article, .contact-form, .contact-aside {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(7,20,43,.06);
}
.card { min-height: 250px; padding: 24px; }
.card a, .project a { color: var(--blue); font-weight: 850; }

.subhero { padding: 72px 0; }
.subhero img {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.dark-band {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  color: var(--white);
  background: linear-gradient(135deg, #020813, #07142b 72%, #05344c);
  border-radius: 18px;
}
.dark-band p { color: #cbd5e1; margin-top: 0; }

.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stats article {
  min-height: 140px;
  padding: 24px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
}
.stats strong { display: block; color: var(--cyan); font-size: 38px; }
.stats span { color: #d8e1f2; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}
.filter.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.portfolio-grid, .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project, .article { overflow: hidden; }
.thumb {
  height: 210px;
  background: center/cover;
}
.project-body, .article-body { padding: 22px; }
.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.process-list { display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr 1.6fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.num { color: var(--blue); font-size: 34px; font-weight: 950; }
.step p { color: var(--muted); margin: 0; }

.search-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(2,8,19,.55);
}
.search-panel label { display: block; margin-bottom: 12px; font-weight: 850; }
.search-panel input, .contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 16px;
  font: inherit;
}
.search-panel input { border-color: rgba(255,255,255,.24); background: var(--white); }
.empty-state { text-align: center; color: var(--muted); font-weight: 800; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 26px; }
.contact-form h2, .contact-form textarea, .contact-form .send, .form-note { grid-column: 1 / -1; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.send {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.form-note { margin: 0; color: var(--green); font-weight: 750; }
.contact-aside { padding: 26px; }
.contact-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-card:last-child { border-bottom: 0; }
.contact-card small { display: block; color: var(--muted); margin-top: 4px; }

.site-footer {
  padding: 52px 0 22px;
  color: var(--white);
  background: linear-gradient(135deg, #020813, #07142b);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer-grid h3 { font-size: 14px; text-transform: uppercase; color: #a8c1ff; }
.footer-grid a, .footer-grid p { display: block; color: #cbd5e1; margin: 10px 0; }
.copyright {
  width: min(1180px, 92vw);
  margin: 34px auto 0;
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 1040px) {
  .talk { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 4vw 18px;
    background: #020813;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; }
  .hero-grid, .subhero-grid, .about-grid, .contact-grid, .dark-band { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip article:nth-child(2) { border-right: 0; }
  .strip article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero { padding-top: 52px; }
  .hero-media figcaption { grid-template-columns: 1fr; }
  .strip, .cards, .portfolio-grid, .blog-grid, .stats, .footer-grid, .contact-form { grid-template-columns: 1fr; }
  .strip article { border-right: 0; border-bottom: 1px solid var(--border); }
  .strip article:last-child { border-bottom: 0; }
  .step { grid-template-columns: 1fr; }
}
