:root {
  --bg: #000000;
  --bg-soft: #000000;
  --text: #f8f4f4;
  --muted: #c6b7b8;
  --accent: #ff2a2f;
  --accent-2: #ff5a40;
  --card-border: rgba(255, 255, 255, 0.14);
  --surface: rgba(25, 7, 8, 0.72);
  --surface-strong: rgba(12, 2, 3, 0.86);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
}

body::before,
body::after {
  display: none;
}

body::before {
  display: none;
}

body::after {
  display: none;
}

.page::before {
  display: none;
}

.page {
  position: relative;
  width: min(1200px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 0 100px;
}

.topbar {
  height: 80px;
  padding: 24px 100px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: none;
  background: transparent;
  border-bottom: 0;
}

.brand {
  width: 140px;
  height: 40px;
  display: inline-flex;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-spacer {
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.5;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.btn.btn--confess {
  background: #000;
  border: 1px solid var(--accent);
  box-shadow: none;
  color: #ffffff;
  text-decoration: none;
}

.btn.btn--confess:hover {
  background: var(--accent);
  border-color: #000;
  color: #000000;
  box-shadow: none;
  filter: none;
}

.menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  border-radius: 10px;
  background: #d8cccc;
}

.menu-btn span:nth-child(1) {
  top: 7px;
}

.menu-btn span:nth-child(2) {
  top: 15px;
}

.menu-btn span:nth-child(3) {
  top: 23px;
}

.hero {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 76px 100px 60px;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.identity-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.identity-option {
  border: 1px solid rgba(255, 42, 47, 0.4);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: #8e8081;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.5px;
  min-width: 192px;
  min-height: 48px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.identity-option:hover {
  color: #ffd4d6;
  border-color: rgba(255, 42, 47, 0.7);
}

.identity-option.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #110103;
  box-shadow:
    0 10px 24px rgba(154, 16, 22, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.join-card {
  width: min(400px);
  margin-top: 8px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: #040404;
  padding: 20px 20px 18px;
  box-shadow:
    0 0 0 1px rgba(255, 42, 47, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.join-card h2 {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 20px;
  letter-spacing: -0.8px;
}

.join-title-crab {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.join-command {
  display: block;
  text-decoration: none;
  color: #ff8589;
  background: #111214;
  border: 1px solid rgba(255, 42, 47, 0.24);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
  margin-bottom: 14px;
  word-break: break-word;
}

.join-command:hover {
  color: #ffc0c3;
  border-color: rgba(255, 42, 47, 0.45);
}

.join-steps {
  margin: 0;
  padding-left: 24px;
}

.join-steps li {
  color: #b9a9aa;
  font-size: 15px;
  line-height: 1.5;
}

.join-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -3.8px;
  line-height: 1.08;
  text-wrap: balance;
  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(255, 50, 56, 0.16);
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -1px;
  padding: 8px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  background: linear-gradient(
    135deg,
    rgba(255, 42, 47, 0.92),
    rgba(255, 90, 64, 0.92)
  );
  box-shadow:
    0 10px 24px rgba(154, 16, 22, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn--small {
  min-height: 25px;
}

.btn--small:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(154, 16, 22, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  filter: brightness(1.03);
  color: #100203;
}

.hero-shot {
  width: 400px;
  aspect-ratio: 0.8762886598;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  flex: none;
  background: #010101;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 42, 47, 0.1);
}

.tweet-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 22px;
  background: #1a1a1a;
}

.tweet-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tweet-avatar {
  width: clamp(30px, 8vw, 40px);
  height: clamp(30px, 8vw, 40px);
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  font-size: clamp(16px, 4vw, 20px);
  box-shadow: 0 6px 18px rgba(255, 42, 47, 0.25);
}

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

.tweet-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tweet-name-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tweet-meta strong {
  font-size: 12px;
  letter-spacing: -0.4px;
}

.tweet-verified {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
}

.tweet-meta span {
  font-size: 12px;
  color: #827677;
}

.tweet-message {
  margin: 14px 0 14px;
  font-size: 15px;
  color: #e7dede;
  letter-spacing: -0.3px;
}

.confession-frame {
  flex: 1;
  border: 10px solid var(--accent);
  border-radius: 14px;
  background: #020202;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 16px 26px;
  box-shadow: inset 0 0 22px rgba(253, 252, 252, 0.08);
}

.confession-crab {
  width: 100px;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(255, 42, 47, 0.45));
}

.confession-crab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.confession-frame p {
  margin: auto;
  color: #f2666a;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.1px;
}

.seen-in {
  padding: 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
}

.seen-in p {
  margin: 0;
  color: var(--muted);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -1px;
}

.logo-track-mask {
  height: 118px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 12.5%,
    rgba(0, 0, 0, 1) 87.5%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 12.5%,
    rgba(0, 0, 0, 1) 87.5%,
    rgba(0, 0, 0, 0) 100%
  );
}

.logo-track {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: scroll-logos 32s linear infinite;
}

.logo-track li {
  width: 200px;
  aspect-ratio: 2 / 1;
  flex: none;
}

.logo-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scroll-logos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 5px));
  }
}

@media (min-width: 810px) and (max-width: 1199px) {
  .page {
    width: min(810px, 100%);
  }

  .confession-frame p {
    font-size: 14px;
  }

  .topbar {
    padding: 24px 50px;
  }

  .hero {
    padding: 42px 50px 60px;
  }

  .hero h1 {
    font-size: 49px;
  }

  .join-card {
    width: min(700px, 100%);
  }

  .hero-shot {
    width: 301px;
  }

  .seen-in {
    min-height: auto;
    padding: 0 50px;
    gap: 0;
  }

  .logo-track-mask {
    height: 121px;
  }
}

@media (max-width: 809px) {
  .page {
    width: min(390px, 100%);
    padding-bottom: 60px;
  }

  .confession-frame p {
    font-size: 14px;
  }

  .topbar {
    padding: 24px 20px;
    justify-content: flex-start;
    gap: 0;
    position: relative;
  }

  .page::before {
    display: none;
  }

  .nav-spacer,
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: inline-block;
    margin-left: auto;
  }

  .topbar.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    right: 20px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #090909;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px;
    z-index: 50;
    min-width: 170px;
  }

  .topbar.is-open .nav-links a {
    width: 100%;
    text-align: center;
  }

  .hero {
    flex-direction: column;
    gap: 40px;
    padding: 28px 20px 20px;
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
  }

  .identity-switch {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .identity-option {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 10px 12px;
  }

  .join-card {
    width: min(700px, 100%);
    padding: 14px;
  }

  .join-card h2 {
    font-size: 18px;
  }

  .join-title-crab {
    width: 35px;
    height: 35px;
  }

  .join-command {
    font-size: 13px;
    padding: 10px 12px;
  }

  .join-steps {
    padding-left: 20px;
  }

  .join-steps li {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 41px;
    letter-spacing: -3.8px;
    line-height: 1;
  }

  .hero-shot {
    width: 360px;
    max-width: 90vw;
    aspect-ratio: 0.86;
    transform: none;
    align-self: center;
  }

  .tweet-message {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .confession-frame {
    border-width: 7px;
    padding: 12px;
  }

  .confession-crab {
    margin-bottom: 10px;
  }

  .seen-in {
    padding: 20px;
    min-height: auto;
  }

  .seen-in p {
    font-size: 24px;
  }

  .logo-track-mask {
    height: 76px;
  }
}
