html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf6f5 0, var(--surface) 26rem),
    var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(100deg, rgba(7, 16, 20, 0.96), rgba(11, 29, 36, 0.94) 56%, rgba(10, 42, 51, 0.9)),
    rgba(10, 24, 29, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(116, 167, 179, 0.14);
  box-shadow: 0 1px rgba(255, 255, 255, 0.04) inset;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-wordmark {
  color: #f9f9f9;
  font-family: Lexend, Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.08rem, 2.4vw, 1.46rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: clamp(12rem, 22vw, 17rem);
  max-height: 3.7rem;
  object-fit: contain;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

nav a {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: rgba(244, 248, 248, 0.72);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

nav a[aria-current="page"],
nav a:hover {
  color: #ffffff;
  background: rgba(116, 167, 179, 0.2);
}

main {
  min-height: 70vh;
}

.hero,
.page-hero,
.band {
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.hero,
.themed-hero {
  position: relative;
  overflow: hidden;
  color: #f4f8f8;
  background:
    radial-gradient(circle at 86% 18%, rgba(68, 177, 203, 0.38), transparent 27rem),
    radial-gradient(circle at 16% 92%, rgba(140, 166, 141, 0.16), transparent 24rem),
    linear-gradient(100deg, #071014 0%, #0b1d24 42%, #0a2a33 100%);
  border-bottom: 1px solid rgba(116, 167, 179, 0.22);
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(24rem, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero::before,
.hero::after,
.themed-hero::before,
.themed-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero::before,
.themed-hero::before {
  opacity: 0.42;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(116, 167, 179, 0.2) 9.1%, transparent 9.35%),
    linear-gradient(90deg, transparent 0 22%, rgba(116, 167, 179, 0.14) 22.1%, transparent 22.35%),
    linear-gradient(90deg, transparent 0 63%, rgba(116, 167, 179, 0.18) 63.1%, transparent 63.35%),
    linear-gradient(180deg, transparent 0 34%, rgba(116, 167, 179, 0.12) 34.1%, transparent 34.35%),
    linear-gradient(180deg, transparent 0 57%, rgba(116, 167, 179, 0.11) 57.1%, transparent 57.35%),
    radial-gradient(circle at 72% 26%, rgba(116, 167, 179, 0.9) 0 0.13rem, transparent 0.2rem),
    radial-gradient(circle at 82% 48%, rgba(140, 166, 141, 0.78) 0 0.12rem, transparent 0.18rem),
    repeating-linear-gradient(0deg, transparent 0 0.95rem, rgba(68, 139, 167, 0.16) 0.95rem 0.99rem, transparent 0.99rem 1.9rem);
}

.hero::after,
.themed-hero::after {
  inset: 10% clamp(1rem, 4vw, 3rem) 12% auto;
  width: min(42rem, 46vw);
  opacity: 0.22;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(116, 167, 179, 0.02)),
    repeating-linear-gradient(90deg, rgba(244, 248, 248, 0.12) 0 0.06rem, transparent 0.06rem 6rem),
    repeating-linear-gradient(180deg, rgba(244, 248, 248, 0.1) 0 0.06rem, transparent 0.06rem 4.2rem);
  border: 1px solid rgba(116, 167, 179, 0.26);
  border-radius: 8px;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

.hero > *,
.themed-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy,
.page-hero,
.section-heading {
  max-width: 54rem;
}

.themed-hero {
  max-width: none;
  min-height: clamp(24rem, 45vw, 34rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 0.95;
}

.page-hero h1 {
  max-width: none;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}

.themed-hero h1,
.themed-hero .lede {
  max-width: 48rem;
}

h2 {
  max-width: 17ch;
  margin-bottom: 2rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.lede {
  max-width: 46rem;
  color: rgba(244, 248, 248, 0.78);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: #071014;
  background: var(--accent);
}

.button.secondary {
  color: #f4f8f8;
  border: 1px solid rgba(116, 167, 179, 0.38);
  background: rgba(255, 255, 255, 0.04);
}

.signal-panel {
  min-height: 22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(116, 167, 179, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(116, 167, 179, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(4, 13, 16, 0.28);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 2rem 6rem rgba(0, 0, 0, 0.22);
}

.signal-panel img {
  max-width: min(19rem, 84%);
  max-height: 12rem;
  object-fit: contain;
}

.panel-wordmark {
  color: #ffffff;
  font-family: Lexend, Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
}

.signal-panel p {
  color: rgba(244, 248, 248, 0.68);
  font-weight: 700;
}

.band {
  background: var(--panel);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
  border: 1px solid rgba(19, 33, 31, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(116, 167, 179, 0.1), rgba(255, 255, 255, 0));
}

.feature-card p {
  color: var(--muted);
}

.text-link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.service-overview,
.page-overview,
.home-overview {
  background:
    radial-gradient(circle at 82% 0%, rgba(116, 167, 179, 0.18), transparent 26rem),
    linear-gradient(180deg, #eef7f6 0, #e7f0ef 100%);
  border-top: 1px solid rgba(116, 167, 179, 0.22);
  border-bottom: 1px solid rgba(19, 33, 31, 0.08);
}

.service-overview .feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.page-overview .feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
}

.service-overview .feature-grid,
.page-overview .feature-grid,
.home-overview .feature-grid {
  gap: 0;
  border: 1px solid rgba(116, 167, 179, 0.26);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 1rem 3rem rgba(8, 24, 29, 0.08);
}

.service-overview .feature-card,
.page-overview .feature-card,
.home-overview .feature-card {
  min-height: 16rem;
  position: relative;
  justify-content: flex-start;
  padding: 1.6rem;
  color: var(--ink);
  border: 0;
  border-right: 1px solid rgba(116, 167, 179, 0.24);
  border-bottom: 1px solid rgba(116, 167, 179, 0.2);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 50% 0%, rgba(116, 167, 179, 0.2), transparent 9rem);
}

.service-overview .feature-card::before,
.page-overview .feature-card::before,
.home-overview .feature-card::before {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.home-overview .section-heading h2 {
  color: var(--ink);
}

.service-overview .feature-card:nth-child(1)::before,
.home-overview .feature-card:nth-child(1)::before,
.page-overview .feature-card:nth-child(1)::before {
  content: "◎";
}

.service-overview .feature-card:nth-child(2)::before,
.home-overview .feature-card:nth-child(2)::before,
.page-overview .feature-card:nth-child(2)::before {
  content: "</>";
  color: var(--warm);
  font-size: 1.7rem;
  font-weight: 750;
}

.service-overview .feature-card:nth-child(3)::before,
.home-overview .feature-card:nth-child(3)::before,
.page-overview .feature-card:nth-child(3)::before {
  content: "⌁";
}

.service-overview .feature-card:nth-child(4)::before {
  content: "⌗";
}

.service-overview .feature-card:nth-child(5)::before {
  content: "✓";
}

.service-overview .feature-card h3,
.page-overview .feature-card h3,
.home-overview .feature-card h3 {
  color: var(--ink);
  font-size: 1.08rem;
  text-transform: uppercase;
}

.service-overview .feature-card p,
.page-overview .feature-card p,
.home-overview .feature-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.service-detail-list {
  background: var(--surface);
}

.service-detail {
  scroll-margin-top: 5.5rem;
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(19, 33, 31, 0.08);
  background:
    linear-gradient(90deg, rgba(116, 167, 179, 0.07), transparent 45%),
    var(--surface);
}

.service-detail:nth-child(even) {
  background:
    linear-gradient(270deg, rgba(116, 167, 179, 0.08), transparent 45%),
    #ffffff;
}

.service-media {
  overflow: hidden;
  border: 1px solid rgba(19, 33, 31, 0.12);
  border-radius: 8px;
  background: #071014;
  aspect-ratio: 16 / 10;
  box-shadow: 0 1.2rem 3rem rgba(8, 24, 29, 0.13);
}

.service-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-copy h2 {
  max-width: 11ch;
}

.service-copy .lede {
  color: var(--muted);
}

.service-copy p:not(.eyebrow):not(.lede) {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  border-top: 1px solid rgba(19, 33, 31, 0.09);
  font-size: 0.9rem;
}

.emeren-launch {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(21rem, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(115deg, rgba(7, 16, 20, 0.94), rgba(8, 30, 38, 0.9) 52%, rgba(238, 247, 246, 0.12)),
    radial-gradient(circle at 78% 18%, rgba(116, 167, 179, 0.4), transparent 24rem),
    radial-gradient(circle at 20% 86%, rgba(140, 166, 141, 0.24), transparent 22rem),
    #071014;
}

.emeren-launch::before {
  opacity: 0.36;
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(116, 167, 179, 0.2) 11.1%, transparent 11.35%),
    linear-gradient(90deg, transparent 0 41%, rgba(140, 166, 141, 0.2) 41.1%, transparent 41.35%),
    linear-gradient(180deg, transparent 0 31%, rgba(116, 167, 179, 0.14) 31.1%, transparent 31.35%),
    radial-gradient(circle at 72% 31%, rgba(116, 167, 179, 0.96) 0 0.12rem, transparent 0.18rem),
    radial-gradient(circle at 80% 54%, rgba(140, 166, 141, 0.9) 0 0.13rem, transparent 0.2rem),
    repeating-linear-gradient(0deg, transparent 0 1.05rem, rgba(116, 167, 179, 0.13) 1.05rem 1.09rem, transparent 1.09rem 2.1rem);
}

.emeren-launch::after {
  inset: 8% auto 12% 54%;
  width: min(34rem, 39vw);
  opacity: 0.2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(116, 167, 179, 0.02)),
    repeating-linear-gradient(90deg, rgba(244, 248, 248, 0.14) 0 0.06rem, transparent 0.06rem 5.6rem),
    repeating-linear-gradient(180deg, rgba(244, 248, 248, 0.1) 0 0.06rem, transparent 0.06rem 3.8rem);
}

.launch-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.launch-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.launch-proof span {
  min-height: 2.3rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.9rem;
  border: 1px solid rgba(116, 167, 179, 0.34);
  border-radius: 999px;
  color: rgba(244, 248, 248, 0.82);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 750;
}

.launch-form-panel {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  border: 1px solid rgba(116, 167, 179, 0.34);
  border-radius: 8px;
  color: #f4f8f8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(7, 16, 20, 0.74);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.08);
}

.launch-form-panel h2 {
  max-width: none;
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.launch-form-panel p:not(.eyebrow) {
  color: rgba(244, 248, 248, 0.74);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.contact-form .message-field,
.contact-form .button,
.contact-form .form-status {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.72rem 0.8rem;
  color: #f4f8f8;
  border: 1px solid rgba(116, 167, 179, 0.32);
  border-radius: 6px;
  background: rgba(4, 12, 15, 0.74);
  font: inherit;
}

.contact-form textarea {
  min-height: 5.8rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(116, 167, 179, 0.5);
  outline-offset: 2px;
}

.form-status {
  min-height: 1.4rem;
  color: rgba(244, 248, 248, 0.78);
  font-size: 0.9rem;
}

.launch-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: clamp(1.4rem, 3vw, 2rem);
  padding-bottom: clamp(1.4rem, 3vw, 2rem);
  background:
    linear-gradient(90deg, rgba(238, 247, 246, 0.96), rgba(255, 255, 255, 0.92)),
    var(--panel);
}

.launch-capabilities article {
  min-height: 9.5rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border-right: 1px solid rgba(116, 167, 179, 0.24);
}

.launch-capabilities article:last-child {
  border-right: 0;
}

.launch-capabilities span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accentStrong);
  font-size: 0.78rem;
  font-weight: 900;
}

.launch-capabilities h2 {
  max-width: none;
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  text-transform: uppercase;
}

.launch-capabilities p {
  max-width: 26rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .service-detail {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-overview .feature-grid,
  .page-overview .feature-grid,
  .home-overview .feature-grid {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) .service-media {
    order: 0;
  }

  .emeren-launch,
  .launch-capabilities {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .emeren-launch {
    min-height: auto;
  }

  .emeren-launch::after {
    inset: 10% 1rem auto auto;
    width: min(20rem, 70vw);
    height: 16rem;
  }

  .launch-capabilities article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(116, 167, 179, 0.24);
  }

  .launch-capabilities article:last-child {
    border-bottom: 0;
  }
}
