*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --accent: #ff4c6a;
  --accent2: #ff8c42;
  --text: #ffffff;
  --muted: #e4e4e4;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── Layout ── */
.page {
  min-height: calc(100vh - 150px);
  /* Account for header/footer approximately */
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left panel ── */
.left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  padding: 40px 60px;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.left::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 76, 106, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.logo {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-number {
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 200px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.hero-title span {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-desc {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 320px;
  font-weight: 300;
}

/* Marquee Animation */
.marquee-container {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  padding: 20px 0;
  /* Vertical space for the hover scale effect */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  gap: 15px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-item {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .marquee-item {
    width: 44px;
    height: 44px;
  }
}

.marquee-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: brightness(0.8) grayscale(0.2);
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item:hover img {
  transform: scale(1.15) rotate(5deg);
  border-color: var(--accent);
  filter: brightness(1);
  box-shadow: 0 0 15px rgba(255, 60, 100, 0.3);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 7.5px));
  }

  /* Half of total width minus half gap */
}

/* ── Right panel ── */
.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 60px;
  position: relative;
}

.right::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.card-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.card-title {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  margin-bottom: 16px;
}

.card-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 300;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.btn-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #36465d;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.btn-connect:hover {
  background: #46566d;
  transform: translateY(-1px);
}

.btn-connect:active {
  transform: translateY(0);
}

.tumblr-icon {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.disclaimer {
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.auth-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0px 1000px var(--surface) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap .auth-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle.visible {
  color: var(--accent);
}

.eye-icon {
  width: 18px;
  height: 18px;
}

.auth-input:focus {
  border-color: var(--accent);
}

.error-msg {
  background: rgba(255, 76, 106, 0.1);
  border: 1px solid rgba(255, 76, 106, 0.3);
  color: var(--accent);
  padding: 12px 16px;
  font-size: 12px;
  margin-top: 8px;
}


/* ── Responsive ── */
@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
  }

  .left {
    padding: 40px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 40vh;
  }

  .right {
    padding: 40px;
  }

  .hero-title {
    font-size: 52px;
  }

  .card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {

  .left,
  .right {
    padding: 20px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .stats-row {
    flex-wrap: nowrap;
    gap: 24px;
  }

  .hero-title span {
    display: inline;
  }
}