/* Mirai Edge — shared styles */
:root {
  --navy: #00205b;
  --blue: #005daa;
  --cyan: #00aeef;
  --text: #1a3a5c;
  --text-muted: #4a6b88;
  --surface: #f4f9fc;
  --card: #ffffff;
  --border: rgba(0, 93, 170, 0.18);
  --shadow: 0 4px 24px rgba(0, 32, 91, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 32, 91, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --content-max: min(92vw, 1420px);
  --page-pad-x: clamp(0.5rem, 2vw, 1rem);
  --footer-deep: #00163d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--cyan);
}

/* ——— Nav logo lockup (IDC-style bar) ——— */
.nav-lockup {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-lockup__img {
  height: 108px;
  width: auto;
  max-width: min(520px, 82vw);
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s;
}

.nav-lockup:hover .nav-lockup__img {
  opacity: 0.88;
}

/* ——— Navigation ——— */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 32, 91, 0.1);
  box-shadow: 0 2px 12px rgba(0, 32, 91, 0.06);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.55rem var(--page-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--cyan);
}

.nav-links__cta {
  margin-left: 0.25rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--navy), var(--blue)) !important;
  border: none !important;
  border-radius: 4px !important;
  border-bottom: none !important;
  box-shadow: 0 2px 8px rgba(0, 32, 91, 0.2);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue), var(--cyan)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 32, 91, 0.28);
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

.nav-drawer {
  display: none;
  padding: 0 var(--page-pad-x) 1rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-drawer a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface);
}

.nav-drawer .nav-cta {
  text-align: center;
  margin-top: 0.35rem;
}

.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(0, 174, 239, 0.12), transparent);
  color: var(--blue);
}

#nav-check:checked ~ .nav-drawer {
  display: block;
}

#nav-check:checked + .nav-inner .nav-toggle {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-drawer {
    display: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Layout ——— */
main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--page-pad-x) 3rem;
}

/* ——— Corporate section pattern (IDC-style) ——— */
.section-kicker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.section-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-head .section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-head .section-title::after {
  display: none;
}

.band {
  margin-left: calc(-1 * var(--page-pad-x));
  margin-right: calc(-1 * var(--page-pad-x));
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
}

.band--muted {
  background: #eef3f8;
  border-top: 1px solid rgba(0, 93, 170, 0.1);
  border-bottom: 1px solid rgba(0, 93, 170, 0.1);
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  margin-bottom: 2.5rem;
}

.page-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .page-hero {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .page-hero.page-hero--reverse .page-hero__text {
    order: 2;
  }

  .page-hero.page-hero--reverse .page-hero__visual {
    order: 1;
  }
}

.page-hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.page-hero__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Inner pages: tighter hero with smaller imagery */
body.subpage .page-hero {
  margin-bottom: 2.25rem;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 768px) {
  body.subpage .page-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.72fr);
    gap: 2.5rem;
  }

  body.subpage .page-hero .page-hero__visual {
    justify-self: end;
  }

  body.subpage .page-hero.page-hero--reverse .page-hero__visual {
    justify-self: start;
  }
}

body.subpage .page-hero__visual {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}

@media (min-width: 768px) {
  body.subpage .page-hero__visual {
    max-width: 380px;
  }
}

body.subpage .page-hero__visual img {
  aspect-ratio: 16 / 11;
  max-height: 240px;
  width: 100%;
  object-fit: cover;
}

body.subpage .page-hero__text {
  padding-top: 0.35rem;
}

body.subpage .page-hero__text h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
}

body.subpage .page-hero__text .lead {
  font-size: 1.02rem;
  max-width: 44ch;
  line-height: 1.62;
}

body.subpage .split-cards {
  gap: 1.15rem;
}

body.subpage .values-grid {
  gap: 0.85rem;
}

body.subpage .value-card {
  padding: 1.2rem 1.25rem;
}

.page-hero__text .eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.page-hero__text h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.page-hero__text .lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 0.65rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

/* ——— Home hero (full width feel) ——— */
.home-hero {
  display: grid;
  gap: 2rem;
  align-items: stretch;
  margin: -0.5rem calc(-1 * var(--page-pad-x)) 0;
  padding: 2.25rem var(--page-pad-x) 2.75rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    padding: 3rem var(--page-pad-x);
  }
}

.home-hero__content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.home-hero__content .lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 40ch;
}

.home-hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  align-self: center;
}

.home-hero__visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 32, 91, 0.25);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 32, 91, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--blue);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— TOC cards ——— */
.toc-section {
  margin-bottom: 3rem;
}

.toc-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .toc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .toc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.toc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.toc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 174, 239, 0.35);
}

.toc-card.animate-in.is-visible:hover {
  transform: translateY(-4px);
}

.toc-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

