:root {
  --myatt-blue: #0ba9e2;
  --myatt-navy: #303751;
  --myatt-slate: #7f8e93;
  --myatt-black: #000000;
  --myatt-white: #ffffff;
  --myatt-ink: #172033;
  --myatt-soft: #eef7fb;
  --myatt-soft-border: rgba(48, 55, 81, 0.12);
  --myatt-shadow: 0 22px 60px rgba(19, 31, 51, 0.12);
  --myatt-radius-lg: 28px;
  --myatt-radius-md: 20px;
  --myatt-radius-sm: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(11, 169, 226, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f9fcfe 46%, #ffffff 100%);
  color: var(--myatt-ink);
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
}

.page-wrapper,
#applications,
#platform,
#difference,
#contact {
  background-color: var(--myatt-white);
}

h1, h2, h3, h4, h5, h6,
.display-2,
.display-5 {
  color: var(--myatt-navy);
  font-family: "Aptos Display", "Trebuchet MS", "Gill Sans", sans-serif;
  letter-spacing: -0.03em;
}

a {
  color: var(--myatt-blue);
}

a:hover {
  color: #087fad;
}

.page-loading {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: all 0.4s 0.2s ease-in-out;
  background-color: var(--myatt-white);
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

.page-loading.active {
  opacity: 1;
  visibility: visible;
}

.page-loading-inner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
}

.page-loading.active > .page-loading-inner {
  opacity: 1;
}

.page-loading-inner > span {
  display: block;
  font-size: 1rem;
  color: var(--myatt-slate);
}

.page-spinner {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  border: 0.15em solid rgba(48, 55, 81, 0.18);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
  100% {
    transform: rotate(360deg);
  }
}

.navbar-over-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(9, 17, 31, 0.86);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.navbar-stuck.navbar-over-hero {
  position: fixed;
  background: rgba(9, 17, 31, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(10, 18, 32, 0.24);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--myatt-white);
}

.navbar-dark .navbar-toggler-icon {
  filter: none;
}

.navbar .navbar-brand img {
  transition: width 0.2s ease;
}

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--myatt-white);
}

.navbar-toggler-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navbar .btn-primary {
  background: linear-gradient(135deg, var(--myatt-blue), #45c2ef);
  border: none;
  color: var(--myatt-white);
}

.navbar .btn-primary:hover,
.navbar .btn-primary:focus {
  background: linear-gradient(135deg, #0998ce, #31bde9);
}

.hero-shell {
  position: relative;
  padding-top: 1rem;
}

.hero-spacing {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(48, 55, 81, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 55, 81, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.hero-orb-1 {
  width: 26rem;
  height: 26rem;
  top: 5rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(11, 169, 226, 0.18), rgba(11, 169, 226, 0));
}

.hero-orb-2 {
  width: 18rem;
  height: 18rem;
  bottom: 3rem;
  left: -4rem;
  background: radial-gradient(circle, rgba(127, 142, 147, 0.16), rgba(127, 142, 147, 0));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--myatt-blue);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--myatt-blue);
}

.hero-title {
  max-width: 12ch;
  text-wrap: balance;
}

.hero-copy,
.section-copy {
  color: rgba(23, 32, 51, 0.76);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-badges span {
  border: 1px solid rgba(48, 55, 81, 0.12);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: var(--myatt-navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(48, 55, 81, 0.08);
  border-radius: var(--myatt-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 251, 0.95));
  box-shadow: var(--myatt-shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(11, 169, 226, 0.18), rgba(11, 169, 226, 0));
}

.hero-panel-top {
  display: flex;
  gap: 0.4rem;
  padding: 1rem 1.1rem 0;
}

.signal-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(127, 142, 147, 0.38);
}

.hero-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.1rem 1.2rem;
}

.app-teaser {
  border: 1px solid rgba(48, 55, 81, 0.08);
  border-radius: var(--myatt-radius-md);
  background: rgba(255, 255, 255, 0.94);
  padding: 1.35rem;
}

.app-teaser-primary {
  background: linear-gradient(135deg, rgba(11, 169, 226, 0.14), rgba(255, 255, 255, 0.96));
  border-color: rgba(11, 169, 226, 0.24);
}

