/* ==========================================================================
   ARCSys Technologies — Brand Stylesheet
   Built from the ARCSys Brand Guidelines (Mar 2026).
   Palette, typography (Public Sans), and the signature dotted "swirl".
   ========================================================================== */

/* ---- Brand tokens ------------------------------------------------------- */
:root {
  /* Core palette */
  --blue: #004b98;        /* Primary Blue */
  --yellow: #ffc424;      /* Accent Yellow */
  --black: #000000;
  --white: #ffffff;

  /* Secondary palette */
  --gray: #76787b;
  --dark-blue: #1f1e4a;
  --light-azure: #e3f4ff;
  --vivid-blue: #054994;
  --orange: #f9c36a;

  /* Functional */
  --ink: #15171c;             /* body text */
  --ink-soft: #4a4d55;        /* secondary text */
  --line: #e4e8ee;            /* hairlines / borders */
  --bg: #ffffff;
  --bg-alt: #f5f8fc;          /* soft section bg */
  --navy-deep: #06122b;       /* hero base */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(6, 18, 43, 0.10);
  --shadow-lg: 0 30px 70px rgba(6, 18, 43, 0.18);
  --maxw: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--vivid-blue); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-weight: 700;
  font-size: .78rem; color: var(--blue); margin: 0 0 .8rem;
}
.eyebrow.on-dark { color: var(--yellow); }

/* ---- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-deep); color: #dfe7f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.measure { max-width: 70ch; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.text-yellow { color: var(--yellow); }
.text-blue { color: var(--blue); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--black); box-shadow: 0 8px 24px rgba(255, 196, 36, .35); }
.btn--primary:hover { color: var(--black); box-shadow: 0 12px 30px rgba(255, 196, 36, .5); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { color: #fff; background: var(--vivid-blue); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-deep); }
.btn .arrow { transition: transform .15s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Header / Navigation (multi-level dropdown)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* Brand lockup */
.brand { display: flex; align-items: center; gap: 11px; }
.brand__swirl { width: 38px; height: 38px; flex: none; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.42rem; font-weight: 800; letter-spacing: -.01em; }
.brand__name .arc { color: var(--blue); }
.brand__name .sys { color: var(--yellow); }
.brand__tag {
  font-size: .58rem; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gray); margin-top: 3px;
}

/* Menu */
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a,
.menu > li > .menu-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: 8px; line-height: 1;
}
.menu > li > a:hover,
.menu > li > .menu-trigger:hover { color: var(--blue); background: var(--bg-alt); }
.menu .caret { width: 9px; height: 9px; transition: transform .2s var(--ease); }
.menu li[data-open="true"] > .menu-trigger .caret { transform: rotate(180deg); }

/* Dropdown panels */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 248px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  list-style: none; margin: 0;
}
/* second level opens to the right */
.dropdown .dropdown { top: -9px; left: calc(100% + 6px); }

.menu li[data-open="true"] > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown > li { position: relative; }
.dropdown > li > a,
.dropdown > li > .menu-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  font: inherit; font-weight: 600; text-align: left;
  color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: 11px 13px; border-radius: 8px;
}
.dropdown > li > a:hover,
.dropdown > li > .menu-trigger:hover { background: var(--light-azure); color: var(--blue); }
.dropdown .dd-desc { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }
.dropdown .chev { width: 8px; height: 8px; flex: none; opacity: .6; }

