:root {
  --navy: #0b1a2e;
  --navy-2: #12284a;
  --blue: #064393;        /* Arksoft brand blue */
  --blue-bright: #3b82f6; /* for accents on dark backgrounds */
  --sky: #9cc3ff;
  --ink: #0b1a2e;
  --text: #4a5565;
  --muted: #7a8494;
  --line: #e3e8ef;
  --tint: #f4f7fb;
  --radius: 18px;
  --max: 1180px;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.75; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 18px; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4vw, 46px); }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 10px; }
p { margin: 0 0 16px; }
address { font-style: normal; }
.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--ink); }
.skip-link:focus { left: 8px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.eyebrow-light { color: var(--sky); }
.lead { font-size: 20px; line-height: 1.6; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 80px; padding: 0 32px; color: #fff; background: transparent;
  transition: height .3s, background .3s, color .3s, box-shadow .3s;
}
/* White once scrolled past the hero or while the menu is open */
.site-header.scrolled, .site-header.menu-open { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 12px 30px -16px rgba(11, 26, 46, .4); }
.site-header.scrolled { height: 66px; }
.brand { position: relative; display: block; height: 30px; }
.brand img { height: 30px; width: auto; transition: opacity .3s; }
.brand .logo-dark { position: absolute; left: 0; top: 0; opacity: 0; }
.scrolled .brand .logo-light, .menu-open .brand .logo-light { opacity: 0; }
.scrolled .brand .logo-dark, .menu-open .brand .logo-dark { opacity: 1; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { position: relative; text-decoration: none; font-size: 15px; font-weight: 600; opacity: .9; transition: opacity .2s; }
.site-nav a:hover { opacity: 1; }
.scrolled .site-nav a:not(.nav-cta):hover { color: var(--blue); }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after, .site-nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
.nav-cta { padding: 9px 20px; border-radius: 999px; border: 1.5px solid currentColor; opacity: 1 !important; transition: background .25s, color .25s, border-color .25s; }
.nav-cta:hover, .nav-cta:focus-visible { background: #fff; border-color: #fff; color: var(--navy); }
.scrolled .nav-cta, .menu-open .nav-cta { background: var(--blue); border-color: var(--blue); color: #fff; }
.scrolled .nav-cta:hover, .scrolled .nav-cta:focus-visible { background: var(--navy); border-color: var(--navy); color: #fff; }

.menu-toggle { display: none; position: relative; width: 40px; height: 40px; padding: 0; margin-right: -8px; background: none; border: 0; cursor: pointer; color: inherit; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--navy); color: #fff; text-align: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.1); animation: kenburns 14s var(--ease) forwards; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 26, 46, .88), rgba(6, 67, 147, .55) 55%, rgba(11, 26, 46, .95)); }
.hero-content { position: relative; max-width: 920px; padding: 120px 24px 100px; }
.hero-eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--sky); }
.hero h1 { color: #fff; font-size: clamp(44px, 8vw, 92px); letter-spacing: -.035em; }
.hero-sub { max-width: 640px; margin: 0 auto; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; color: rgba(255, 255, 255, .85); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
.hero-eyebrow, .hero h1, .hero-sub, .hero-actions, .scroll-cue { opacity: 0; animation: rise 1s var(--ease) forwards; }
.hero-eyebrow { animation-delay: .2s; }
.hero h1 { animation-delay: .4s; }
.hero-sub { animation-delay: .7s; }
.hero-actions { animation-delay: 1s; }
.scroll-cue { animation: fade 1s ease 1.6s forwards; }
@keyframes kenburns { to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { margin-bottom: 0; }

/* Technologies */
.tech-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.tech-logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech-logos li { display: grid; place-items: center; aspect-ratio: 1; padding: 14%; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -24px rgba(11, 26, 46, .5); transition: transform .3s var(--ease), box-shadow .3s; }
.tech-logos li:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(11, 26, 46, .6); }
.tech-logos img { width: 100%; height: auto; mix-blend-mode: multiply; opacity: .75; transition: opacity .3s; }
.tech-logos li:hover img { opacity: 1; }

/* Services */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.split-image { position: sticky; top: 96px; }
.split-image img { width: 100%; border-radius: 24px; box-shadow: 0 30px 60px -28px rgba(11, 26, 46, .55); }
.subhead { margin: 88px 0 28px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: 0 16px 36px -28px rgba(11, 26, 46, .5); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -28px rgba(11, 26, 46, .6); }
.card p { margin: 0; font-size: 15px; line-height: 1.65; }
.icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(6, 67, 147, .09); color: var(--blue); margin-bottom: 18px; }
.icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Promise */
.promise { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.promise::before { content: ""; position: absolute; width: 760px; height: 760px; right: -280px; top: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .3), transparent 65%); }
.promise .container { position: relative; }
.promise h2 { color: #fff; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promises li { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: 19px; font-weight: 700; transition: background .3s, transform .3s var(--ease); }
.promises li:hover { background: rgba(255, 255, 255, .09); transform: translateY(-3px); }
.promises .icon { margin: 0; flex: none; background: rgba(59, 130, 246, .2); color: var(--sky); }

/* About */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: start; }
.profile { position: sticky; top: 96px; text-align: center; }
.profile img { width: 220px; height: 220px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: 0 0 0 2px var(--blue), 0 24px 44px -24px rgba(11, 26, 46, .6); }
.profile-name { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.profile-role { margin: 0; color: var(--muted); }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .85); text-align: center; }
.contact-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; }
.contact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 26, 46, .7), rgba(6, 67, 147, .6)); }
.contact-inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; max-width: 820px; }
.contact h2 { color: #fff; font-size: clamp(34px, 5vw, 54px); margin-bottom: 34px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 28px; }
.contact address { font-size: 16px; color: rgba(255, 255, 255, .75); }

/* Footer */
.site-footer { background: #07121f; color: rgba(255, 255, 255, .6); font-size: 15px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer-inner img { height: 24px; width: auto; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-inner a:hover { color: var(--sky); }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .3s, background .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--navy-2); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .tech-grid, .split, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .split-image, .profile { position: static; }
  .section { padding: 84px 0; }
}
@media (max-width: 820px) {
  .site-header { padding: 0 16px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; color: var(--ink); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .3);
  }
  .menu-open .site-nav { display: flex; }
  .site-nav a { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 17px; transition: background .2s, padding-left .25s var(--ease); }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav a:not(.nav-cta):hover, .site-nav a:not(.nav-cta):active { background: var(--tint); padding-left: 28px; }
  .site-nav .nav-cta { margin: 12px 16px 16px; justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 68px 0; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .tech-logos { gap: 10px; }
  .cards, .promises { grid-template-columns: 1fr; }
  .subhead { margin-top: 64px; }
  .contact-inner { padding-top: 80px; padding-bottom: 80px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
