/* Landing estática do AVZ ENGINE (ytglitcher.studio).
   Copiada de src/client/src/styles.scss (partes globais) e
   src/client/src/app/pages/landing/landing.component.scss. */

:root {
  --ph-text: #050505;
  --ph-bg: #dfd8c4;
  --ph-accent: #d6ceb8;
  --ph-divider: #beb49c;
  --ph-orange: #e4a444;
  --ph-gold: #c48434;

  --dark-bg: var(--ph-bg);
  --text-primary: var(--ph-text);

  --brutal-radius: 6px;

  --ui-canvas: #f3efdf;
  --ui-surface: #fffaf0;
  --ui-surface-muted: #e8e1cb;
  --ui-surface-strong: #151515;
  --ui-ink: #151515;
  --ui-ink-muted: #625d50;
  --ui-line: #151515;
  --ui-line-soft: #bdb49d;
  --ui-orange: #e7a33e;
  --ui-orange-hover: #f0b354;
  --ui-orange-pressed: #c7832c;
  --ui-blue: #1d4aff;
  --ui-shadow-sm: 2px 2px 0 var(--ui-line);
  --ui-shadow-md: 4px 4px 0 var(--ui-line);
  --ui-shadow-lg: 7px 7px 0 var(--ui-line);
  --ui-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ui-font-sans: "Source Sans 3", Inter, ui-sans-serif, system-ui, sans-serif;
  --ui-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

/* ── Global ─────────────────────────────────────────────────────────────── */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--dark-bg);
  background-image: radial-gradient(rgba(5, 5, 5, 0.07) 0.8px, transparent 0.8px);
  background-size: 8px 8px;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--ui-font-sans);
}

button {
  border-radius: var(--brutal-radius) !important;
  font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  transition: transform 140ms var(--ui-ease-out);
}

button:active:not(:disabled) {
  transform: scale(0.97);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ui-blue);
  outline-offset: 3px;
}

input {
  border-radius: var(--brutal-radius) !important;
  font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ph-bg);
  border: 1px solid var(--ph-divider);
}

::-webkit-scrollbar-thumb {
  background: var(--ph-accent);
  border: none;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ph-orange);
}

::selection {
  background: var(--ph-gold);
  color: var(--ph-text);
}

/* ── Landing ────────────────────────────────────────────────────────────── */

.landing-container {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(rgba(21, 21, 21, 0.08) 0.75px, transparent 0.75px),
    var(--ui-canvas);
  background-size: 8px 8px;
  color: var(--ui-ink);
  font-family: var(--ui-font-sans, "Inter", sans-serif);
}

.landing-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 2px solid var(--ui-line);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(10px);
}

.logo,
.header-actions,
.locale-switcher,
.visitor-options {
  display: flex;
  align-items: center;
}

.logo {
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--ui-orange-pressed);
  font-size: 1.6rem;
}

.header-actions {
  justify-content: flex-end;
  gap: 0.8rem;
}

.locale-switcher {
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  background: var(--ui-surface-muted);
}

.locale-switcher button {
  min-width: 30px;
  min-height: 28px;
  padding: 0 0.4rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ui-ink-muted);
  font-family: var(--ui-font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.locale-switcher button.active {
  background: var(--ui-ink);
  color: var(--ui-surface);
}

/* Réplica do botão "Sign in with Google" (tema filled_black, pill, large).
   Não tem ação nenhuma: clicar não faz nada. */
.google-signin {
  display: inline-flex;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 2px;
  border: 0;
  border-radius: 20px !important;
  background: #202124;
  color: #fff;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 218ms;
}

.google-signin:active:not(:disabled) {
  transform: none;
}

.google-signin-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
}

.beta-notice {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--ui-line);
  background: var(--ui-orange);
  color: var(--ui-ink);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 650;
}

.hero-section {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 124px);
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem 2.5rem;
  text-align: center;
}

.grid-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.075) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, 100%);
  flex-direction: column;
  align-items: center;
}

.media-banner {
  position: relative;
  width: min(1120px, 100%);
  margin-bottom: 2rem;
  overflow: hidden;
  border: 2px solid var(--ui-line);
  background: var(--ui-surface-strong);
  box-shadow: var(--ui-shadow-lg);
}

.media-banner::before,
.media-banner::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 100px;
  content: "";
  pointer-events: none;
}

.media-banner::before {
  left: 0;
  background: linear-gradient(to right, var(--ui-surface-strong), transparent);
}

