:root {
  --orange: #ff6a00;
  --orange-bright: #ff8c1a;
  --orange-soft: rgba(255, 106, 0, .18);
  --text: #f0f6fc;
  --muted: #8b949e;
  --panel: rgba(9, 12, 16, .72);
  --card: rgba(15, 19, 24, .82);
  --line: rgba(240, 246, 252, .12);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #050608;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(1, 3, 5, .72), rgba(2, 4, 6, .92)),
    url("assets/crashtm-background.jpg") center / cover fixed no-repeat,
    #050608;
}

.ambient-grid,
.scanlines,
.ambient-glow,
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 80%);
  animation: grid-drift 22s linear infinite;
}

.scanlines {
  z-index: 4;
  opacity: .18;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,.018) 0,
    rgba(255,255,255,.018) 1px,
    transparent 1px,
    transparent 4px
  );
}

.ambient-glow {
  filter: blur(70px);
  opacity: .34;
}

.ambient-glow-one {
  width: 30rem;
  height: 30rem;
  left: -8rem;
  top: 8%;
  border-radius: 50%;
  background: rgba(255, 106, 0, .20);
  animation: glow-one 13s ease-in-out infinite alternate;
}

.ambient-glow-two {
  width: 24rem;
  height: 24rem;
  inset: auto -6rem 8% auto;
  border-radius: 50%;
  background: rgba(255, 140, 26, .13);
  animation: glow-two 17s ease-in-out infinite alternate;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 140, 26, .5);
  box-shadow: 0 0 10px rgba(255, 106, 0, .45);
  animation: float-particle var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 14px;
  position: relative;
  z-index: 5;
}

.panel {
  width: min(590px, 100%);
  padding: clamp(24px, 4vw, 38px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 35%),
    var(--panel);
  box-shadow:
    0 30px 90px rgba(0,0,0,.68),
    0 0 0 1px rgba(255,106,0,.04),
    0 0 60px rgba(255,106,0,.08);
  backdrop-filter: blur(18px) saturate(125%);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,140,26,.58), rgba(255,255,255,.06) 36%, transparent 62%, rgba(255,106,0,.24));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.panel-shine {
  position: absolute;
  width: 220px;
  height: 700px;
  top: -250px;
  left: -230px;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.075), transparent);
  animation: panel-shine 11s ease-in-out infinite;
  pointer-events: none;
}

.brand {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.status-pill {
  width: fit-content;
  margin: 0 auto 15px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,106,0,.26);
  border-radius: 999px;
  color: #d5dde5;
  background: rgba(8,10,13,.58);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.status-dot,
.activity-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 12px rgba(255,106,0,.9);
  animation: pulse 1.8s ease-in-out infinite;
}

.brand-mark {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: .84;
  letter-spacing: -.035em;
  text-shadow: 0 6px 24px rgba(0,0,0,.78);
}

.brand-major {
  font-size: clamp(3.85rem, 12vw, 6.2rem);
  font-weight: 950;
  color: #fff;
}

.brand-minor {
  margin-inline: .02em;
  font-size: clamp(2.3rem, 7vw, 3.75rem);
  font-weight: 760;
  color: #dfe5eb;
  transform: translateY(-.05em);
}

.topics {
  margin: 18px 0 7px;
  color: var(--orange-bright);
  font-size: clamp(.72rem, 2vw, .88rem);
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.topics span {
  color: #c0c7cf;
  margin-inline: .18em;
}

.creating {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}

.creating.is-visible {
  opacity: 1;
  transform: none;
}

.activity-card {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 13px;
  background: rgba(9,12,16,.53);
}

.activity-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e8edf2;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.activity-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 9px;
  color: var(--muted);
  font-size: .76rem;
}

.activity-items span::before {
  content: "●";
  margin-right: 6px;
  color: var(--orange);
  font-size: .55rem;
  vertical-align: .1em;
}

.social-links {
  display: grid;
  gap: 10px;
}

.social-card {
  min-height: 60px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 13px;
  padding: 9px 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,106,0,.37);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(255,255,255,.025), transparent 35%),
    var(--card);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .38s ease,
    transform .25s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.social-card.is-visible {
  opacity: 1;
  transform: none;
}

