/* ==========================================================================
   Smarttive — Landing Page
   Fonts: Alexandria (headings, 300), Bai Jamjuree (body/UI, 400/600)
   ========================================================================== */

/* ----------------------------- Design Tokens ---------------------------- */
:root {
  /* Colors */
  --navy:        #040620;
  --navy-card:   #040620;
  --green:       #0dc88e;
  --purple:      #8478ff;
  --blue:        #1020e6;
  --blue-deep:   #0a16a5;
  --gray:        #adadad;
  --gray-200:    #dbdbdb;
  --gray-100:    #e6e8f6;
  --white:       #ffffff;
  --page-bg:     #e6e8f6;   /* light lavender = white + blue@10% */

  /* Type */
  --font-head: 'Alexandria', system-ui, sans-serif;
  --font-body: 'Bai Jamjuree', system-ui, sans-serif;

  /* Layout */
  --page-w:    1440px;
  --content-w: 1332px;
  --gutter:    54px;
  --radius-card: 32px;
  --radius-sm: 6px;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ----------------------------- Utilities -------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow__slash { font-weight: 600; }
.eyebrow--green { color: var(--green); }
.eyebrow--on-light { color: rgba(4, 6, 32, .4); }        /* navy @40% */
.eyebrow--on-dark { color: rgba(255, 255, 255, .4); }    /* white @40% */
.eyebrow--on-dark .eyebrow__slash { color: rgba(255, 255, 255, .4); }

/* Section heading */
.section-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 42px;
}
.section-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn--primary { background: var(--green); color: var(--navy); }
.btn--primary:hover { background: #10dc9d; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.btn--outline:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); }

/* ================================ HERO ================================== */
.hero {
  padding: 22px;
  background: var(--page-bg);
}
.hero__card {
  position: relative;
  aspect-ratio: 1396 / 856;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  background: #040620 url("../assets/images/hero-bg.png") center / cover no-repeat;
}

/* Nav */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 32px 24px;
}
.nav__logo img { height: 37px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 24px; }
.nav__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
  color: var(--white);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: opacity .2s ease;
}
.nav__link:not(.nav__cta):hover { opacity: .7; }
.nav__cta {
  background: var(--green);
  color: var(--navy);
}
.nav__cta:hover { background: #10dc9d; }
.nav__toggle { display: none; }

/* Hero content */
.hero__content {
  position: absolute;
  z-index: 4;
  top: 27%;
  left: 0;
  padding: 0 32px;
  max-width: 60%;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 52px;
  line-height: 68px;
  color: var(--white);
  margin-top: 32px;
}
.hero__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  color: rgba(255,255,255,.8);
  max-width: 726px;
  margin-top: 32px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* =============================== ABOUT ================================== */
.about {
  background: var(--page-bg);
}
.about__inner {
  max-width: var(--page-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 712px;
  align-items: center;
  gap: 16px;
  min-height: 900px;
}
.about__text {
  padding: 40px var(--gutter);
  max-width: 712px;
}
.about__head { margin-bottom: 16px; }
.about__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 42px;
  color: var(--navy);
  margin-top: 16px;
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 604px;
}
.about__body p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: var(--navy);
}
.about__media { align-self: stretch; display: flex; align-items: center; justify-content: flex-end; }
.about__media img {
  width: 712px;
  height: 700px;
  object-fit: cover;
  border-radius: 32px 0 0 32px;
  background: var(--gray-100);
}

/* ===== Shared: dark rounded "panel" wrapper (light page around it) ===== */
.panel-section {
  padding: 22px;
  background: var(--page-bg);
}
.panel {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.panel__inner {
  position: relative;
  z-index: 2;
  max-width: calc(var(--content-w) + 64px);
  margin-inline: auto;
  padding: 32px;
}

/* Shared icon chip (accent tinted, rounded square) */
.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  flex: none;
}
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip--blue   { background: rgba(16,32,230,.10);  color: var(--blue); }
.icon-chip--purple { background: rgba(132,120,255,.10); color: var(--purple); }
.icon-chip--green  { background: rgba(13,200,142,.10); color: var(--green); }

/* =========================== THREE DOMAINS ============================= */
.domains__head { margin-bottom: 32px; }
.domains__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 42px;
  color: var(--white);
  margin-top: 24px;
}
.domains__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.domain-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 297px;
  padding: 24px;
  border-radius: 12px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.10);
}
.domain-card__text { padding-right: 32px; }
.domain-card__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 24px;
  line-height: 31px;
  color: var(--white);
  margin-bottom: 8px;
}
.domain-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: rgba(255,255,255,.6);
}

