:root {
  color-scheme: dark;
  font-family: "Rajdhani", system-ui, sans-serif;
  --bg: #07080d;
  --panel: #11131c;
  --panel-alt: #0b0d14;
  --accent: #ffeb3b;
  --accent-2: #00f0ff;
  --accent-3: #ff2db2;
  --text: #f8f8ff;
  --muted: #a5b0cc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #1b1f33 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.4;
  z-index: 0;
}

.hero {
  position: relative;
  padding: 2.5rem 6vw 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), transparent 40%),
    radial-gradient(circle at right, rgba(255, 45, 178, 0.25), transparent 45%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 1;
  position: relative;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.logo__accent {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.4rem;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
}

.nav__links a,
.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.nav__links a::after,
.footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__links a:hover::after,
.footer a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  background: transparent;
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  padding: 0.6rem 1.2rem;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 2.5rem;
  align-items: end;
  margin-top: 4rem;
}

.hero__content {
  max-width: 640px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.hero__tag {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  color: var(--accent-2);
  letter-spacing: 0.3rem;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 1rem 0;
  font-family: "Orbitron", sans-serif;
}

.hero__subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 0;
  border: 1px solid transparent;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
}

.btn--primary {
  background: var(--accent);
  color: #0c0c0c;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.hero__stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.sf-projection {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  animation: projection-float 4s ease-in-out infinite;
}

.sf-projection__beam {
  position: absolute;
  top: -18px;
  right: 120px;
  width: 160px;
  height: 260px;
  background: linear-gradient(
    to bottom,
    rgba(0, 240, 255, 0.56),
    rgba(0, 240, 255, 0.14) 56%,
    rgba(0, 240, 255, 0)
  );
  clip-path: polygon(50% 0%, 98% 100%, 2% 100%);
  filter: blur(1.5px);
  opacity: 0.85;
  animation: beam-pulse 2.8s ease-in-out infinite;
}

.sf-projection__screen {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 12 / 11;
  border: 2px solid rgba(0, 240, 255, 0.45);
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 45, 178, 0.45), transparent 40%),
    linear-gradient(180deg, rgba(0, 19, 39, 0.92), rgba(6, 12, 22, 0.98));
  box-shadow:
    0 0 32px rgba(0, 240, 255, 0.24),
    inset 0 0 26px rgba(0, 0, 0, 0.82);
  overflow: hidden;
  image-rendering: pixelated;
}

.sf-projection__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.09) 1px,
    transparent 1px,
    transparent 8px
  );
  opacity: 0.18;
  pointer-events: none;
  animation: scan-roll 7s linear infinite;
}

.sf-projection__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.22), transparent 28%),
    linear-gradient(180deg, transparent 55%, rgba(0, 240, 255, 0.12));
  mix-blend-mode: screen;
  pointer-events: none;
}

.sf-projection__stars {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 82px;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(206, 255, 255, 0.95);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.65);
  animation: star-twinkle 2.8s steps(2, end) infinite;
}

.star--1 {
  left: 10%;
  top: 14%;
}

.star--2 {
  left: 26%;
  top: 32%;
  animation-delay: 0.45s;
}

.star--3 {
  left: 49%;
  top: 8%;
  animation-delay: 1.1s;
}

.star--4 {
  left: 63%;
  top: 41%;
  animation-delay: 0.8s;
}

.star--5 {
  left: 78%;
  top: 20%;
  animation-delay: 1.4s;
}

.star--6 {
  left: 91%;
  top: 34%;
  animation-delay: 0.2s;
}

.sf-projection__sun {
  position: absolute;
  top: 22px;
  right: 34px;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 235, 59, 0.9);
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 235, 59, 0.95),
    rgba(255, 235, 59, 0.95) 8px,
    rgba(255, 235, 59, 0.72) 8px,
    rgba(255, 235, 59, 0.72) 16px
  );
  box-shadow: 0 0 18px rgba(255, 235, 59, 0.45);
  animation: sun-flicker 2.4s steps(2, end) infinite;
}

.sf-projection__hills {
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 128px;
  height: 70px;
  background: linear-gradient(180deg, rgba(23, 45, 78, 0.72), rgba(4, 13, 28, 0.95));
  clip-path: polygon(
    0% 82%,
    10% 62%,
    18% 68%,
    26% 50%,
    39% 63%,
    49% 47%,
    62% 58%,
    73% 43%,
    84% 60%,
    100% 76%,
    100% 100%,
    0% 100%
  );
}

.sf-projection__skyline {
  position: absolute;
  inset: auto 8px 70px 8px;
  height: 154px;
}

