/* ESA HUB website. Light, clean, product-first. */

:root {
  --brand: #0150ec;
  --brand-dark: #003cb8;
  --brand-soft: #eaf1ff;
  --cyan: #19c3e6;
  --ink: #0b1b3f;
  --slate: #475569;
  --muted: #64748b;
  --line: #e5eaf2;
  --bg-soft: #f6f8fc;
  --white: #ffffff;
  --green: #12a150;
  --amber: #e8900c;
  --red: #e5484d;
  --violet: #7c3aed;
  --pink: #db2777;
  --teal: #0d9488;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 27, 63, 0.06), 0 8px 24px rgba(11, 27, 63, 0.06);
  --shadow-lg: 0 24px 60px rgba(11, 27, 63, 0.14);
  /* Kept for the privacy page */
  --blue: var(--brand);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 32px; }
.center { text-align: center; }

/* ───────────── header ───────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
/* The old letter mark, for any page not yet moved to the logo */
.brand .mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 15px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--slate); }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* ───────────── buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ───────────── hero ───────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(25, 195, 230, 0.14), transparent 70%),
    radial-gradient(800px 500px at 0% 0%, rgba(1, 80, 236, 0.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 161, 80, 0.15); }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; margin-top: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--slate); margin-top: 18px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-note span::before { content: '✓'; color: var(--green); margin-right: 7px; font-weight: 800; }