/* ============================ SIX REASONS ============================== */
.reasons { padding: 100px 0; background: var(--page-bg); }
.reasons__wrap {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 321px 1fr;
  gap: 16px;
  align-items: start;
}
/* Left column */
.reasons__aside {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
  align-self: stretch;
  min-height: 750px;
  display: flex;
  flex-direction: column;
}
.reasons__aside-head { position: relative; z-index: 2; }
.reasons__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 42px;
  color: var(--navy);
  margin-top: 16px;
}
.reasons__deco {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 170px;
  z-index: 1;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}
.reasons__deco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: .85;
}
.reasons__deco::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 78%, rgba(132,120,255,.10) 100%);
  z-index: 1;
}
/* Right card box */
.reasons__grid {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.reason {
  position: relative;
  aspect-ratio: 474 / 450;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  isolation: isolate;
}
.reason__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.reason__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, #fff 8%, rgba(255,255,255,0) 42%);
  transition: opacity .35s ease;
}
.reason__navy {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(4,6,32,.86);
  opacity: 0;
  transition: opacity .35s ease;
}
.reason__icon {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
}
.reason__body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
}
.reason__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 24px;
  line-height: 31px;
  color: var(--navy);
  transition: color .3s ease;
}
.reason__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: rgba(255,255,255,.6);
  margin-top: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, margin .35s ease;
}
/* hover state */
.reason:hover .reason__navy { opacity: 1; }
.reason:hover .reason__scrim { opacity: 0; }
.reason:hover .reason__title { color: var(--white); }
.reason:hover .reason__icon { color: var(--white); }
.reason:hover .reason__desc { max-height: 200px; opacity: 1; }

/* Frosted glass icon chip */
.icon-glass {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(4,6,32,.20);
  border: 1px solid rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--navy);
  transition: color .3s ease;
}
.icon-glass .i { width: 24px; height: 24px; }

/* ==================== INDUSTRIES + TECH (one panel) ==================== */
.panel--stack .panel__inner + .panel__inner { padding-top: 0; }
.iat__block { padding: 32px; }
.iat__block--industries { padding-bottom: 80px; }
.iat__block--tech { padding-top: 80px; }

/* Industries header (centered) */
.industries__head {
  text-align: center;
  max-width: 618px;
  margin: 0 auto 32px;
}
.industries__head .eyebrow { justify-content: center; }
.industries__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 42px;
  color: var(--white);
  margin-top: 16px;
}
.industries__lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: rgba(255,255,255,.6);
  margin-top: 16px;
}

/* Diagram */
.diagram-wrap { position: relative; width: 100%; display: flex; justify-content: center; }
.diagram-stage {
  position: relative;
  width: 1332px;
  height: 448px;
  transform-origin: top center;
  flex: none;
}
.diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.diagram-lines path {
  fill: none;
  stroke: rgba(255,255,255,.16);
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
}
/* Center node */
.node {
  position: absolute;
  left: 630px;
  top: 188px;
  width: 72px;
  height: 72px;
  z-index: 3;
}
.node__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,32,230,.55) 0%, rgba(16,32,230,.18) 40%, transparent 70%);
  pointer-events: none;
}
.node__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #040620 0%, #1020e6 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 30px rgba(16,32,230,.5);
}
.node__disc img { width: 34px; height: 34px; }
.node__ring {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 114px; height: 114px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(#040620,#040620) padding-box,
             conic-gradient(from 180deg, rgba(255,255,255,.03), rgba(255,255,255,.5) 90deg, rgba(255,255,255,.03) 180deg, rgba(255,255,255,.03) 270deg, rgba(255,255,255,.5) 360deg) border-box;
  -webkit-mask: none;
  opacity: .5;
  pointer-events: none;
}

/* Industry pills */
.ind-pill {
  position: absolute;
  width: 433px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  z-index: 2;
}
.ind-pill__label {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
  color: var(--white);
  text-transform: uppercase;
}
.ind-pill--right .ind-pill__label { text-align: right; }
.pill-chip {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255,255,255,.08);
}
.pill-chip .i { width: 20px; height: 20px; }
.pill-chip--add { background: rgba(16,32,230,.10); color: var(--white); }
.pill-chip--blue   { background: rgba(16,32,230,.10);  color: var(--blue); }
.pill-chip--purple { background: rgba(132,120,255,.10); color: var(--purple); }
.pill-chip--green  { background: rgba(13,200,142,.10); color: var(--green); }

/* Mobile-only compact industries grid */
.ind-grid { display: none; }
.ind-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.ind-cell__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--white);
  text-transform: uppercase;
}