.app-teaser-label,
.application-kicker,
.platform-node-label {
  color: var(--myatt-slate);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-teaser h2,
.application-card h3,
.principle-card h3,
.journey-item h3,
.platform-node h3,
.contact-card h3 {
  margin: 0.55rem 0;
  color: var(--myatt-navy);
}

.app-teaser p,
.application-card p,
.principle-card p,
.journey-item p,
.platform-node p,
.contact-card p {
  margin-bottom: 0;
  color: rgba(23, 32, 51, 0.74);
  line-height: 1.75;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(238, 247, 251, 0.84), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top right, rgba(11, 169, 226, 0.12), transparent 24%);
}

#platform {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

#contact {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fcfe 100%);
}

.application-card,
.principle-card,
.contact-card,
.platform-node,
.contact-shell {
  border: 1px solid var(--myatt-soft-border);
  border-radius: var(--myatt-radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(19, 31, 51, 0.06);
}

.application-card {
  padding: 1.7rem;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(11, 169, 226, 0.16), rgba(48, 55, 81, 0.08));
}

.application-list {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  color: rgba(23, 32, 51, 0.8);
}

.application-list li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.journey-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.journey-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid rgba(48, 55, 81, 0.08);
}

.journey-item:first-child {
  border-top: none;
  padding-top: 0;
}

.journey-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--myatt-navy);
  color: var(--myatt-white);
  font-weight: 700;
}

.platform-diagram {
  padding: 1.5rem;
  border-radius: var(--myatt-radius-lg);
  background: linear-gradient(180deg, rgba(48, 55, 81, 0.05), rgba(11, 169, 226, 0.07));
  border: 1px solid rgba(48, 55, 81, 0.08);
}

.platform-node {
  padding: 1.35rem;
}

.platform-node-accent {
  background: linear-gradient(135deg, rgba(11, 169, 226, 0.12), rgba(255, 255, 255, 0.96));
}

.platform-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--myatt-blue);
  font-size: 1.65rem;
  padding: 0.75rem 0;
}

.principle-card {
  padding: 1.5rem;
}

.contact-shell {
  padding: 2rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 251, 0.9)),
    url("../images/header.png") center / cover no-repeat;
}

.contact-card {
  padding: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid rgba(48, 55, 81, 0.08);
}

.contact-item:first-child {
  border-top: none;
  padding-top: 0;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(11, 169, 226, 0.12);
  color: var(--myatt-blue);
  font-size: 1.4rem;
}

.btn-primary {
  background-color: var(--myatt-blue);
  border-color: var(--myatt-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #098fbe;
  border-color: #098fbe;
}

.btn-outline-primary {
  border-color: rgba(11, 169, 226, 0.5);
  color: var(--myatt-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: rgba(11, 169, 226, 0.1);
  border-color: var(--myatt-blue);
  color: #087fad;
}

.shadow-primary {
  box-shadow: 0 18px 30px rgba(11, 169, 226, 0.22) !important;
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse.collapsing,
  .navbar .navbar-collapse.show {
    background-color: rgba(9, 17, 31, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 18px 30px rgba(10, 18, 32, 0.24);
    transition: height 0.35s ease;
  }

  .navbar .navbar-collapse .nav-link {
    color: rgba(255, 255, 255, 0.84);
  }

  .hero-spacing {
    padding-top: 8.5rem;
  }

  .hero-title {
    max-width: none;
  }

  .navbar-over-hero {
    background: rgba(9, 17, 31, 0.94);
    backdrop-filter: blur(18px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(10, 18, 32, 0.2);
  }

  .navbar-over-hero .container {
    min-height: 74px;
    transition: min-height 0.2s ease;
  }

  .navbar-over-hero .navbar-brand img {
    width: 142px !important;
  }

  .navbar-toggler {
    padding-left: 0;
    padding-right: 0;
  }

  body.header-compact .navbar-over-hero .container {
    min-height: 60px;
  }

  body.header-compact .navbar-over-hero .navbar-brand img {
    width: 120px !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: calc(1.95rem + 2.1vw);
  }

  .display-5 {
    font-size: calc(1.55rem + 1vw);
  }

  .hero-badges span {
    width: 100%;
    justify-content: center;
  }

  .contact-shell {
    padding: 1.4rem;
  }
}
