@font-face{font-family:"Inter";font-weight:400;font-style:normal;font-display:swap;src:url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-weight:500;font-style:normal;font-display:swap;src:url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-weight:600;font-style:normal;font-display:swap;src:url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-weight:700;font-style:normal;font-display:swap;src:url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-weight:800;font-style:normal;font-display:swap;src:url("../assets/fonts/inter-latin-800-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow Semi Condensed";font-weight:600;font-style:normal;font-display:swap;src:url("../assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow Semi Condensed";font-weight:700;font-style:normal;font-display:swap;src:url("../assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Caveat";font-weight:600;font-style:normal;font-display:swap;src:url("../assets/fonts/caveat-latin-600-normal.woff2") format("woff2")}

/* ITR Integrated Technologies Ltd. - hero page
   Sizing: 1rem = 10px at a 1672px-wide screen, scaling with viewport width. */

:root {
  --cyan: #18dcf2;
  --blue-a: #1f94ff;
  --blue-b: #0a58ff;
  --text: #ffffff;
  --muted: #b8c3dd;
  --card-a: rgba(24, 48, 118, .55);
  --card-b: rgba(8, 22, 66, .65);
  --card-bd: rgba(96, 140, 255, .30);
  --strip-a: #0b2254;
  --strip-b: #07163c;
  --nav-text: #ffffff;
  --sep: rgba(255, 255, 255, .26);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "Barlow Semi Condensed", "Arial Narrow", "Inter", sans-serif;
}

body.light {
  --text: #0a1c4d;
  --muted: #44567f;
  --card-a: rgba(255, 255, 255, .85);
  --card-b: rgba(232, 240, 255, .85);
  --card-bd: rgba(30, 90, 220, .25);
  --strip-a: #dfe9fb;
  --strip-b: #cfdcf5;
  --nav-text: #0a1c4d;
  --sep: rgba(10, 28, 77, .25);
}

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

html { font-size: .598vw; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #030816;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.light { background: #e8f0ff; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

.ic {
  width: 2.4rem; height: 2.4rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: .25rem solid var(--cyan); outline-offset: .3rem; }

/* ================= PAGE + BACKGROUND ================= */
.page {
  position: relative;
  min-height: 56.3vw;
  overflow: hidden;
  background: linear-gradient(118deg, #030816 0%, #061438 42%, #0a2366 100%);
}
body.light .page { background: linear-gradient(118deg, #f4f8ff 0%, #dfeaff 50%, #c9dcff 100%); }

.bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52rem 38rem at 63% 40%, rgba(24, 100, 255, .38), transparent 70%),
    radial-gradient(44rem 34rem at 88% 32%, rgba(40, 120, 255, .28), transparent 70%),
    radial-gradient(40rem 26rem at 8% 6%, rgba(20, 90, 255, .16), transparent 70%);
}
.bg-bokeh { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background:
    radial-gradient(circle at 76% 18%, rgba(120, 170, 255, .35) 0 1.2rem, transparent 1.4rem),
    radial-gradient(circle at 83% 12%, rgba(120, 170, 255, .25) 0 .9rem, transparent 1.1rem),
    radial-gradient(circle at 94% 20%, rgba(150, 190, 255, .28) 0 1.6rem, transparent 1.8rem),
    radial-gradient(circle at 70% 30%, rgba(90, 150, 255, .22) 0 1rem, transparent 1.2rem),
    radial-gradient(circle at 97% 9%, rgba(120, 170, 255, .22) 0 .8rem, transparent 1rem);
  filter: blur(.25rem);
}
.bg-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(120, 160, 255, .18) .1rem, transparent .12rem);
  background-size: 3.2rem 3.2rem;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0, transparent 60%);
}
body.light .bg-bokeh, body.light .bg-grid { opacity: .25; }

/* ================= HEADER ================= */
.header {
  position: relative; z-index: 20;
  display: flex; align-items: center;
  height: 12rem; padding: 0 3.4rem 0 6.4rem;
}
.brand { display: flex; align-items: center; gap: 2.3rem; color: #fff; text-decoration: none; }
.brand-mark { width: 6.6rem; height: 8.1rem; filter: drop-shadow(0 0 1.4rem rgba(40, 200, 255, .35)); }
body.light .brand-mark use[href="#mk-main"] { fill: #0f2f5e; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-cond); text-transform: uppercase; line-height: 1; }
.brand-text strong { font-size: 3rem; font-weight: 700; letter-spacing: .005em; }
.brand-text span { font-size: 2rem; font-weight: 600; margin-top: .25rem; letter-spacing: .01em; }
body.light .brand-text { color: #0a1c4d; }
.brand-divider { width: .1rem; height: 5.4rem; background: var(--sep); margin: 0 3.3rem 0 3.6rem; }
.brand-tag { font-size: 1.95rem; font-style: italic; color: var(--text); white-space: nowrap; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 3.2rem; font-size: 1.8rem; font-weight: 600; }
.nav-pill, .nav-link, .nav-cta { display: inline-flex; align-items: center; gap: 1rem; white-space: nowrap; text-decoration: none; color: var(--nav-text); }
.nav-pill { height: 4.8rem; padding: 0 3.1rem; border-radius: 99rem; color: #fff;
  background: linear-gradient(180deg, #2a9bff, #0b5cff);
  box-shadow: 0 0 2.4rem rgba(20, 110, 255, .65), inset 0 .1rem 0 rgba(255, 255, 255, .35); }
.nav-pill .ic { width: 2.5rem; height: 2.5rem; }
.nav-link { height: 4.8rem; transition: color .2s; }
.nav-link:hover { color: var(--cyan); }
.nav-link .chev { width: 1.7rem; height: 1.7rem; margin-left: -.2rem; transition: transform .2s; }
.dd { position: relative; }
.dd.open .chev { transform: rotate(180deg); }

.dd-menu {
  position: absolute; top: calc(100% + .6rem); left: -1.6rem; min-width: 29rem; padding: 1rem;
  background: rgba(8, 20, 60, .96); border: 1px solid var(--card-bd); border-radius: 1.4rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .45); backdrop-filter: blur(1.2rem);
  opacity: 0; visibility: hidden; transform: translateY(-.6rem); transition: .18s;
}
.dd:hover .dd-menu, .dd.open .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu button, .dd-menu a { display: block; width: 100%; text-align: left; padding: 1.2rem 1.4rem; border-radius: .9rem; font-size: 1.6rem; font-weight: 500; color: #e6edff; }
.dd-menu button:hover, .dd-menu a:hover { background: rgba(40, 110, 255, .35); color: #fff; }

.theme { width: 4.4rem; height: 4.4rem; display: grid; place-items: center; color: #ffe9a8; margin: 0 -.4rem 0 .2rem; }
.theme .ic { width: 2.8rem; height: 2.8rem; }
body.light .theme { color: #e08a00; }
.nav-cta { height: 4.8rem; padding: 0 2rem; border-radius: 99rem; border: .15rem solid #1b8cff;
  background: rgba(10, 50, 140, .28); color: #fff; box-shadow: 0 0 1.8rem rgba(30, 130, 255, .35); transition: background .2s; }
body.light .nav-cta { color: #0a1c4d; background: rgba(255, 255, 255, .7); }
.nav-cta .ic { color: var(--cyan); }
.nav-cta:hover { background: rgba(30, 130, 255, .45); }
.burger { display: none; margin-left: auto; width: 4.6rem; height: 4.6rem; place-items: center; color: var(--text); }

/* ================= HERO CAROUSEL ================= */
.landscape-hero {
  position: relative;
  width: 100%;
  height: 78vh;        /* fills most of the screen without being oversized */
  min-height: 520px;   /* never collapses on short screens */
  max-height: 820px;   /* caps it on very tall screens */
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Each slide fills the hero and crossfades as a whole (bg + text) */
.slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Background image per slide */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Tint / overlay per slide — brand-matched navy/blue */
.slide-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.tint-blue {
  background: linear-gradient(to right, rgba(13, 27, 42, 0.45), rgba(13, 27, 42, 0.88));
}
.tint-navy {
  background: linear-gradient(to right, rgba(10, 25, 47, 0.60), rgba(10, 25, 47, 0.92));
}
.tint-slate {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.90));
}

/* Text block on the right, like the original */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 6.4rem;
  display: flex;
  justify-content: flex-end;
}

.hero-text-block {
  max-width: 52rem;
  text-align: left;
  color: #fff;
}

.hero-tag {
  display: block;
  font-size: 1.4rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-cond);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 1.6rem;
  color: #fff;
}
.hero-title em { font-style: normal; color: var(--cyan); }

.hero-desc {
  font-size: 1.8rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 2.6rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid transparent;
  padding-bottom: .3rem;
  text-decoration: none;
  transition: border-color .25s, color .25s;
}
.hero-cta:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-cta .ic { width: 2rem; height: 2rem; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 3.2rem;
  right: 6.4rem;
  z-index: 5;
  display: flex;
  gap: 1.2rem;
}
.dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.dot.active {
  background: var(--cyan);
  box-shadow: 0 0 1rem var(--cyan);
  transform: scale(1.35);
}

/* ================= SERVICE CARDS ================= */
.services {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.3rem;
  padding: 0 4.7rem 0 5.7rem; margin-top: 4.8rem;
}
.card {
  text-decoration: none;
  position: relative; display: flex; align-items: flex-start; gap: 2.2rem; text-align: left;
  height: 13.9rem; padding: 3rem 2.4rem 0 2.3rem; color: var(--text);
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  border: .1rem solid var(--card-bd); border-radius: 1.6rem; backdrop-filter: blur(.8rem);
  box-shadow: inset 0 .1rem 0 rgba(255, 255, 255, .08);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: rgba(60, 200, 255, .8); box-shadow: 0 0 2.6rem rgba(30, 140, 255, .35); transform: translateY(-.3rem); }
.card .big { width: 5rem; height: 5rem; color: #29d0f2; stroke-width: 1.4; margin-top: .2rem; }
.card-body { display: flex; flex-direction: column; }
.card-body strong { font-size: 1.95rem; font-weight: 600; line-height: 1.17; letter-spacing: -.01em; }
.card-body small { margin-top: 1.5rem; font-size: 1.42rem; line-height: 1.3; color: var(--muted); max-width: 15rem; }
.card.wide small { max-width: 18.5rem; }
.go { position: absolute; right: 1.7rem; bottom: 2.6rem; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%; border: .1rem solid rgba(170, 195, 255, .6); color: #cfe0ff; }
.go .ic { width: 1.6rem; height: 1.6rem; }
body.light .go { color: #0a1c4d; border-color: rgba(10, 28, 77, .4); }
.card:hover .go { background: var(--blue-b); border-color: var(--blue-b); color: #fff; }

/* ================= TRUSTED BY ================= */
.trust {
  position: relative; z-index: 10;
  display: flex; align-items: center;
  height: 14.1rem; margin-top: .4rem; padding: 1.8rem 0 0 5.7rem;
  background: linear-gradient(180deg, var(--strip-a), var(--strip-b));
  clip-path: polygon(0 0, 14% 1.8rem, 100% 1.8rem, 100% 100%, 0 100%);
}
.trust-label { flex: 0 0 39.2rem; display: flex; align-items: center; gap: 1.6rem; font-size: 1.72rem; font-weight: 600; color: var(--text); }
.trust-label i { width: 4.2rem; height: .3rem; background: var(--cyan); box-shadow: 0 0 1rem var(--cyan); }
.logos { display: flex; align-items: center; }
.logos li { display: flex; align-items: center; justify-content: center; height: 5.2rem; border-left: .1rem solid var(--sep); color: #fff; }
body.light .logos li { color: #0a1c4d; }
.logos li:first-child { border-left-color: var(--sep); }
.lg-jaiz { width: 16.9rem; gap: .3rem; position: relative; }
.jaiz-word { font-family: "Caveat", "Segoe Script", cursive; font-size: 4.6rem; font-weight: 600; line-height: 1; margin-top: -.4rem; }
.jaiz-icon { width: 1.9rem; height: 1.9rem; position: absolute; left: 10.9rem; top: .5rem; }
.lg-jaiz small { font-size: 1.15rem; align-self: flex-end; margin: 0 0 .5rem .1rem; font-weight: 500; }
.lg-pm { width: 24rem; gap: 1rem; font-size: 2.15rem; font-weight: 600; letter-spacing: -.01em; }
.lg-pm svg { width: 4rem; height: 4rem; }
.lg-pm sup, .ui-path sup { font-size: .9rem; vertical-align: top; position: relative; top: .3rem; }
.lg-pay { width: 23.3rem; gap: 1.1rem; font-size: 2.5rem; font-weight: 700; letter-spacing: -.02em; }
.lg-pay svg { width: 3.8rem; height: 3.8rem; }
.lg-n8n { width: 18.1rem; gap: 1.1rem; font-size: 2.5rem; font-weight: 600; color: #aab0c2; }
.lg-n8n svg { width: 6.2rem; height: 3.6rem; }
.lg-ui { width: 17.8rem; gap: .7rem; color: #9aa3b8; }
.ui-box { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border: .3rem solid #9aa3b8; border-radius: .4rem; font-size: 2.2rem; font-weight: 800; }
.ui-path { font-size: 3.1rem; font-weight: 700; letter-spacing: -.02em; }
.lg-more { width: 22.2rem; font-size: 1.55rem; font-weight: 500; }

/* ================= DIALOGS ================= */
dialog { border: .1rem solid rgba(110, 160, 255, .4); border-radius: 2rem; padding: 0; width: min(52rem, calc(100vw - 3.2rem)); color: #fff;
  background: linear-gradient(170deg, #0c1d52, #060f30); box-shadow: 0 3rem 8rem rgba(0, 0, 0, .6); font-size: 1.6rem; }
dialog::backdrop { background: rgba(2, 6, 20, .72); backdrop-filter: blur(.5rem); }
dialog form, .story { position: relative; padding: 3.2rem; display: flex; flex-direction: column; gap: 1.5rem; }
dialog { font-size: 16px; }
dialog h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.dlg-sub { color: #b8c3dd; margin-top: -.6rem; font-size: 15px; }
.story p { color: #c9d4ee; line-height: 1.55; font-size: 15.5px; }
.story .btn { width: auto; align-self: flex-start; padding: 0 28px; height: 52px; font-size: 16px; }
dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #d6e2ff; }
dialog input, dialog select, dialog textarea {
  font: inherit; font-weight: 400; color: #fff; padding: 12px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(130, 170, 255, .35);
}
dialog select option { color: #0a1c4d; }
dialog textarea { resize: vertical; }
dialog input:focus, dialog select:focus, dialog textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.dlg-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #cfe0ff; }
.dlg-x:hover { background: rgba(255, 255, 255, .12); }
.dlg-x .ic { width: 20px; height: 20px; }
dialog .btn .ic { width: 20px; height: 20px; }
dialog .btn.primary { height: 52px; font-size: 16px; }
.form-msg { min-height: 1.2em; font-size: 14px; color: #ff9aa8; }
.form-msg.ok { color: #7ee787; }
#storyMedia video { width: 100%; border-radius: 12px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1099px) {
  html { font-size: 8px; }
  .page { min-height: 0; }
  .header { height: auto; padding: 2rem 2.4rem; flex-wrap: wrap; row-gap: 1rem; }
  .brand-divider, .brand-tag { display: none; }
  .burger { display: grid; }
  .nav { display: none; position: absolute; top: 100%; left: 2rem; right: 2rem; margin: 0; flex-direction: column; align-items: stretch; gap: .4rem; padding: 1.6rem; z-index: 40;
    background: rgba(6, 16, 50, .97); border: 1px solid var(--card-bd); border-radius: 1.6rem; font-size: 2rem; }
  .nav.open { display: flex; }
  .nav-pill, .nav-link, .nav-cta { height: 5.6rem; justify-content: flex-start; padding: 0 2rem; color: #fff; }
  .nav-cta { justify-content: center; margin-top: .6rem; }
  .theme { align-self: flex-start; margin: 0; color: #ffe9a8; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 3rem; min-width: 0; }
  .dd.open .dd-menu { display: block; }
  .dd:hover .dd-menu { display: none; }
  .dd.open:hover .dd-menu { display: block; }

  .landscape-hero { height: auto; min-height: 540px; padding: 10rem 0 6rem; }
  .hero-content-wrapper { justify-content: center; padding: 0 3rem; text-align: center; }
  .hero-text-block { text-align: center; max-width: 62rem; }
  .hero-title { font-size: 4rem; }
  .slider-dots { right: 50%; transform: translateX(50%); bottom: 2rem; }

  .services { grid-template-columns: repeat(2, 1fr); padding: 0 2.8rem; margin-top: 2rem; }
  .card, .card.wide { height: 15rem; }
  .trust { height: auto; flex-direction: column; align-items: flex-start; gap: 2rem; padding: 4.4rem 2.8rem 3rem; clip-path: none; margin-top: 4rem; }
  .trust-label { flex-basis: auto; }
  .logos { flex-wrap: wrap; row-gap: 2rem; }
  .logos li { border-left: 0; }
}

@media (max-width: 700px) {
  html { font-size: 6.4px; }
  .hero-title { font-size: 3.4rem; }
  .hero-desc { font-size: 1.7rem; }
  .services { grid-template-columns: 1fr; }
  .card, .card.wide { height: 14rem; }
  .card-body small, .card.wide small { max-width: 30rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}