:root {
  color-scheme: light;
  --ink: #17211e;
  --ink-soft: #52605b;
  --ink-muted: #76817b;
  --paper: #f7f8f4;
  --paper-strong: #ffffff;
  --mist: #e8eee8;
  --line: #d7dfd8;
  --night: #07110f;
  --night-2: #0d1b18;
  --teal: #0e8f8b;
  --teal-dark: #0b6564;
  --amber: #d18b27;
  --clay: #af5f45;
  --olive: #63764a;
  --shadow: 0 18px 44px rgba(19, 30, 27, 0.12);
  --shell: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--paper-strong);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #f7fbf8;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 248, 244, 0.92);
  color: var(--ink);
  border-bottom: 1px solid rgba(23, 33, 30, 0.1);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  border-color: rgba(14, 143, 139, 0.25);
  background: #e5f2ef;
  color: var(--teal-dark);
}

.brand-mark img {
  width: 32px;
  height: 32px;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.15;
}

.brand-text span {
  font-weight: 750;
}

.brand-text small {
  color: currentColor;
  opacity: 0.72;
  font-size: 0.74rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: currentColor;
  font-size: 0.95rem;
  font-weight: 650;
  opacity: 0.84;
  transition:
    background 160ms ease,
    opacity 160ms ease,
    color 160ms ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.11);
}

.site-header.is-scrolled .nav-menu a:hover,
.site-header.is-scrolled .nav-menu a.is-active,
.site-header.is-open .nav-menu a:hover,
.site-header.is-open .nav-menu a.is-active {
  background: rgba(14, 143, 139, 0.1);
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
  color: #f8fbfa;
  background: var(--night);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background-image: url("../images/nimbus-hero.png");
  background-image: image-set(
    url("../images/nimbus-hero.webp") type("image/webp"),
    url("../images/nimbus-hero.png") type("image/png")
  );
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.94) 0%, rgba(7, 17, 15, 0.74) 38%, rgba(7, 17, 15, 0.16) 80%),
    linear-gradient(0deg, rgba(7, 17, 15, 0.5), rgba(7, 17, 15, 0.12));
}

.hero-content {
  position: relative;
  padding-block: 112px 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero .eyebrow {
  color: #5edbd4;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: 4.65rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-kicker {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.35rem;
  line-height: 1.35;
  color: #ffffff;
  font-weight: 650;
}

.hero-copy {
  max-width: 610px;
  margin: 16px 0 0;
  color: rgba(248, 251, 250, 0.82);
  font-size: 1.05rem;
}

.hero-note {
  max-width: 620px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 3px solid rgba(94, 219, 212, 0.72);
  color: rgba(248, 251, 250, 0.72);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.button-primary {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
}

.signal-band {
  background: var(--night-2);
  color: #edf5f2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.signal-grid div {
  min-height: 152px;
  padding: 28px;
  background: var(--night-2);
}

.signal-grid span,
.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  margin-bottom: 16px;
  border-radius: 6px;
  color: var(--amber);
  background: rgba(209, 139, 39, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

.signal-grid strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
}

.signal-grid p {
  max-width: 320px;
  margin: 8px 0 0;
  color: rgba(237, 245, 242, 0.72);
}

.section {
  padding-block: 92px;
}

.section-light {
  background: var(--paper);
}

.section-muted {
  background:
    linear-gradient(90deg, rgba(99, 118, 74, 0.08), rgba(14, 143, 139, 0.08)),
    var(--mist);
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(14, 143, 139, 0.13), transparent 44%),
    var(--night);
  color: #f2f7f4;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading.compact {
  max-width: 560px;
  margin-bottom: 0;
}

.section-heading h2,
.about-copy h2,
.singapore-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.about-copy p,
.singapore-content p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.section-dark .section-heading h2,
.section-dark .section-heading p {
  color: #f5fbf8;
}

.section-dark .section-heading p {
  color: rgba(245, 251, 248, 0.72);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 348px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 33, 30, 0.06);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.feature-card ul {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
}

.feature-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal);
  transform: translateY(-50%);
}

.split-layout,
.technology-layout,
.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.pipeline {
  display: grid;
  gap: 14px;
}

.pipeline-step {
  position: relative;
  min-height: 122px;
  padding: 22px 24px 22px 30px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 33, 30, 0.1);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(23, 33, 30, 0.06);
}