.social-card:hover {
  transform: translateY(-2px) scale(1.008);
  border-color: var(--orange-bright);
  background:
    linear-gradient(110deg, rgba(255,106,0,.085), transparent 42%),
    rgba(17,21,27,.96);
  box-shadow:
    0 13px 30px rgba(0,0,0,.40),
    0 0 24px rgba(255,106,0,.16);
}

.social-card:focus-visible {
  outline: 3px solid rgba(255,140,26,.42);
  outline-offset: 3px;
}

.featured-card {
  min-height: 70px;
  border-color: rgba(255,140,26,.70);
  background:
    linear-gradient(110deg, rgba(255,106,0,.13), transparent 48%),
    rgba(17,20,24,.94);
}

.icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  transform-origin: center;
  transition: transform .25s ease, color .25s ease;
}

.social-card:hover .icon {
  transform: rotate(-4deg) scale(1.08);
  color: var(--orange-bright);
}

.icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.car-icon svg {
  width: 31px;
  height: 31px;
}

.x-icon svg {
  width: 25px;
  height: 25px;
}

.card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label {
  text-align: center;
  font-size: .9rem;
  font-weight: 850;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.featured-card .label {
  letter-spacing: .11em;
}

.sub-label {
  margin-top: 3px;
  color: var(--orange-bright);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.arrow {
  color: var(--orange-bright);
  font-size: 1.75rem;
  line-height: 1;
  text-align: right;
  transition: transform .22s ease;
}

.social-card:hover .arrow {
  transform: translateX(4px);
}

.light-trail {
  position: absolute;
  width: 90px;
  height: 180%;
  top: -40%;
  left: -120px;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,140,26,.18), transparent);
  transition: left .48s ease;
}

.social-card:hover .light-trail {
  left: calc(100% + 30px);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 2px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,0,.62), transparent);
}

.footer {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.footer a {
  color: var(--orange-bright);
  text-decoration: none;
  font-weight: 850;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffb266;
  text-decoration: underline;
}

@keyframes grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(56px, 56px, 0); }
}

@keyframes glow-one {
  from { transform: translate3d(0, -12px, 0) scale(.95); }
  to { transform: translate3d(105px, 70px, 0) scale(1.12); }
}

@keyframes glow-two {
  from { transform: translate3d(0, 0, 0) scale(.9); }
  to { transform: translate3d(-120px, -80px, 0) scale(1.15); }
}

@keyframes panel-shine {
  0%, 56% { left: -230px; opacity: 0; }
  63% { opacity: 1; }
  78% { left: calc(100% + 180px); opacity: 0; }
  100% { left: calc(100% + 180px); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: .55; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.16); }
}

@keyframes float-particle {
  from { transform: translate3d(0, 105vh, 0); opacity: 0; }
  12% { opacity: .7; }
  85% { opacity: .35; }
  to { transform: translate3d(var(--drift), -12vh, 0); opacity: 0; }
}

@media (max-width: 560px) {
  body {
    background-attachment: scroll;
  }

  .shell {
    padding: 16px 10px;
  }

  .panel {
    padding: 24px 15px;
    border-radius: 18px;
  }

  .brand-major {
    font-size: clamp(3rem, 19vw, 4.65rem);
  }

  .brand-minor {
    font-size: clamp(1.85rem, 11vw, 2.9rem);
  }

  .topics {
    letter-spacing: .18em;
  }

  .creating {
    letter-spacing: .14em;
  }

  .activity-items {
    gap: 7px 11px;
    font-size: .7rem;
  }

  .social-card {
    grid-template-columns: 36px 1fr 21px;
    min-height: 57px;
    padding-inline: 11px;
  }

  .featured-card {
    min-height: 66px;
  }

  .label {
    font-size: .79rem;
    letter-spacing: .13em;
  }

  .featured-card .label {
    font-size: .76rem;
    letter-spacing: .08em;
  }
}

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

  .creating,
  .social-card {
    opacity: 1;
    transform: none;
  }

  .particles {
    display: none;
  }
}