.tower {
  position: absolute;
  bottom: 0;
  border: 1px solid rgba(0, 240, 255, 0.55);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 240, 255, 0.25),
      rgba(0, 240, 255, 0.25) 6px,
      rgba(5, 12, 24, 0.78) 6px,
      rgba(5, 12, 24, 0.78) 12px
    ),
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 7px,
      rgba(0, 240, 255, 0.22) 7px,
      rgba(0, 240, 255, 0.22) 8px
    ),
    #07101d;
  box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.24);
  animation: tower-flicker 3.5s steps(2, end) infinite;
}

.landmark {
  position: absolute;
  bottom: 0;
  border: 1px solid rgba(0, 240, 255, 0.62);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.28);
  animation: tower-flicker 3s steps(2, end) infinite;
}

.landmark--ferry {
  left: 18px;
  width: 28px;
  height: 30px;
  background:
    repeating-linear-gradient(
      to right,
      rgba(0, 240, 255, 0.35),
      rgba(0, 240, 255, 0.35) 4px,
      rgba(8, 16, 34, 0.75) 4px,
      rgba(8, 16, 34, 0.75) 6px
    ),
    #081325;
}

.landmark--ferry::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 100%;
  width: 8px;
  height: 18px;
  border: 1px solid rgba(255, 235, 59, 0.8);
  background: rgba(11, 20, 36, 0.92);
}

.landmark--coit {
  left: 58px;
  width: 12px;
  height: 52px;
  border-radius: 3px 3px 0 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 240, 255, 0.36),
      rgba(0, 240, 255, 0.36) 6px,
      rgba(8, 16, 34, 0.85) 6px,
      rgba(8, 16, 34, 0.85) 12px
    ),
    #081325;
  animation-delay: 0.6s;
}

.landmark--transamerica {
  left: 92px;
  width: 30px;
  height: 124px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background:
    repeating-linear-gradient(
      to right,
      rgba(0, 240, 255, 0.35),
      rgba(0, 240, 255, 0.35) 3px,
      rgba(7, 14, 31, 0.85) 3px,
      rgba(7, 14, 31, 0.85) 6px
    ),
    #09172a;
  animation-delay: 0.2s;
}

.landmark--salesforce {
  left: 156px;
  width: 28px;
  height: 136px;
  border-radius: 7px 7px 0 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 240, 255, 0.24),
      rgba(0, 240, 255, 0.24) 6px,
      rgba(8, 16, 34, 0.78) 6px,
      rgba(8, 16, 34, 0.78) 11px
    ),
    #071120;
  animation-delay: 1s;
}

.landmark--salesforce::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: 100%;
  width: 4px;
  height: 8px;
  background: rgba(255, 235, 59, 0.9);
}

.tower--1 {
  left: 42px;
  width: 18px;
  height: 66px;
}

.tower--2 {
  left: 124px;
  width: 26px;
  height: 82px;
  animation-delay: 0.35s;
}

.tower--3 {
  left: 188px;
  width: 24px;
  height: 98px;
  animation-delay: 0.7s;
}

.tower--4 {
  left: 206px;
  width: 48px;
  height: 118px;
  animation-delay: 1.1s;
}

.tower--5 {
  left: 245px;
  width: 28px;
  height: 74px;
  animation-delay: 0.9s;
}

.tower--6 {
  left: 266px;
  width: 24px;
  height: 102px;
  animation-delay: 1.4s;
}

.tower--7 {
  left: 286px;
  width: 18px;
  height: 80px;
  animation-delay: 0.55s;
}

.tower--8 {
  left: 301px;
  width: 42px;
  height: 120px;
  animation-delay: 1.7s;
}

.sf-projection__bridge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 68px;
  height: 18px;
  border-top: 2px solid rgba(255, 121, 71, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.44);
  background: repeating-linear-gradient(
    to right,
    rgba(255, 121, 71, 0.72),
    rgba(255, 121, 71, 0.72) 10px,
    transparent 10px,
    transparent 18px
  );
  animation: bridge-signal 1.9s steps(2, end) infinite;
}

.sf-projection__bridge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 235, 59, 0.9),
    rgba(255, 235, 59, 0.9) 3px,
    transparent 3px,
    transparent 10px
  );
}

.pillar {
  position: absolute;
  bottom: 0;
  width: 9px;
  background: rgba(255, 121, 71, 0.88);
  box-shadow: 0 0 10px rgba(255, 121, 71, 0.35);
}

.pillar--1 {
  left: 16%;
  height: 50px;
}

.pillar--2 {
  left: 48%;
  height: 62px;
}

.pillar--3 {
  left: 82%;
  height: 46px;
}

.cable {
  position: absolute;
  bottom: 15px;
  width: 2px;
  height: 52px;
  background: rgba(255, 175, 134, 0.82);
  transform-origin: bottom center;
}

.cable--1 {
  left: 20%;
  transform: rotate(-17deg);
}