.pipeline-step:nth-child(2) {
  border-left-color: var(--amber);
}

.pipeline-step:nth-child(3) {
  border-left-color: var(--olive);
}

.pipeline-step:nth-child(4) {
  border-left-color: var(--clay);
}

.pipeline-step:nth-child(5) {
  border-left-color: var(--teal-dark);
}

.pipeline-step span {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pipeline-step strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.pipeline-step p {
  margin: 7px 0 0;
  color: var(--ink-soft);
}

.tech-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tab {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 251, 248, 0.72);
  font-weight: 750;
  cursor: pointer;
}

.tab:hover,
.tab.is-active {
  background: #f5fbf8;
  color: var(--ink);
}

.tab-panels {
  min-height: 268px;
  margin-top: 10px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(94, 219, 212, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.08);
}

.tab-panel {
  padding: 34px;
}

.tab-panel h3 {
  margin: 0;
  font-size: 1.55rem;
  color: #ffffff;
}

.tab-panel p {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(245, 251, 248, 0.74);
  font-size: 1.03rem;
}

.about-copy p + p {
  margin-top: 14px;
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list article {
  min-height: 148px;
  padding: 24px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(23, 33, 30, 0.06);
}

.value-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #e6f1ee;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.value-list p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.singapore-band {
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.84), rgba(7, 17, 15, 0.46)),
    url("../images/nimbus-hero.png");
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.84), rgba(7, 17, 15, 0.46)),
    image-set(
      url("../images/nimbus-hero.webp") type("image/webp"),
      url("../images/nimbus-hero.png") type("image/png")
    );
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.singapore-content {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.singapore-content h2,
.singapore-content p {
  color: #ffffff;
}

.singapore-content p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-routes {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-routes div {
  padding: 18px 0 18px 18px;
  border-left: 3px solid var(--teal);
}

.contact-routes div:nth-child(2) {
  border-left-color: var(--amber);
}

.contact-routes div:nth-child(3) {
  border-left-color: var(--clay);
}

.contact-routes strong,
.contact-routes span {
  display: block;
}

.contact-routes span {
  margin-top: 4px;
  color: var(--ink-soft);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd8d1;
  border-radius: 6px;
  background: #fbfcfa;
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 46px;
  padding: 0 12px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  padding: 12px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 143, 139, 0.14);
}

.contact-form .button {
  width: 100%;
}

.site-footer {
  background: var(--night);
  color: #eff7f4;
  padding-block: 34px;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 20px 32px;
  align-items: center;
}

.footer-layout p,
.footer-layout small {
  margin: 6px 0 0;
  color: rgba(239, 247, 244, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: rgba(239, 247, 244, 0.78);
  font-weight: 650;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-layout small {
  grid-column: 1 / -1;
}

@media (max-width: 1060px) {
  .card-grid.four,
  .card-grid.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 330px;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-grid;
    position: relative;
  }

  .site-header.is-scrolled .nav-toggle,
  .site-header.is-open .nav-toggle {
    border-color: rgba(23, 33, 30, 0.14);
    background: #ffffff;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    grid-template-columns: 1fr;
    padding: 10px;
    background: rgba(247, 248, 244, 0.98);
    border: 1px solid rgba(23, 33, 30, 0.1);
    border-radius: 8px;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    justify-content: center;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 17, 15, 0.92) 0%, rgba(7, 17, 15, 0.72) 72%, rgba(7, 17, 15, 0.3)),
      linear-gradient(0deg, rgba(7, 17, 15, 0.54), rgba(7, 17, 15, 0.08));
  }

  .hero-content {
    padding-block: 96px 42px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-kicker {
    font-size: 1.12rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-note {
    font-size: 0.92rem;
  }

  .signal-grid,
  .split-layout,
  .technology-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    gap: 1px;
  }

  .section {
    padding-block: 68px;
  }

  .section-heading.compact {
    max-width: 760px;
  }

  .section-heading h2,
  .about-copy h2,
  .singapore-content h2 {
    font-size: 2rem;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 80svh;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 46px;
  }

  .card-grid.four,
  .card-grid.six,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .signal-grid div {
    min-height: auto;
    padding: 22px;
  }

  .tab {
    font-size: 0.92rem;
  }

  .tab-panel {
    padding: 24px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