/* hero visual: console window with phones in front */
.hero-visual { position: relative; min-height: 470px; }
.window {
  position: absolute; inset: 0 40px 60px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.window-body { display: grid; grid-template-columns: 120px 1fr; height: calc(100% - 36px); }
.side { background: linear-gradient(180deg, #0a3fc2, #0150ec 60%, #149ad8); padding: 14px 10px; }
.side b { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.28); margin: 10px 4px; }
.side b.on { background: rgba(255, 255, 255, 0.85); }
.dash { padding: 16px; display: grid; gap: 12px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.kpi strong { font-size: 18px; }
.chart { border: 1px solid var(--line); border-radius: 12px; padding: 12px; height: 150px; display: flex; align-items: flex-end; gap: 8px; }
.chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--cyan), var(--brand)); opacity: 0.85; }
.rows { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.rows div { display: flex; justify-content: space-between; font-size: 11.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--slate); }
.rows div:last-child { border: 0; }
.tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag.ok { background: #e6f6ed; color: var(--green); }
.tag.due { background: #fff4e0; color: var(--amber); }

/* phone mock-ups */
.phone {
  position: absolute; width: 196px; height: 396px;
  background: #0b1b3f; border-radius: 34px; padding: 9px;
  box-shadow: var(--shadow-lg);
}
.phone .screen { width: 100%; height: 100%; background: #f6f8fc; border-radius: 26px; overflow: hidden; position: relative; }
.phone .notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; background: #0b1b3f; border-radius: 10px; z-index: 2; }
.phone-a { right: 0; bottom: 0; transform: rotate(3deg); }
.phone-b { right: 168px; bottom: -14px; transform: rotate(-4deg); width: 180px; height: 360px; }
.app-top { padding: 32px 14px 14px; color: #fff; }
.app-top small { font-size: 10px; opacity: 0.85; font-weight: 600; }
.app-top strong { display: block; font-size: 22px; font-weight: 800; }
.app-blue { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.app-violet { background: linear-gradient(135deg, #5b21b6, #7c3aed); }
.app-card { margin: 10px 12px 0; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 11px; color: var(--slate); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.app-card b { color: var(--ink); display: block; font-size: 12px; }
.app-btn { margin: 10px 12px 0; background: var(--brand); color: #fff; text-align: center; border-radius: 10px; padding: 9px; font-size: 12px; font-weight: 800; }
.map { margin: 10px 12px 0; height: 150px; border-radius: 14px; position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 100% 100%,
    linear-gradient(0deg, transparent 58%, #fff 58%, #fff 63%, transparent 63%) 0 0 / 100% 100%,
    linear-gradient(35deg, transparent 30%, #fff 30%, #fff 34%, transparent 34%) 0 0 / 100% 100%,
    #dfe9e2;
}
.map .bus { position: absolute; left: 44%; top: 50%; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(232, 144, 12, 0.22); display: grid; place-items: center; color: #fff; font-size: 13px; animation: drive 6s ease-in-out infinite alternate; }
@keyframes drive { from { transform: translate(-38px, 26px); } to { transform: translate(18px, -16px); } }
.live { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--green); }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ───────────── trust strip ───────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--brand); }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ───────────── sections ───────────── */
section { padding: 88px 0; }
section.alt { background: var(--bg-soft); }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.sec-head h2, section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-top: 10px; }
.sec-sub { font-size: 18px; color: var(--slate); margin-top: 14px; }

/* the three products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border-top: 4px solid var(--c, var(--brand));
}
.product .p-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand)) 12%, #fff); color: var(--c, var(--brand)); }
.product .p-icon svg { width: 26px; height: 26px; }
.product h3 { font-size: 22px; margin-top: 18px; }
.product .who { font-size: 13px; font-weight: 700; color: var(--c, var(--brand)); margin-top: 4px; }
.product p.desc { color: var(--slate); margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--c, var(--brand)) 16%, #fff); }
.ticks li::after { content: ''; position: absolute; left: 5px; top: 7px; width: 4px; height: 7px; border: solid var(--c, var(--brand)); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.product .foot { margin-top: auto; padding-top: 22px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* feature rows (alternating text and picture) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .f-text { order: 2; }
.f-text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-top: 10px; }
.f-text p { color: var(--slate); font-size: 17px; margin-top: 14px; }
.f-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; border-radius: 24px; background: linear-gradient(160deg, var(--brand-soft), #f3fbfe); border: 1px solid var(--line); }
.f-visual .phone { position: relative; transform: none; right: auto; bottom: auto; }
.f-visual .float {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 12px 14px; font-size: 13px; max-width: 230px; border: 1px solid var(--line);
}
.float b { display: block; font-size: 13.5px; }
.float .n-app { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.float .n-app img { width: 16px; height: 16px; border-radius: 4px; }
.f1 { top: 34px; left: 22px; }
.f2 { bottom: 40px; right: 18px; }

/* module grid */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mod {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.mod:hover { border-color: color-mix(in srgb, var(--c, var(--brand)) 45%, #fff); box-shadow: var(--shadow); transform: translateY(-2px); }
.mod .m-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand)) 12%, #fff); color: var(--c, var(--brand)); }
.mod .m-icon svg { width: 21px; height: 21px; }
.mod b { display: block; margin-top: 14px; font-size: 16px; }
.mod span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* role tabs */
.roles { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.role-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; font-size: 15px; color: var(--slate); cursor: pointer; }
.role-tab[aria-selected='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.role-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.role-panel[hidden] { display: none; }
.role-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; gap: 14px; }
.role-item .num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.role-item h4 { font-size: 16.5px; }
.role-item p { color: var(--slate); font-size: 15px; margin-top: 4px; }

/* security cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card h3 { font-size: 18px; }
.card p { color: var(--slate); margin-top: 8px; font-size: 15.5px; }
.card .m-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand)) 12%, #fff); color: var(--c, var(--brand)); margin-bottom: 14px; }
.card .m-icon svg { width: 21px; height: 21px; }
.callout { background: var(--brand-soft); border-radius: 16px; padding: 20px 24px; color: var(--ink); font-size: 15.5px; border: 1px solid #d5e3ff; }

/* tables (privacy page) */
table.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
table.cmp th, table.cmp td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--slate); margin-top: 10px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #0a3fc2, var(--brand) 55%, #149ad8); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: 17px; margin-top: 12px; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn-white { background: #fff; color: var(--brand); }

/* enquiry form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d6dde8; border-radius: 10px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, #fff); border-color: var(--brand); }
#form-status { margin-top: 12px; font-size: 14.5px; font-weight: 600; }
#form-status.ok { color: var(--green); }
#form-status.err { color: var(--red); }
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.contact-list .m-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.contact-list .m-icon svg { width: 20px; height: 20px; }

/* footer */
footer { background: #071431; color: #b8c3da; padding: 64px 0 30px; font-size: 15px; }
footer .brand { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.foot-links { display: grid; gap: 9px; }
.foot-links a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }

/* ───────────── small screens ───────────── */
@media (max-width: 1020px) {
  .hero-grid, .feature, .cta-band, .grid-2 { grid-template-columns: 1fr; }
  .feature.flip .f-text { order: 0; }
  .hero-visual { min-height: 440px; }
  .products { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .role-panel { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: block; }
  nav { gap: 12px; }
  .nav-cta { margin-left: auto; }
  header.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 24px 18px; margin: 0;
  }
  header.open .nav-links a { padding: 10px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding-top: 44px; }
  .window { inset: 0 0 90px 0; }
  .window-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .phone-b { display: none; }
  .phone-a { right: 8px; transform: rotate(2deg) scale(0.88); transform-origin: bottom right; }
  .modules { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 22px; border-radius: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .f-visual { min-height: 420px; }
  .f1 { left: 10px; top: 14px; }
  .f2 { right: 10px; bottom: 14px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map .bus { animation: none; }
  .btn:hover, .mod:hover { transform: none; }
}
