/* =========================================================
   MyTech Solutions - Design System
   Navy #0F2A47 | Teal-Cyan #0E9CA8 | Magenta accent
   ========================================================= */

:root {
  --navy-900: #071A2E;
  --navy-800: #0F2A47;
  --navy-700: #163C58;
  --navy: #0F2A47;
  --slate-700: #33475B;
  --slate-500: #5A6B7D;
  --slate-300: #C7D1DB;
  --grey-100: #F5F7FA;
  --grey-200: #E7ECF2;
  --white: #FFFFFF;
  --accent: #0E9CA8;
  --accent-dark: #0A7C86;
  --accent-soft: #E6F6F7;
  --magenta: #C2185B;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --max: 1200px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 46, .06);
  --shadow-md: 0 8px 24px rgba(7, 26, 46, .08);
  --sp-section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--sp-section) 0; }
.section--tight { padding: 64px 0; }
.section--grey { background: var(--grey-100); }
.section--navy { background: var(--navy-800); color: #D7E2EC; }
.section--navy h2, .section--navy h3 { color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 14px;
  display: block;
}
.section--navy .eyebrow { color: #4FD3DE; }
.lead { font-size: 1.14rem; color: var(--slate-500); max-width: 68ch; }
.section--navy .lead { color: #AFC2D3; }
.section-head { max-width: 780px; margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; min-height: 48px;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent-dark); color: #fff; }
.btn--primary:hover { background: #085a62; color: #fff; }
.btn--outline { border-color: var(--slate-300); color: var(--navy); background: transparent; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--sm { padding: 10px 18px; min-height: 42px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.textlink { font-weight: 600; color: var(--accent-dark); display: inline-flex; gap: 6px; }
.textlink::after { content: "\2192"; transition: transform .18s ease; }
.textlink:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--grey-200);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 82px; }
.brand { display: flex; align-items: center; flex: none; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 148px; height: auto; max-height: 62px; object-fit: contain; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--radius);
  color: var(--navy); font-weight: 500; font-size: .95rem;
}
.nav__link:hover { background: var(--grey-100); text-decoration: none; color: var(--accent-dark); }
.nav__link[aria-current="page"] { color: var(--accent-dark); }
.nav__item { position: relative; }
.nav__toggle { background: none; border: 0; font: inherit; cursor: pointer; }
.nav__caret { width: 10px; height: 10px; }
.nav__panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 290px; background: #fff; border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 10px;
  list-style: none; margin: 0;
}
.nav__item--open .nav__panel { display: block; }
.nav__panel a { display: block; padding: 10px 12px; border-radius: var(--radius); color: var(--navy); font-size: .93rem; }
.nav__panel a:hover { background: var(--accent-soft); text-decoration: none; color: var(--accent-dark); }
.nav__panel span { display: block; font-size: .8rem; color: var(--slate-500); }
.header-cta { margin-left: 8px; }

.nav-burger {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1px solid var(--grey-200); border-radius: var(--radius);
  background: #fff; cursor: pointer; padding: 12px;
}
.nav-burger span { display: block; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

@media (max-width: 1180px) {
  html, body { overflow-x: hidden; }
  .nav-burger { display: block; }
  .nav {
    /* Fixed top/right + explicit height (not top+bottom stretch): .site-header sets
       backdrop-filter, which makes it the containing block for this fixed-position
       child, so a bottom:0 inset resolves against the 82px header box instead of the
       viewport and collapses the panel. height:100dvh sidesteps that. */
    position: fixed; top: 82px; right: 0; left: auto;
    height: calc(100dvh - 82px); width: min(400px, 88vw);
    background: #fff; border-left: 1px solid var(--grey-200);
    padding: 18px; overflow-y: auto; transform: translateX(100%);
    transition: transform .25s ease, visibility .25s ease; margin: 0;
    visibility: hidden; z-index: 50;
  }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; }
  .nav__panel { position: static; display: none; box-shadow: none; border: 0; border-left: 2px solid var(--grey-200); border-radius: 0; margin: 2px 0 8px 12px; padding: 0 0 0 6px; }
  .nav__item--open .nav__panel { display: block; }
  .header-cta { margin: 14px 0 0; width: 100%; }
}

/* ---------- Homepage slider ---------- */
.hero-slider {
  position: relative; min-height: min(680px, calc(100vh - 82px));
  color: #E4EDF5; background: var(--navy-900); overflow: hidden;
  touch-action: pan-y;
}
.hero-slide {
  position: absolute; inset: 0; display: grid; visibility: hidden;
  opacity: 0; transition: opacity .7s ease, visibility .7s ease;
}
.hero-slide.is-active { position: relative; visibility: visible; opacity: 1; z-index: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,26,46,.96) 0%, rgba(7,26,46,.82) 48%, rgba(7,26,46,.3) 100%);
}
.hero-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: min(680px, calc(100vh - 82px)); padding-top: 88px; padding-bottom: 120px; }
.hero-slide__content { max-width: 820px; }
.hero-slide h1, .hero-slide h2 { color: #fff; font-size: clamp(2.25rem, 4.6vw, 4.2rem); max-width: 16ch; margin-bottom: 24px; }
.hero-slide h1 em, .hero-slide h2 em { font-style: normal; color: #4FD3DE; }
.hero-slide__lead { font-size: 1.2rem; color: #D1DFEA; max-width: 61ch; margin-bottom: 30px; }
.hero-slider__controls {
  position: absolute; z-index: 3; left: 50%; bottom: 42px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; pointer-events: none;
}
.hero-slider__arrow, .hero-slider__dot, .hero-slider__play { pointer-events: auto; cursor: pointer; }
.hero-slider__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255,255,255,.38); border-radius: 50%;
  background: rgba(7,26,46,.55); color: #fff; font-size: 1.15rem;
  transition: background .18s ease, border-color .18s ease;
}
.hero-slider__arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-slider__dots { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 999px; background: rgba(7,26,46,.55); }
.hero-slider__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.42); transition: width .2s ease, background .2s ease; }
.hero-slider__dot.is-active { width: 28px; border-radius: 10px; background: #4FD3DE; }
.hero-slider__play {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; margin-left: 2px;
  border: 1px solid rgba(255,255,255,.38); border-radius: 50%;
  background: rgba(7,26,46,.55); color: #fff;
  transition: background .18s ease, border-color .18s ease;
}
.hero-slider__play:hover { background: var(--accent); border-color: var(--accent); }
.hero-slider__play svg { width: 14px; height: 14px; }
.hero-slider__play .icon-pause { display: none; }
.hero-slider.is-playing .hero-slider__play .icon-play { display: none; }
.hero-slider.is-playing .hero-slider__play .icon-pause { display: block; }
.hero-slider__progress { position: absolute; z-index: 3; inset: auto 0 0; height: 3px; background: rgba(255,255,255,.15); }
.hero-slider__progress span { display: block; width: 0; height: 100%; background: var(--accent); }
.hero-slider.is-playing .hero-slider__progress span { animation: slider-progress 7s linear forwards; }
@keyframes slider-progress { from { width: 0; } to { width: 100%; } }
.page-hero { background: var(--navy-800); color: #D7E2EC; }
.page-hero__inner { padding: 76px 0 72px; max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #B7C9D9; font-size: 1.13rem; }

.breadcrumb { font-size: .85rem; color: #8FA7BC; margin-bottom: 18px; }
.breadcrumb a { color: #B7C9D9; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  padding: 26px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--slate-500); font-size: .96rem; margin-bottom: .8em; }
.card__icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-dark);
}
.card__icon svg { width: 22px; height: 22px; }
.card--plain:hover { transform: none; box-shadow: none; border-color: var(--grey-200); }
.card--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.card--dark p { color: #AFC2D3; }
.card--dark:hover { border-color: #4FD3DE; box-shadow: none; }

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: .97rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent);
}
.col-list { columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .col-list { columns: 1; } }

/* ---------- Split media ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } .split--reverse .split__media { order: 0; } }
.split__media img { border-radius: var(--radius-lg); border: 1px solid var(--grey-200); }

/* ---------- Stats / credibility ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grey-200); border: 1px solid var(--grey-200); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 780px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; padding: 26px; }
.stat__value { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); font-weight: 700; }
.stat__label { font-size: .9rem; color: var(--slate-500); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chip {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .03em;
  padding: 9px 14px; border: 1px solid var(--grey-200); border-radius: 999px;
  background: #fff; color: var(--navy);
}
.section--navy .chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: #DCE7F0; }
.section--grey .chip { background: #fff; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { border-top: 2px solid var(--accent); padding-top: 16px; }
.step__num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-dark); }
.step h3 { font-size: 1rem; margin: 6px 0 4px; }
.step p { font-size: .88rem; color: var(--slate-500); margin: 0; }
.section--navy .step p { color: #AFC2D3; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--grey-200); font-size: .95rem; }
th { font-family: var(--font-head); color: var(--navy); background: var(--grey-100); }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--grey-200); }
.faq__item { border-bottom: 1px solid var(--grey-200); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  background: none; border: 0; padding: 20px 4px; cursor: pointer;
  font-family: var(--font-head); font-size: 1.03rem; color: var(--navy); text-align: left;
}
.faq__q::after { content: "+"; font-size: 1.4rem; color: var(--accent-dark); line-height: 1; }
.faq__q[aria-expanded="true"]::after { content: "\2013"; }
.faq__a { display: none; padding: 0 4px 22px; color: var(--slate-500); font-size: .97rem; max-width: 78ch; }
.faq__a[data-open="true"] { display: block; }

/* ---------- Forms ---------- */
.form { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field .req { color: var(--magenta); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--navy);
  padding: 12px 14px; border: 1px solid var(--slate-300); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.field .error { font-size: .82rem; color: var(--magenta); min-height: 1em; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--magenta); }
.form__note { font-size: .85rem; color: var(--slate-500); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: .93rem; display: none; }
.form-status[data-state="ok"] { display: block; background: var(--accent-soft); color: #0A5B62; }
.form-status[data-state="err"] { display: block; background: #FDE7EF; color: #8E1240; }
.fieldset { border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 20px; grid-column: 1/-1; }
.fieldset legend { font-family: var(--font-head); color: var(--navy); font-size: .95rem; padding: 0 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #0F2A47, #0A5B62); color: #fff; }
.cta-band .container { padding-top: 76px; padding-bottom: 76px; }
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: #C3D5E3; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #A9BDCE; font-size: .93rem; padding: 68px 0 28px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #A9BDCE; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .86rem;
}
.social { display: flex; gap: 12px; }
.social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; display: grid; place-items: center; }
.social svg { width: 17px; height: 17px; }
.placeholder-note {
  display: inline-block; font-family: var(--font-mono); font-size: .74rem;
  background: #FFF4E5; color: #8A5A00; border: 1px dashed #E0A93C;
  padding: 3px 8px; border-radius: 4px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
  .hero-slide { transition: none; }
  .hero-slider__progress { display: none; }
}

@media (max-width: 720px) {
  :root { --sp-section: 60px; }
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .brand__logo { width: 128px; max-height: 54px; }
  .nav { top: 72px; height: calc(100dvh - 72px); }
  .hero-slider, .hero-slide__inner { min-height: 620px; }
  .hero-slide::after { background: linear-gradient(90deg, rgba(7,26,46,.95), rgba(7,26,46,.66)); }
  .hero-slide__inner { align-items: flex-start; padding-top: 76px; padding-bottom: 110px; }
  .hero-slide h1, .hero-slide h2 { font-size: 2.35rem; max-width: 14ch; }
  .hero-slide__lead { font-size: 1.05rem; line-height: 1.55; }
  .hero-slider__controls { bottom: 32px; }
}