/* ===== Design tokens ===== */
:root {
  --blue: #026acb;
  --blue-dark: #0b54d6;
  --navy: #0c1220;
  --orange: #f6921e;
  --orange-ink: #1a1200;
  --ink: #0e1726;
  --muted: #5b6776;
  --line: #e6eaf0;
  --bg-tint: #f6f8fc;
  --grad: linear-gradient(125deg, var(--blue) 0%, var(--blue-dark) 55%, var(--orange) 165%);
  --radius: 12px;
  --maxw: 1120px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ===== Base typography ===== */
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
p { color: var(--muted); }

/* ===== Layout utilities ===== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: 64px 0; }
.section-tint { background: var(--bg-tint); }
.section-grad { background: var(--grad); color: #fff; }
.section-grad h1, .section-grad h2, .section-grad p { color: #fff; }
.kicker { text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; font-weight: 800; color: var(--orange); }
.center { text-align: center; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 13px 24px; border-radius: 30px; font-weight: 700; font-size: .95rem; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--orange); color: var(--orange-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border: 1px solid var(--blue); color: var(--blue); }
.btn-on-dark { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }

/* ===== Site nav ===== */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.site-nav .brand { font-weight: 800; font-size: 1.4rem; letter-spacing: -.5px; color: var(--ink); }
.site-nav .brand:hover { text-decoration: none; }
.site-nav .brand .b { color: var(--blue); }
.site-nav .nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.site-nav .nav-links a { color: var(--ink); font-weight: 600; }
.site-nav .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav .nav-links.is-open { max-height: 320px; }
  .site-nav .nav-links li { width: 100%; }
  .site-nav .nav-links a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
  .site-nav .nav-links .btn { margin: 12px 20px; text-align: center; }
}

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #7e8aa3; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: center; padding-block: 22px; font-size: .85rem; }
.site-footer a { color: #cfe0ff; }
.site-footer .social-link { display: inline-flex; align-items: center; }
.site-footer .social-link svg { height: 22px; width: auto; display: block; transition: opacity .15s ease, transform .15s ease; }
.site-footer .social-link:hover { text-decoration: none; }
.site-footer .social-link:hover svg { transform: translateY(-1px); opacity: .85; }

/* ===== Hero ===== */
.hero { padding: clamp(28px, 5vw, 56px) 0; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(rgba(2,42,92,.42), rgba(2,42,92,.42)), url(../images/body_bg-blue_mobile.png) repeat;
  border-radius: 24px; padding: clamp(36px, 6vw, 64px);
  box-shadow: 0 18px 50px rgba(2,42,92,.30); }
.hero-copy { text-align: left; }
.hero h1 { letter-spacing: -1px; color: #fff; }
.hero-sub { max-width: 540px; margin: 16px 0 28px; font-size: 1.12rem; color: #eaf3fb; }
.hero-logo { justify-self: end; border-radius: 18px; padding: 34px 40px;
  background: url(../images/header/header_bg_orange.png) center/cover no-repeat, var(--orange);
  box-shadow: 0 20px 45px rgba(0,0,0,.25); }
.hero-logo img { width: 100%; max-width: 360px; height: auto; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: clamp(28px, 7vw, 40px); }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-logo { justify-self: center; padding: 26px 30px; }
  .hero-logo img { max-width: 260px; }
}

/* ===== Our Expertise ===== */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 28px; }
.svc-break { flex-basis: 100%; height: 0; }
.svc-card { display: block; flex: 0 1 calc((100% - 54px)/4); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.svc-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11,84,214,.12);
  border-bottom: 3px solid var(--orange); }
.svc-card img { margin: 0 auto 16px; width: 120px; height: 120px; }
.svc-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.svc-card p { font-size: .9rem; }

/* ===== Why ===== */
.why-lead { max-width: 720px; margin: 14px auto 0; font-size: 1.15rem; color: var(--ink); }

/* ===== Client logos ===== */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; align-items: center; margin-top: 28px; }
.logo-grid img { width: 100%; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logo-grid img:hover { filter: none; opacity: 1; }

/* ===== Featured apps ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feat-card figcaption { padding: 14px 16px; font-weight: 700; color: var(--ink); }

/* ===== Contact ===== */
.contact-lead { max-width: 560px; margin: 10px auto 22px; font-size: 1.1rem; color: #e8f0ff; }
.contact-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) { .svc-card { flex-basis: calc((100% - 18px)/2); } .svc-break { display: none; } .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .svc-card { flex-basis: 100%; } .logo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }

/* ===== Subpage hero ===== */
.subhero { padding: clamp(40px, 7vw, 72px) 0; }
.subhero h1 { letter-spacing: -1px; }

/* ===== Services detail ===== */
.svc-detail { display: grid; gap: 48px; }
.svc-row { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; scroll-margin-top: 90px; }
.svc-row img { width: 120px; height: 120px; }
.svc-row h2 { margin-bottom: 10px; }
@media (max-width: 640px) { .svc-row { grid-template-columns: 1fr; gap: 14px; } .svc-row img { width: 90px; height: 90px; } }

/* ===== App cards ===== */
.app-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
.app-card { display: grid; grid-template-columns: 300px 1fr; gap: 28px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.app-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.app-body p { font-size: .94rem; }
.app-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.app-stores img { height: 40px; width: auto; }
.app-more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--blue); }
@media (max-width: 680px) { .app-card { grid-template-columns: 1fr; gap: 18px; } }

/* ===== Screenshot carousel ===== */
.carousel { position: relative; width: 100%; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 10px; background: #eef2f8; border: 1px solid var(--line);
  scrollbar-width: none; -ms-overflow-style: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > img { flex: 0 0 100%; scroll-snap-align: center;
  height: 380px; width: 100%; object-fit: contain; padding: 12px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-dots { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: background .15s ease; }
.carousel-dot.is-active { background: var(--blue); }
@media (max-width: 680px) { .carousel-track > img { height: 340px; } }

/* ===== App detail page ===== */
.app-detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: start; }
.app-detail-media .app-stores { display: flex; justify-content: center; margin-top: 16px; }
.app-detail-body > p { font-size: 1.05rem; color: var(--ink); }
.app-detail-body h2 { font-size: 1.3rem; margin: 6px 0 12px; }
.app-detail-body ul { margin: 0 0 1.2em 1.15em; }
.app-detail-body li { margin-bottom: .55em; color: var(--ink); }
.app-detail-support { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.app-detail-support h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.app-detail-follow { display: inline-flex; align-items: center; gap: 14px; }
.app-detail-follow .follow-icon { display: inline-flex; }
.app-detail-follow .follow-icon:hover { opacity: .85; }
.app-detail-follow svg { width: 32px; height: 32px; display: block; }
@media (max-width: 760px) { .app-detail-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ===== Legal / long-form text pages ===== */
.legal { padding: 56px 0; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal a { color: var(--blue); text-decoration: underline; }
.legal em { color: var(--muted); }
.legal-support { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