.nav__cta { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; border-radius: 8px; padding: 10px;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -7px; width: 100%; }
.nav__toggle span::after { position: absolute; top: 7px; width: 100%; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero — dark navy with constellation network + swirl
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(0, 75, 152, .55), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(31, 30, 74, .6), transparent 55%),
    linear-gradient(160deg, #06122b 0%, #0a1f44 55%, #06122b 100%);
  color: #eaf1fb;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .9; }
.hero__swirl {
  position: absolute; right: -90px; top: 50%; transform: translateY(-50%);
  width: min(620px, 70vw); opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
          mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(70px, 12vw, 140px) 0 clamp(70px, 11vw, 130px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .sys { color: var(--yellow); }
.hero__sub { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; color: #fff; max-width: 30ch; margin: 0 0 .4rem; }
.hero__note { color: #aebfd8; max-width: 44ch; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 6vw, 70px); }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--yellow); line-height: 1; }
.stat__label { font-size: .92rem; color: #aebfd8; margin-top: 6px; }

/* Page hero (interior pages) */
.page-hero {
  background:
    radial-gradient(900px 500px at 85% -20%, rgba(0,75,152,.5), transparent 60%),
    linear-gradient(160deg, #06122b 0%, #0a1f44 100%);
  color: #eaf1fb; position: relative; overflow: hidden;
}
.page-hero__swirl { position: absolute; right: -60px; bottom: -120px; width: 380px; opacity: .35; pointer-events: none; }
.page-hero__inner { position: relative; z-index: 2; padding: clamp(56px, 9vw, 104px) 0; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #b9c8e0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #9fb2d0; margin-bottom: 18px; list-style: none; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: #5c6f90; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: #cfe0f7; }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   Cards & components
   ========================================================================== */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--light-azure); color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin-bottom: 1rem; }
.card .card__link { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card--feature .card__icon { background: var(--blue); color: var(--yellow); }

/* Pillars (Clarity / Confidence / Control) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { text-align: center; padding: 12px; }
.pillar__big { font-size: 2rem; font-weight: 800; color: var(--blue); margin-bottom: .3rem; }
.pillar__big .text-yellow { color: var(--yellow); }

/* Split feature row */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius); min-height: 320px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, #07182f, #0c2c5c); box-shadow: var(--shadow-lg);
}
.split__media .swirl-deco { position: absolute; inset: 0; margin: auto; width: 70%; opacity: .5; }
.split__media .media-badge {
  position: absolute; left: 26px; bottom: 24px; color: #fff;
}
.split__media .media-badge .num { font-size: 2.4rem; font-weight: 800; color: var(--yellow); line-height: 1; }

/* Feature list */
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: 999px; margin-top: 2px;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800;
}

/* Logo strip / trust */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); opacity: .8; }
.trust span { font-weight: 700; color: var(--gray); letter-spacing: .02em; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--vivid-blue));
  color: #fff; border-radius: 20px; padding: clamp(40px, 6vw, 64px);
  position: relative; overflow: hidden; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6fb; max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band__swirl { position: absolute; right: -40px; top: -40px; width: 260px; opacity: .35; }

/* Stat band */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.statband .stat__num { color: var(--blue); }
.section--navy .statband .stat__num { color: var(--yellow); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,75,152,.12);
}
.contact-info { background: var(--bg-alt); border-radius: var(--radius); padding: 30px; }
.contact-info .row { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info .row svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: #b7c4da; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: #b7c4da; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name .sys { color: var(--yellow); }
.footer-brand p { color: #8ea1bd; margin-top: 14px; max-width: 34ch; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #7e90ad;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-3, .pillars, .statband { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__cta .btn--text { display: none; }
  .menu {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(86vw, 360px);
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px; overflow-y: auto; border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .25s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .menu { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .menu > li > a, .menu > li > .menu-trigger { width: 100%; justify-content: space-between; padding: 14px 12px; }
  .menu > li { border-bottom: 1px solid var(--line); }
  /* mobile: dropdowns become accordions in flow */
  .dropdown, .dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s var(--ease);
  }
  .menu li[data-open="true"] > .dropdown { max-height: 720px; }
  .dropdown > li > a, .dropdown > li > .menu-trigger { padding: 11px 12px; }
}

@media (max-width: 540px) {
  .grid-2, .grid-3, .pillars, .statband, .footer-grid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .hero__canvas { display: none; }
}