/* ---- Tech ecosystem ---- */
.tech__head { margin-bottom: 32px; }
.tech__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 42px;
  color: var(--white);
  margin-top: 24px;
}
.tech__lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: rgba(255,255,255,.6);
  margin-top: 8px;
  max-width: 563px;
}
.tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tech-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 337px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.tech-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.tag--blue   { background: rgba(16,32,230,.20);  color: var(--blue); }
.tag--purple { background: rgba(132,120,255,.20); color: var(--purple); }
.tag--green  { background: rgba(13,200,142,.20); color: var(--green); }
.tech-card__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 24px;
  line-height: 31px;
  color: var(--white);
  margin-bottom: 8px;
}
.tech-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: rgba(255,255,255,.6);
}

/* ============================ TESTIMONIALS ============================= */
.testi { padding: 120px 0; background: var(--page-bg); overflow: hidden; }
.testi__head {
  max-width: var(--content-w);
  margin: 0 auto 32px;
  padding-inline: var(--gutter);
}
.testi__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 42px;
  color: var(--navy);
  margin-top: 16px;
}
.testi__viewport { position: relative; height: 680px; }
.testi__track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding-inline: 54px;
  height: 100%;
  animation: testiScroll 55s linear infinite;
}
.testi__viewport:hover .testi__track { animation-play-state: paused; }
@keyframes testiScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testi__track { animation: none; }
}
.testi-card {
  flex: none;
  width: 301px;
  height: 410px;
  background: var(--navy);
  border-radius: 32px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.testi-card__meta { margin-bottom: 24px; }
.testi-card__stars {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  margin-top: 6px;
}
.testi-card__stars .i { width: 20px; height: 20px; }
.testi-card__quote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: var(--white);
}
.testi-card__author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 16px;
  color: var(--white);
  flex: none;
}
.testi-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
  color: var(--white);
}
.testi-card__role {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
}
/* accent helpers */
.c-blue   { color: var(--blue); }
.c-purple { color: var(--purple); }
.c-green  { color: var(--green); }
.avatar--blue   { background: var(--blue); }
.avatar--purple { background: var(--purple); }
.avatar--green  { background: var(--green); }
.tag--sm { font-size: 12px; line-height: 16px; }