.toc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toc-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.toc-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.toc-card__body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.toc-card__arrow {
  margin-top: 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.toc-card:hover .toc-card__arrow {
  color: var(--cyan);
}

/* ——— Cards & grids ——— */
.split-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .split-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.card--accent-navy {
  border-left: 4px solid var(--navy);
}

.card--accent-blue {
  border-left: 4px solid var(--blue);
}

.card--accent-cyan {
  border-left: 4px solid var(--cyan);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.values-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card {
  background: linear-gradient(145deg, #fff 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.4rem;
  transition: box-shadow 0.2s;
}

.value-card:hover {
  box-shadow: var(--shadow);
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.value-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ——— Lists & tags ——— */
.service-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .service-layout {
    grid-template-columns: 1fr 320px;
  }
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-check li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.list-check li:last-child {
  border-bottom: none;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.tag:hover {
  border-color: var(--cyan);
  background: rgba(0, 174, 239, 0.08);
}

/* ——— Partners ——— */
.partner-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 32, 91, 0.05), rgba(0, 174, 239, 0.1));
  border: 1px solid var(--border);
}

.partner-panel p {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

a.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 32, 91, 0.35);
  color: #fff;
}

.contact-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 174, 239, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon img {
  width: 26px;
  height: 26px;
}

.contact-card__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.contact-card__value {
  font-weight: 600;
  font-size: 1rem;
  word-break: break-word;
}

.contact-card--wide {
  grid-column: 1 / -1;
}

.contact-card--static {
  cursor: default;
}

.aside-sticky {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

/* ——— Carousel (services / tech stack) ——— */
.carousel {
  position: relative;
  margin: 1.5rem 0 2.5rem;
}

.carousel__outer {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.5rem;
}

@media (min-width: 641px) {
  .carousel__outer {
    gap: 0.65rem;
    align-items: center;
  }
}

.carousel__arrow {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: var(--shadow);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.15s;
  align-self: center;
}

.carousel__arrow:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: scale(1.04);
}

.carousel__arrow:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 260px;
}

@media (max-width: 767px) {
  .carousel__slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.carousel__media {
  position: relative;
  min-height: 180px;
  background: var(--navy);
}

.carousel__media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .carousel__media img {
    min-height: 180px;
  }
}

.carousel__body {
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}

.carousel__body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.carousel__body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .carousel__outer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
  }

  .carousel__arrow--prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    margin-right: 0.25rem;
  }

  .carousel__arrow--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-left: 0.25rem;
  }

  .carousel__viewport {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

.carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.carousel__dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0, 32, 91, 0.2);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.carousel__dot[aria-current="true"] {
  background: var(--cyan);
  transform: scale(1.15);
}

.carousel__dot:hover {
  background: var(--blue);
}

.carousel__counter {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  min-width: 3.5rem;
  text-align: center;
}

/* ——— Footer (multi-column, IDC-style) ——— */
.site-footer {
  background: var(--footer-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  margin-top: 2rem;
}

.footer-strip {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem var(--page-pad-x);
  text-align: center;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.75rem var(--page-pad-x) 2.25rem;
}

.footer-grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
  }
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(0, 174, 239, 0.35);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-list a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact p {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--cyan);
}

.footer-contact__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 174, 239, 0.85);
  margin-bottom: 0.2rem;
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.25rem var(--page-pad-x) 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom strong .mirai {
  color: rgba(255, 255, 255, 0.95);
}

.footer-bottom strong .edge {
  color: var(--cyan);
}

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-legal {
    justify-content: flex-end;
  }
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.8125rem;
}

.footer-legal a:hover {
  color: var(--cyan);
}

/* ——— Stats ——— */
.stats-section {
  margin: 2.5rem calc(-1 * var(--page-pad-x)) 3rem;
  padding: 2.25rem var(--page-pad-x);
  background: linear-gradient(135deg, var(--navy) 0%, #0a2d6e 40%, var(--blue) 100%);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 32, 91, 0.2);
}

.stats-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
  position: relative;
}

.stat-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  display: none;
}

@media (min-width: 900px) {
  .stat-item:not(:last-child)::after {
    display: block;
  }
}

.stat-item__value {
  display: block;
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.4rem;
  color: #fff;
  text-shadow: 0 0 32px rgba(0, 174, 239, 0.55), 0 2px 12px rgba(0, 32, 91, 0.4);
}

.stat-item__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.03em;
  line-height: 1.35;
}

/* ——— Scroll reveal & motion ——— */
.animate-in {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in--delay-1 {
  transition-delay: 0.08s;
}

.animate-in--delay-2 {
  transition-delay: 0.16s;
}

.animate-in--delay-3 {
  transition-delay: 0.24s;
}

.home-hero__content > * {
  opacity: 0;
  animation: heroLine 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-hero__content .home-hero__kicker {
  animation-delay: 0.04s;
}

.home-hero__content h1 {
  animation-delay: 0.12s;
}

.home-hero__content .lead {
  animation-delay: 0.24s;
}

.home-hero__content .btn-row {
  animation-delay: 0.38s;
}

.home-hero__visual {
  opacity: 0;
  animation: heroVisual 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes heroLine {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVisual {
  from {
    opacity: 0;
    transform: translateX(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toc-card.animate-in {
  opacity: 0;
  transform: translateY(28px);
}

.toc-card.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__content > *,
  .home-hero__visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .animate-in,
  .toc-card.animate-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .carousel__track {
    transition: none !important;
  }
}
