/* Temas alinhados ao app Voiper: midnight, coal (rosa), light */

:root,
[data-theme="midnight"] {
  --bg: #080a0f;
  --bg-elevated: #141821;
  --bg-elevated-alpha: rgba(20, 24, 33, 0.88);
  --text: #f5f7fa;
  --text-muted: #9ca3af;
  --accent: #6d74f5;
  --accent-soft: rgba(109, 116, 245, 0.18);
  --accent-strong: #9aa0ff;
  --border: rgba(255, 255, 255, 0.08);
  --danger: #f07178;
  --orb-a: rgba(109, 116, 245, 0.28);
  --orb-b: rgba(167, 139, 250, 0.18);
  --orb-c: rgba(45, 212, 191, 0.12);
  --glass-blur: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --profile-surface: #141821;
  --profile-banner-bg: linear-gradient(135deg, #1a1f2b 0%, #2a3144 45%, #6d74f5 130%);
  --profile-banner-fallback: var(--profile-banner-bg);
  --btn-on-accent: #f5f7fa;
  --status-online: #23a55a;
  --badge-bg: rgba(109, 116, 245, 0.22);
  --badge-text: #c5c9ff;
}

/* Rosa = theme-coal do app (#ff4fa8), NÃO vermelho */
[data-theme="rose"] {
  --bg: #ffd6ec;
  --bg-elevated: #fff0f7;
  --bg-elevated-alpha: rgba(255, 240, 247, 0.95);
  --text: #5a1040;
  --text-muted: #b04a7e;
  --accent: #ff4fa8;
  --accent-soft: rgba(255, 79, 168, 0.2);
  --accent-strong: #e63d94;
  --border: rgba(255, 79, 168, 0.22);
  --danger: #e11d48;
  --orb-a: rgba(255, 79, 168, 0.35);
  --orb-b: rgba(255, 126, 189, 0.28);
  --orb-c: rgba(232, 121, 249, 0.2);
  --shadow: 0 24px 60px rgba(90, 16, 64, 0.16);
  --profile-surface: #fff0f7;
  --profile-banner-bg: linear-gradient(135deg, #ffc2e3 0%, #ff7ebd 55%, #ff4fa8 120%);
  --profile-banner-fallback: var(--profile-banner-bg);
  --btn-on-accent: #ffffff;
  --status-online: #16a34a;
  --badge-bg: rgba(255, 79, 168, 0.2);
  --badge-text: #e63d94;
}

[data-theme="light"] {
  --bg: #eef0f5;
  --bg-elevated: #ffffff;
  --bg-elevated-alpha: rgba(255, 255, 255, 0.96);
  --text: #12141a;
  --text-muted: #5b6472;
  --accent: #5b63e6;
  --accent-soft: rgba(91, 99, 230, 0.14);
  --accent-strong: #4a52d4;
  --border: rgba(15, 23, 42, 0.1);
  --danger: #d6455d;
  --orb-a: rgba(91, 99, 230, 0.18);
  --orb-b: rgba(167, 139, 250, 0.14);
  --orb-c: rgba(26, 157, 110, 0.1);
  --shadow: 0 24px 60px rgba(18, 21, 28, 0.08);
  --profile-surface: #ffffff;
  --profile-banner-bg: linear-gradient(135deg, #e4e7ef 0%, #b8bef5 55%, #5b63e6 120%);
  --profile-banner-fallback: var(--profile-banner-bg);
  --btn-on-accent: #ffffff;
  --status-online: #1a9d6e;
  --badge-bg: rgba(91, 99, 230, 0.14);
  --badge-text: #4a52d4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-theme-switching,
body.is-theme-switching * {
  transition: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  background: var(--orb-a);
  top: -8%;
  left: -6%;
}

.orb-b {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  background: var(--orb-b);
  top: 28%;
  right: -10%;
  animation-delay: -6s;
}

.orb-c {
  width: min(56vw, 460px);
  height: min(56vw, 460px);
  background: var(--orb-c);
  bottom: -12%;
  left: 28%;
  animation-delay: -11s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -30px, 0) scale(1.08);
  }
}

.theme-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 40;
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.theme-btn {
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.theme-btn.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.swatch {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.swatch-midnight {
  background: #080a0f;
}

.swatch-rose {
  background: linear-gradient(135deg, #ffd6ec, #ff4fa8);
}

.swatch-light {
  background: #ffffff;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.brand-mark {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 4rem;
  max-width: 42rem;
}

.brand-hero {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero h1 {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-on-accent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.section-head h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
}

.glass {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.feature,
.security-item,
.access-form-col,
.profile-modal,
.theme-switch {
  background: var(--bg-elevated);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.feature {
  border-radius: 1.15rem;
  padding: 1.35rem 1.25rem;
}

.feature h3,
.security-item h3 {
  font-family: Syne, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.feature p,
.security-item p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.security-list {
  display: grid;
  gap: 1rem;
}

.security-item {
  border-radius: 1.15rem;
  padding: 1.35rem 1.25rem;
}

.section-access {
  padding-bottom: 2rem;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.access-form-col {
  border-radius: 1.15rem;
  padding: 1.25rem 1.2rem;
  min-width: 0;
}

.access-preview-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.field {
  margin-bottom: 0.55rem;
}

.field label,
.field-label,
.consent {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
}

.optional {
  font-weight: 500;
  color: var(--text-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="search"],
.field textarea,
.input-prefix {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="search"],
.field textarea {
  padding: 0.65rem 0.85rem;
}

[data-theme="light"] .field input[type="text"],
[data-theme="light"] .field input[type="email"],
[data-theme="light"] .field input[type="password"],
[data-theme="light"] .field input[type="search"],
[data-theme="light"] .field textarea,
[data-theme="light"] .input-prefix,
[data-theme="rose"] .field input[type="text"],
[data-theme="rose"] .field input[type="email"],
[data-theme="rose"] .field input[type="password"],
[data-theme="rose"] .field input[type="search"],
[data-theme="rose"] .field textarea,
[data-theme="rose"] .input-prefix {
  background: rgba(255, 255, 255, 0.72);
}

.input-prefix {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.85rem;
  overflow: hidden;
}

.input-prefix span {
  color: var(--text-muted);
  font-weight: 600;
}

.input-prefix input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100%;
  padding: 0.65rem 0.15rem;
  color: var(--text);
  font: inherit;
  outline: none;
}

.input-prefix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="password"]:focus,
.field input[type="search"]:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input.is-invalid,
.field textarea.is-invalid,
.input-prefix.is-invalid {
  border-color: var(--danger);
}

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.field-error.is-visible {
  display: block;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

/* Specificity > .field label { display:block } */
.field label.choice {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  min-height: 2.45rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.2;
}

.field label.choice input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  flex: 0 0 0.95rem;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-content: center;
  box-shadow: none;
  padding: 0;
}

.field label.choice input[type="radio"]::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.field label.choice input[type="radio"]:checked {
  border-color: var(--accent);
}

.field label.choice input[type="radio"]:checked::before {
  transform: scale(1);
}

.field label.choice > span {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.field label.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0.55rem 0 0.25rem;
}

.consent input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.form-status {
  min-height: 1.1rem;
  margin: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--danger);
}

.success-panel {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.success-panel.hidden,
#interest-form.hidden {
  display: none;
}

.success-mark {
  color: var(--accent);
  margin-bottom: 1rem;
  animation: popIn 0.55s ease both;
}

.success-panel h3 {
  font-family: Syne, sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.success-panel p {
  color: var(--text-muted);
}

.preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.preview-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modal de perfil estilo app (banner + aside + main) */
.profile-modal {
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--profile-surface);
  box-shadow: var(--shadow);
  min-width: 0;
}

.profile-modal-banner {
  height: 128px;
  background: var(--profile-banner-bg);
}

.profile-modal-body {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  min-height: 15.5rem;
  padding-top: 5.15rem;
  position: relative;
}

.profile-aside {
  position: relative;
  padding: 0.35rem 1rem 1.1rem 1.1rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.profile-avatar-wrap {
  position: absolute;
  top: -5.25rem;
  left: 1.1rem;
  width: 5.5rem;
  height: 5.5rem;
}

.profile-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--profile-surface);
  background: var(--bg);
}

.profile-status {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--status-online);
  border: 3px solid var(--profile-surface);
}

.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.profile-display-name {
  font-family: Syne, sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
}

.profile-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.beta-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  cursor: pointer;
  flex: 0 0 auto;
}

.beta-badge svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

.beta-badge-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(4px);
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  background: #11141c;
  color: #f5f7fa;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 5;
}

.beta-badge-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #11141c;
}

[data-theme="light"] .beta-badge-tip,
[data-theme="rose"] .beta-badge-tip {
  background: #1a1f2b;
  color: #f5f7fa;
}

[data-theme="light"] .beta-badge-tip::after,
[data-theme="rose"] .beta-badge-tip::after {
  border-top-color: #1a1f2b;
}

.beta-badge:hover .beta-badge-tip,
.beta-badge:focus-visible .beta-badge-tip,
.beta-badge.is-open .beta-badge-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.profile-pronouns,
.profile-username {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.25;
}

.profile-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.presence-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--status-online);
  flex: 0 0 auto;
}

.profile-member {
  margin-top: 0.85rem;
}

.profile-member-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.profile-member-value {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.profile-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.15rem 1rem 1rem 0.85rem;
}

.profile-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-bio {
  font-size: 0.92rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.1s;
}

.reveal-delay-2 {
  animation-delay: 0.2s;
}

.reveal-delay-3 {
  animation-delay: 0.3s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .access-layout {
    grid-template-columns: 1fr;
  }

  .profile-modal-body {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
  }

  .profile-main {
    padding: 0.85rem 1rem 1rem;
  }
}

@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .topbar,
  main {
    max-width: 1180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb,
  .reveal,
  .success-mark,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