/* ================================ CTA ================================== */
.cta {
  position: relative;
  overflow: hidden;
  padding: 140px 54px;
  background: var(--page-bg);
  text-align: center;
}
.cta::before {   /* faint square grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(4,6,32,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4,6,32,.06) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center;
  -webkit-mask: radial-gradient(120% 120% at 50% 50%, #000 35%, transparent 78%);
  mask: radial-gradient(120% 120% at 50% 50%, #000 35%, transparent 78%);
  z-index: 0;
}
.cta__glow {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%,-50%);
  width: 620px;
  height: 320px;
  background: radial-gradient(circle, rgba(132,120,255,.22) 0%, rgba(84,97,255,.14) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 32px;
  line-height: 42px;
  color: var(--navy);
  max-width: 480px;
  margin: 32px auto 0;
}
.cta__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: var(--navy);
  max-width: 498px;
  margin: 12px auto 0;
}
.cta .btn { margin-top: 32px; }

/* ================================ FOOTER ============================== */
.footer { padding: 0 22px; background: var(--page-bg); }
.footer__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  padding: 64px 32px;
  background: #040620 url("../assets/images/footer-bg.png") center bottom / cover no-repeat;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer__brand { max-width: 321px; flex: none; }
.footer__brand .logo { height: 37px; width: auto; }
.footer__tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: rgba(255,255,255,.6);
  margin-top: 16px;
}
.footer__nav { display: flex; gap: 24px; padding-top: 8px; }
.footer__nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
  color: var(--white);
  transition: opacity .2s ease;
}
.footer__nav a:hover { opacity: .7; }
.footer__contact { flex: none; text-align: left; }
.footer__email {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
  color: var(--white);
}
.footer__locations {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: rgba(255,255,255,.6);
  margin-top: 16px;
}
.footer__bottom {
  max-width: var(--content-w);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy,
.footer__legal a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: rgba(4,6,32,.4);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { transition: color .2s ease; }
.footer__legal a:hover { color: rgba(4,6,32,.7); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Hamburger toggle (shown on smaller screens) */
.nav__toggle {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--green);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span {
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- <= 1024px : tablet ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 24px; right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(4,6,32,.97);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
    display: none;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__link { padding: 12px 14px; }
  .nav__cta { text-align: center; }

  .about__inner { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .about__text { padding: 80px 32px 0; max-width: 640px; }
  .about__media { justify-content: center; padding: 0 32px 80px; }
  .about__media img { width: 100%; max-width: 640px; height: auto; aspect-ratio: 712/700; border-radius: 24px; }

  .tech__grid { grid-template-columns: 1fr 1fr; }

  .reasons__wrap { grid-template-columns: 1fr; }
  .reasons__aside { min-height: 220px; }
  .reasons__deco { top: 120px; }
}

/* ---------- <= 768px : large phone ---------- */
@media (max-width: 768px) {
  .domains__grid { grid-template-columns: 1fr; }
  .domain-card { min-height: 0; }

  /* Hero (mobile): stacked, globe anchored bottom-right of the card */
  .hero { padding: 12px; }
  .hero__card {
    aspect-ratio: auto;
    min-height: 640px;
    background:
      radial-gradient(130% 70% at 82% 100%, rgba(16,32,230,.45), transparent 62%),
      linear-gradient(178deg, #0a1268 0%, #070d4f 45%, #040620 100%);
    padding-bottom: 40px;
  }
  .hero__card::after {   /* globe pulled from the exported hero art */
    content: "";
    position: absolute;
    right: -30%;
    bottom: -6%;
    width: 150%;
    aspect-ratio: 1396 / 856;
    background: url("../assets/images/hero-bg.png") right center / cover no-repeat;
    -webkit-mask: radial-gradient(58% 42% at 78% 62%, #000 55%, transparent 74%);
    mask: radial-gradient(58% 42% at 78% 62%, #000 55%, transparent 74%);
    z-index: 0;
    pointer-events: none;
  }
  .hero__content {
    position: relative;
    top: auto; left: auto;
    padding: 24px 20px 0;
    max-width: 100%;
  }
  .hero__title { font-size: 40px; line-height: 50px; }
  .hero__sub { font-size: 18px; line-height: 24px; }
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { flex: 1; padding: 14px 10px; font-size: 15px; white-space: nowrap; }

  /* Industries: swap diagram for a compact grid */
  .diagram-wrap { display: none; }
  .ind-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .iat__block { padding: 24px; }
  .iat__block--industries { padding-bottom: 48px; }
  .iat__block--tech { padding-top: 48px; }

  /* Reasons: horizontal carousel with description always visible */
  .reasons__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .reason {
    flex: 0 0 86%;
    aspect-ratio: auto;
    height: 420px;
    scroll-snap-align: center;
  }
  .reason__navy { opacity: .55; }
  .reason__scrim { opacity: 0; }
  .reason__title { color: var(--white); }
  .reason__icon { color: var(--white); }
  .reason__desc { max-height: 240px; opacity: 1; }

  /* Footer stacks */
  .footer__card { flex-direction: column; gap: 28px; padding: 40px 28px; }
  .footer__nav { flex-wrap: wrap; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- <= 560px : small phone ---------- */
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .tech__grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 34px; line-height: 44px; }
  .section-title, .about__title, .domains__title, .reasons__title,
  .industries__title, .tech__title, .testi__title, .cta__title { font-size: 28px; line-height: 37px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .testi-card { width: 280px; }
  .cta { padding: 90px 20px; }
  .hero__actions .btn { font-size: 14px; padding: 14px 8px; }
}

/* ============================ CONTACT PAGE ============================= */
.contact-hero__card {
  aspect-ratio: auto;
  background:
    radial-gradient(70% 90% at 88% 4%, rgba(132,120,255,.28) 0%, transparent 55%),
    radial-gradient(60% 80% at 6% 96%, rgba(16,32,230,.30) 0%, transparent 60%),
    linear-gradient(178deg, #0a1268 0%, #070d4f 42%, #05082f 74%, #040620 100%);
  padding-bottom: 72px;
}
.contact-hero__card::before {                 /* faint square grid, like the hero */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask: radial-gradient(120% 90% at 50% 0%, #000 45%, transparent 90%);
  mask: radial-gradient(120% 90% at 50% 0%, #000 45%, transparent 90%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 56px;
  align-items: start;
  padding: 44px 48px 0;
}
.contact-intro { padding-top: 22px; max-width: 460px; }
.contact-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 48px;
  line-height: 60px;
  color: var(--white);
  margin-top: 20px;
}
.contact-lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  color: rgba(255,255,255,.75);
  margin-top: 20px;
}
.contact-meta {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-meta li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--white);
}
.contact-meta span {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.contact-meta a { color: var(--white); transition: color .2s ease; }
.contact-meta a:hover { color: var(--green); }

/* Form card */
.contact-form {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  padding: 32px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 0; }
.field label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: rgba(255,255,255,.9);
  margin-bottom: 8px;
}
.field .opt { color: rgba(255,255,255,.4); font-weight: 400; }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  background: rgba(4,6,32,.5);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13,200,142,.20);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 24px; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #ff6b6b; }
.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 16px;
  font-size: 17px;
}
.form-status {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  text-align: center;
  min-height: 20px;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #ff8a8a; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; padding: 28px 24px 0; }
  .contact-intro { padding-top: 0; max-width: none; }
}
@media (max-width: 768px) {
  .contact-hero__card { padding-bottom: 40px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-title { font-size: 36px; line-height: 46px; }
  .contact-form { padding: 22px; }
}