.media-banner::after {
  right: 0;
  background: linear-gradient(to left, var(--ui-surface-strong), transparent);
}

.banner-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 10px;
  animation: landing-scroll 34s linear infinite;
}

@keyframes landing-scroll {
  to {
    transform: translateX(-50%);
  }
}

.banner-item {
  width: 230px;
  height: 146px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #4c4c4c;
  border-radius: 0;
  background: #242424;
}

.banner-item video,
.banner-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.3vw, 2.55rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

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

.hero-subtitle {
  max-width: 680px;
  margin: 0.7rem auto 0;
  color: var(--ui-ink-muted);
  font-size: clamp(0.9rem, 1.45vw, 1.08rem);
  line-height: 1.55;
}

.visitor-options {
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.45rem;
}

.visitor-option {
  display: flex;
  min-width: 190px;
  min-height: 54px;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 0 1.45rem;
  border: 2px solid var(--ui-line-soft);
  background: var(--ui-surface);
  color: var(--ui-ink-muted);
  font-family: var(--ui-font-mono, monospace);
  font-size: 0.95rem;
  font-weight: 850;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.visitor-option.active {
  border-color: var(--ui-line);
  background: var(--ui-orange);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
}

.option-icon {
  display: inline-flex;
  width: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  filter: saturate(0.85);
}

.instruction-card {
  width: min(560px, 100%);
  margin: 1.55rem auto 0;
  padding: 1.45rem 1.55rem;
  border: 2px solid var(--ui-line);
  border-radius: 0;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-md);
  text-align: center;
}

.instruction-card h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.instruction-board {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--ui-line);
  border-radius: 0;
  background: var(--ui-surface-strong);
  color: #8fe0ad;
  font-family: var(--ui-font-mono, monospace);
  font-size: clamp(0.86rem, 1.55vw, 0.98rem);
  line-height: 1.55;
  text-align: left;
}

.instruction-steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ui-ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: left;
}

.instruction-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.instruction-steps li + li {
  margin-top: 0.32rem;
}

.instruction-steps b {
  min-width: 1.25rem;
  color: var(--ui-orange-pressed);
  font-weight: 900;
}

.beta-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.45rem;
  border: 1px solid var(--ui-line-soft);
  border-radius: 0;
  background: var(--ui-surface-muted);
}

.beta-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--ui-line);
  outline: 0;
  background: var(--ui-surface);
  color: var(--ui-ink);
  font: inherit;
}

.beta-form input::placeholder {
  color: var(--ui-ink-muted);
}

.beta-form button {
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--ui-line);
  border-radius: 0;
  background: var(--ui-orange);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .visitor-option:hover {
    transform: translateY(-1px);
    border-color: var(--ui-line);
    background: var(--ui-orange-hover);
    color: var(--ui-ink);
  }

  .banner-track:hover {
    animation-play-state: paused;
  }

  .beta-form button:hover {
    background: var(--ui-orange-hover);
  }

  .google-signin:hover {
    background: #303134;
  }
}

@media (max-width: 760px) {
  .landing-header {
    min-height: 64px;
    padding: 0.75rem 1rem;
  }

  .logo-text {
    display: none;
  }

  .logo-icon {
    font-size: 1.4rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .locale-switcher button {
    min-width: 27px;
    padding-inline: 0.25rem;
  }

  .beta-notice {
    min-height: 44px;
    font-size: 0.8rem;
  }

  .hero-section {
    min-height: calc(100vh - 108px);
    align-items: flex-start;
    padding: 1.5rem 1rem 2rem;
  }

  .grid-background {
    background-size: 50px 50px;
  }

  .media-banner {
    margin-bottom: 1.75rem;
  }

  .media-banner::before,
  .media-banner::after {
    width: 42px;
  }

  .banner-track {
    gap: 0.75rem;
  }

  .banner-item {
    width: 190px;
    height: 122px;
  }

  .visitor-options {
    width: min(360px, 100%);
    flex-direction: column;
  }

  .visitor-option {
    width: 100%;
  }

  .instruction-card {
    padding: 1.1rem;
  }

  .beta-form {
    grid-template-columns: 1fr;
  }
}

/* Celular estreito: o botão do Google vira só o círculo com o "G". */
@media (max-width: 420px) {
  .landing-header {
    gap: 0.75rem;
  }

  .google-signin {
    padding: 0 2px;
  }

  .google-signin-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
