:root {
  --ink: #0c0c0c;
  --muted: #66615d;
  --line: rgba(12, 12, 12, 0.12);
  --white: #fff;
  --soft: #f6f4f1;
  --red: #cc2027;
  --green: #84b600;
  --web: #1d4ed8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 20%, rgba(204, 32, 39, 0.16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(29, 78, 216, 0.14), transparent 32%),
    radial-gradient(circle at 64% 90%, rgba(132, 182, 0, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff, #f7f7f4);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.landing-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  margin: 0 auto;
  padding: 30px 0 24px;
}

.landing-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(12, 12, 12, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 12, 12, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 82%, transparent);
}

.landing-backdrop span {
  position: absolute;
  width: 52vw;
  height: 1px;
  left: -10vw;
  background: linear-gradient(90deg, transparent, rgba(204, 32, 39, 0.32), rgba(29, 78, 216, 0.28), transparent);
  transform: rotate(-18deg);
  animation: landing-line 9s linear infinite;
}

.landing-backdrop span:nth-child(1) {
  top: 24%;
}

.landing-backdrop span:nth-child(2) {
  top: 54%;
  animation-delay: -3s;
}

.landing-backdrop span:nth-child(3) {
  top: 78%;
  animation-delay: -6s;
}

@keyframes landing-line {
  from {
    translate: -20vw 0;
  }

  to {
    translate: 130vw 0;
  }
}

.landing-header,
.landing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.landing-header {
  position: relative;
  z-index: 8;
  min-height: 90px;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-shell:has(.system-card-solar:hover) .landing-header,
.landing-shell:has(.system-card-solar:focus-visible) .landing-header {
  transform: translateX(calc(-1 * min(25vw, 300px)));
}

.landing-shell:has(.system-card-web:hover) .landing-header,
.landing-shell:has(.system-card-web:focus-visible) .landing-header {
  transform: translateX(min(25vw, 300px));
}

.landing-brand {
  --brand-logo-width: clamp(225px, 27vw, 345px);
  --brand-logo-height: calc(var(--brand-logo-width) * 0.3768);
  --brand-subtitle-size: calc(var(--brand-logo-width) * 0.104);
  width: var(--brand-logo-width);
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 18px 34px rgba(12, 12, 12, 0.18));
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.landing-brand img {
  width: var(--brand-logo-width);
  height: var(--brand-logo-height);
  display: block;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.landing-brand-system {
  width: calc(var(--brand-logo-width) * 0.96);
  display: block;
  opacity: 0;
  color: #242321;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--brand-subtitle-size);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  text-align: center;
  text-transform: none;
  margin-top: -2px;
  transform: translateY(-8px) skewX(-4deg) scaleX(1.14);
  transform-origin: center;
  transition: opacity 240ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  grid-area: 2 / 1;
}

.landing-brand-system span {
  font-weight: 400;
  text-transform: uppercase;
}

.landing-brand-system-solar span {
  color: var(--red);
}

.landing-brand-system-web span {
  color: var(--web);
}

.landing-shell:has(.system-card-solar:hover) .landing-brand,
.landing-shell:has(.system-card-solar:focus-visible) .landing-brand,
.landing-shell:has(.system-card-web:hover) .landing-brand,
.landing-shell:has(.system-card-web:focus-visible) .landing-brand {
  transform: scale(0.92);
  filter: drop-shadow(0 18px 36px rgba(255, 255, 255, 0.28)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

.landing-shell:has(.system-card-solar:hover) .landing-brand-system-solar,
.landing-shell:has(.system-card-solar:focus-visible) .landing-brand-system-solar,
.landing-shell:has(.system-card-web:hover) .landing-brand-system-web,
.landing-shell:has(.system-card-web:focus-visible) .landing-brand-system-web {
  opacity: 1;
  transform: translateY(0) skewX(-4deg) scaleX(1.14);
}

.landing-header p,
.landing-footer {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.landing-hero {
  display: grid;
  align-content: center;
  gap: 24px;
}

.landing-copy {
  width: min(760px, 100%);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.landing-copy p:last-child {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.system-card {
  position: relative;
  min-height: min(58vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  isolation: isolate;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.system-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.2), transparent 70%);
  transform: translateX(-120%);
  transition: opacity 220ms ease;
  pointer-events: none;
}

.system-card:hover {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
  transform: translateY(-4px);
}

.system-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.88);
  outline-offset: 4px;
}

.system-card:hover::before {
  opacity: 1;
  animation: card-sheen 900ms ease forwards;
}

@keyframes card-sheen {
  to {
    transform: translateX(120%);
  }
}

.system-card img,
.system-card-overlay,
.web-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.system-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 280ms ease;
  z-index: -2;
}

.system-card:hover img {
  transform: scale(1.075);
}

.system-card-overlay {
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.02), rgba(12, 12, 12, 0.88)),
    radial-gradient(circle at 16% 16%, rgba(132, 182, 0, 0.34), transparent 28%);
  z-index: -1;
}

.system-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 32px;
  color: var(--white);
  transition: transform 320ms ease, opacity 240ms ease;
}

.system-card:hover .system-card-content,
.system-card:focus-visible .system-card-content {
  transform: translateY(8px);
}

.system-label {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.system-card strong {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.95;
}

.system-card-content > span:not(.system-label) {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
  line-height: 1.5;
}

.system-card-button {
  width: fit-content;
  margin-top: 8px;
  padding: 11px 14px;
  border-radius: 6px;
  color: var(--white);
  background: var(--red);
  font-style: normal;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.system-card:hover .system-card-button {
  transform: translateX(5px);
}

.system-card-web {
  background:
    radial-gradient(circle at 80% 12%, rgba(132, 182, 0, 0.18), transparent 28%),
    linear-gradient(135deg, #0d0d0d, #142134 52%, #1d4ed8);
}

.system-card-web img {
  opacity: 0.9;
  filter: saturate(1.08) contrast(1.06);
}

.system-card-web .system-card-overlay {
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.04), rgba(12, 12, 12, 0.84)),
    radial-gradient(circle at 20% 18%, rgba(132, 182, 0, 0.2), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(29, 78, 216, 0.2), transparent 30%);
}

.system-card-web .system-card-content {
  position: relative;
  z-index: 2;
}

.system-card-web .system-card-button {
  background: var(--web);
}

.web-visual {
  z-index: 1;
  opacity: 0.26;
  transition: opacity 260ms ease, filter 260ms ease;
}

.system-card-web:hover .web-visual,
.system-card-web:focus-visible .web-visual {
  opacity: 0.18;
  filter: brightness(1.28);
}

.web-visual span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.web-visual span:nth-child(1) {
  width: 58%;
  height: 42%;
  top: 12%;
  right: 8%;
}

.web-visual span:nth-child(2) {
  width: 42%;
  height: 28%;
  top: 40%;
  left: 9%;
}

.web-visual span:nth-child(3) {
  width: 34%;
  height: 22%;
  right: 14%;
  bottom: 13%;
}

.web-visual i {
  position: absolute;
  width: 64%;
  height: 2px;
  left: 18%;
  top: 52%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.54), transparent);
  transform: rotate(-18deg);
}

.landing-footer a {
  color: var(--ink);
}

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

@media (max-width: 820px) {
  .landing-shell {
    width: min(100% - 28px, 620px);
    padding-top: 22px;
  }

  .landing-header {
    min-height: 82px;
  }

  .landing-shell:has(.system-card-solar:hover) .landing-header,
  .landing-shell:has(.system-card-solar:focus-visible) .landing-header,
  .landing-shell:has(.system-card-web:hover) .landing-header,
  .landing-shell:has(.system-card-web:focus-visible) .landing-header {
    transform: none;
  }

  .landing-header,
  .landing-footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

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

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