:root {
  --royal: #1f4fd8;
  --royal-deep: #0b2a8a;
  --royal-ink: #071a5c;
  --royal-tint: #eef3ff;
  --royal-line: #d6e0fb;
  --white: #ffffff;
  --text: #0f1a3a;
  --muted: #55607e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,42,138,.06), 0 12px 32px -12px rgba(11,42,138,.18);
  --max: 1180px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-logo: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-slogan: 'Exo 2', 'Inter', sans-serif;
  /* Circuit-trace pattern used on blue backgrounds */
  --circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.5'%3E%3Cpath d='M0 40h40l20 20h40M100 60v40l20 20h40M20 160v-40l20-20h20M60 0v20l20 20h20M120 0v30M140 100h20'/%3E%3Ccircle cx='100' cy='60' r='3'/%3E%3Ccircle cx='60' cy='100' r='3'/%3E%3Ccircle cx='100' cy='40' r='3'/%3E%3Ccircle cx='120' cy='30' r='3'/%3E%3Ccircle cx='140' cy='100' r='3'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--text); font-family: var(--font-body); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; color: var(--royal-ink); }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; }
.section.tint { background: var(--royal-tint); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--royal); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.hl { color: var(--royal); }

/* ---- Slogan ---- */
.slogan { font-family: var(--font-slogan); font-weight: 300; font-style: italic; letter-spacing: -0.01em; }
.slogan span { font-weight: 600; }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 54px; width: auto; }
/* On dark backgrounds the logo sits on a white tile so its black text stays readable */
.logo.light { background: #fff; border-radius: 10px; padding: 8px 12px; }
.logo.light img { height: 48px; }
@media (max-width: 720px) { .logo img { height: 44px; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; font-family: inherit; }
.btn-primary { background: var(--royal); color: #fff; }
.btn-primary:hover { background: var(--royal-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--royal); }
.btn-outline { border-color: var(--royal); color: var(--royal); background: #fff; }
.btn-outline:hover { background: var(--royal); color: #fff; }
.btn-white { background: #fff; color: var(--royal-deep); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---- Header ---- */
.topbar { background: var(--royal-ink); color: #c9d6ff; font-size: .82rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 24px; padding: 8px 0; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--royal-line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; transition: color .15s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--royal); transform: scaleX(0); transition: transform .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--royal); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-links .btn { color: #fff; padding: 10px 20px; }
.nav-links .btn::after { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--royal-line); color: var(--royal); border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--royal-deep); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: var(--circuit), linear-gradient(105deg, rgba(7,26,92,.97) 25%, rgba(31,79,216,.82) 60%, rgba(31,79,216,.55)); }
.hero .container { position: relative; }
.hero h1, .page-hero h1 { color: #fff; }
.hero .eyebrow, .page-hero .eyebrow { color: #a9c0ff; }
.home-hero { padding: 120px 0 0; }
.home-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); max-width: 780px; margin-bottom: 22px; }
.home-hero h1 span { color: #a9c0ff; }
.hero p.lead { font-size: 1.18rem; color: #dbe5ff; max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; background: #fff; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); }
.stat { padding: 30px 28px; border-right: 1px solid var(--royal-line); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--royal); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

.page-hero { padding: 110px 0 96px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 760px; margin-bottom: 16px; }
.page-hero p { color: #dbe5ff; font-size: 1.12rem; max-width: 640px; }

/* ---- Cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.card { background: #fff; border: 1px solid var(--royal-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); border-color: var(--royal); }
.card-img { aspect-ratio: 16/10; background: var(--royal-tint); overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .tag { position: absolute; top: 14px; left: 14px; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.22rem; }
.card-body p { color: var(--muted); font-size: .95rem; }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #fff; background: var(--royal); padding: 5px 11px; border-radius: 6px; }
.features { list-style: none; display: grid; gap: 7px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--royal-line); }
.features li { font-size: .9rem; padding-left: 22px; position: relative; color: var(--text); }
.features li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border: 2px solid var(--royal); border-radius: 2px; }
.more-link { margin-top: auto; padding-top: 10px; color: var(--royal); font-weight: 600; font-size: .92rem; }
.more-link:hover { text-decoration: underline; }

.feature { padding: 32px; background: #fff; border: 1px solid var(--royal-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature .icon { width: 50px; height: 50px; border-radius: 12px; background: var(--royal-tint); color: var(--royal); display: grid; place-items: center; margin-bottom: 18px; }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .95rem; }

.media { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.media-badge { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); }
.media-badge strong { display: block; font-family: var(--font-head); color: var(--royal); font-size: 1.5rem; line-height: 1.1; }
.media-badge span { font-size: .82rem; color: var(--muted); }
.copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 18px; }
.copy p { color: var(--muted); margin-bottom: 16px; }
.checklist { list-style: none; display: grid; gap: 12px; margin: 22px 0 30px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 6px; background: var(--royal); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 16px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(7,26,92,.9)); }

.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list span { padding: 9px 16px; border-radius: 8px; border: 1px solid var(--royal-line); background: #fff; font-size: .9rem; font-weight: 500; color: var(--royal-deep); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.timeline .feature::before { counter-increment: step; content: '0' counter(step); display: block; font-family: var(--font-logo); font-size: 1.6rem; font-weight: 800; color: var(--royal); margin-bottom: 12px; }

.cta-band { position: relative; overflow: hidden; background: var(--circuit), linear-gradient(110deg, var(--royal-ink), var(--royal)); border-radius: 20px; padding: 60px; display: flex; justify-content: space-between; align-items: center; gap: 30px; color: #fff; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 8px; }
.cta-band p { color: #dbe5ff; }

/* ---- Services page ---- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button { background: #fff; border: 1px solid var(--royal-line); color: var(--muted); padding: 9px 20px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; transition: all .15s; }
.filters button:hover { border-color: var(--royal); color: var(--royal); }
.filters button.active { background: var(--royal); border-color: var(--royal); color: #fff; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 36px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--royal-line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.panel.blue { background: var(--circuit), linear-gradient(160deg, var(--royal-ink), var(--royal)); color: #fff; border: none; }
.panel.blue h2 { color: #fff; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.info-item:last-of-type { border-bottom: none; }
.info-item .icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.info-item .icon svg { width: 22px; height: 22px; }
.info-item small { color: #a9c0ff; display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.info-item a, .info-item strong { font-weight: 600; font-size: 1.05rem; }
.info-item a:hover { text-decoration: underline; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--royal-ink); }
.field input, .field textarea, .field select { width: 100%; background: #fff; border: 1.5px solid var(--royal-line); border-radius: 10px; padding: 12px 14px; color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(31,79,216,.12); }
.field textarea { min-height: 150px; resize: vertical; }
.form-msg { padding: 13px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: #ecfdf3; border: 1px solid #86efac; color: #166534; }
.form-msg.err { display: block; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ---- Footer ---- */
.site-footer { background: var(--royal-ink); color: #c9d6ff; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.4fr; gap: 40px; margin-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer li, .site-footer p { font-size: .92rem; }
.site-footer p { margin-top: 16px; max-width: 320px; }
.site-footer a:hover { color: #fff; }
.site-footer p.slogan { color: #fff; font-size: 1.05rem; line-height: 1.4; }
.site-footer p.slogan span { color: #a9c0ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid-3, .timeline { grid-template-columns: 1fr 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--royal-line); }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 180px 180px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .topbar { display: none; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--royal-line); padding: 8px 16px 18px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin-top: 8px; justify-content: center; }
  .grid-3, .timeline, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .home-hero { padding-top: 80px; }
  .stat { padding: 20px; }
  .stat strong { font-size: 1.6rem; }
  .panel, .cta-band { padding: 26px; }
}
.card[hidden] { display: none; }