.cable--2 {
  left: 33%;
  transform: rotate(-8deg);
}

.cable--3 {
  left: 50%;
  transform: rotate(0deg);
}

.cable--4 {
  left: 64%;
  transform: rotate(8deg);
}

.cable--5 {
  left: 82%;
  transform: rotate(16deg);
}

.sf-projection__island {
  position: absolute;
  left: 214px;
  bottom: 67px;
  width: 58px;
  height: 13px;
  border: 1px solid rgba(0, 240, 255, 0.55);
  background: linear-gradient(180deg, rgba(25, 44, 72, 0.85), rgba(7, 17, 30, 0.95));
}

.sf-projection__ferry {
  position: absolute;
  left: 300px;
  bottom: 61px;
  width: 30px;
  height: 9px;
  border: 1px solid rgba(255, 235, 59, 0.75);
  background: rgba(14, 31, 52, 0.95);
  animation: ferry-bob 4s ease-in-out infinite;
}

.sf-projection__ferry::before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 100%;
  width: 12px;
  height: 5px;
  border: 1px solid rgba(255, 235, 59, 0.75);
  background: rgba(14, 31, 52, 0.95);
}

.sf-projection__water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  background:
    linear-gradient(to top, rgba(0, 13, 31, 0.95), rgba(13, 36, 66, 0.65) 56%, rgba(22, 58, 96, 0.42)),
    repeating-linear-gradient(
      to right,
      rgba(0, 240, 255, 0.42),
      rgba(0, 240, 255, 0.42) 10px,
      rgba(8, 26, 50, 0.94) 10px,
      rgba(8, 26, 50, 0.94) 18px
    );
  animation: water-shift 4.6s linear infinite;
}

.sf-projection__foreground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(to top, rgba(4, 6, 12, 0.95), rgba(10, 15, 26, 0.78));
}

.house {
  position: absolute;
  bottom: 8px;
  width: 18px;
  height: 12px;
  border: 1px solid rgba(255, 121, 71, 0.7);
  background:
    linear-gradient(to bottom, rgba(255, 188, 96, 0.18), rgba(40, 12, 26, 0.82)),
    #120b18;
}

.house::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 100%;
  height: 4px;
  background: rgba(255, 121, 71, 0.78);
}

.house--1 {
  left: 18px;
}

.house--2 {
  left: 43px;
}

.house--3 {
  left: 68px;
}

.house--4 {
  left: 93px;
}

.tram {
  position: absolute;
  left: 132px;
  bottom: 8px;
  width: 28px;
  height: 12px;
  border: 1px solid rgba(255, 235, 59, 0.9);
  background:
    repeating-linear-gradient(
      to right,
      rgba(255, 235, 59, 0.35),
      rgba(255, 235, 59, 0.35) 5px,
      rgba(62, 24, 10, 0.75) 5px,
      rgba(62, 24, 10, 0.75) 9px
    ),
    rgba(93, 39, 15, 0.9);
  box-shadow: 0 0 10px rgba(255, 235, 59, 0.26);
  animation: tram-run 9s linear infinite;
}

.stat__value {
  font-size: 2rem;
  font-family: "Orbitron", sans-serif;
  color: var(--accent-3);
}

.stat__label {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
}

main {
  position: relative;
  z-index: 1;
}

.panel {
  padding: 4rem 6vw;
  background: var(--panel);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.panel h2 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 1.5rem;
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.1);
}

.card h3 {
  color: var(--accent-2);
  margin-top: 0;
}

.initiative {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.initiative__status {
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(120deg, rgba(255, 45, 178, 0.15), transparent 60%);
  padding: 2rem;
  border: 1px solid rgba(255, 45, 178, 0.3);
}

.cta__form {
  display: grid;
  gap: 1rem;
  min-width: min(320px, 100%);
}

.cta__form input {
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.footer {
  padding: 2rem 6vw;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #06070c;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

@keyframes projection-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes beam-pulse {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scan-roll {
  0% {
    transform: translateY(-18px);
  }
  100% {
    transform: translateY(18px);
  }
}

@keyframes tower-flicker {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.23);
  }
}

@keyframes sun-flicker {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes bridge-signal {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes water-shift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 36px 0;
  }
}

@keyframes ferry-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes tram-run {
  0% {
    transform: translateX(0);
  }
  48% {
    transform: translateX(168px);
  }
  49% {
    opacity: 1;
  }
  50% {
    transform: translateX(168px);
    opacity: 0;
  }
  51% {
    transform: translateX(-110px);
    opacity: 0;
  }
  52%,
  100% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .sf-projection {
    min-height: 300px;
    margin-top: 1rem;
    justify-content: flex-start;
  }

  .sf-projection__screen {
    width: min(100%, 420px);
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
