/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #11111100;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  margin: 0;
  padding: 0;
}

/* ---------- Shared Navigation & Footer ---------- */
.tab-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.1rem 6vw;
  background: rgba(5, 0, 20, 0);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.tab-bar ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-bar a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f9f5ff;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.35rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-bar a:hover,
.tab-bar a:focus {
  color: #b982ff;
  border-color: #b982ff;
}

.tab-bar a:focus {
  outline: none;
}

.tab-bar a[aria-current="page"] {
  color: #b982ff;
  border-color: #b982ff;
}

.site-footer {
  text-align: center;
  padding: 0 1rem 3rem;
  margin-top: 2.5rem;
  color: #d9cdfa;
  position: relative;
  z-index: 1;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 0 1.2rem;
  padding: 0;
}

.site-footer a {
  color: #f9f5ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #b982ff;
}

.site-footer p {
  color: #d9cdfa;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- Pages Using Centered Layout Cards ---------- */
body.page-with-nav {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 2rem 3rem;
  background: var(--page-background, radial-gradient(circle at top, #2f0a74, #050007 55%));
  color: var(--page-text, #f8f5ff);
}

body.page-with-nav main {
  width: min(var(--page-max-width, 760px), calc(100% - 2rem));
  background: var(--page-surface, rgba(14, 0, 44, 0.78));
  border-radius: var(--page-radius, 20px);
  border: 1px solid var(--page-border, rgba(255, 255, 255, 0.12));
  padding: var(--page-padding, 2.75rem);
  backdrop-filter: blur(var(--page-blur, 12px));
  text-align: left;
}

body.page-with-nav .site-footer {
  margin-top: auto;
  padding-top: 2.5rem;
  width: min(var(--page-max-width, 760px), calc(100% - 2rem));
}

body.page-with-nav p {
  margin: 0 0 1.5rem;
}

body.page-with-nav a {
  color: var(--page-link, #d6b6ff);
  font-weight: 600;
}

body.page-with-nav a:hover,
body.page-with-nav a:focus {
  text-decoration: underline;
}

/* ---------- Home / Landing ---------- */
body.page-home {
  min-height: 100vh;
  overflow-x: hidden;
  background: #00000000;
  color: #fff;
}

body.page-home .tab-bar {
  padding: 1.2rem 6vw;
  background: rgba(0, 0, 0, 0);
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  object-position: bottom center;
  z-index: -2;
  filter: brightness(0.6);
}

.overlay {
  position: fixed;
  inset: 0;
  background: #8c21ff71;
  z-index: -1;
}

@supports (-webkit-touch-callout: none) {
  .bg-video {
    height: calc(100vh - env(safe-area-inset-bottom));
    height: calc(100vh - constant(safe-area-inset-bottom));
  }
}

body.page-home .hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5vw 2rem;
  padding-bottom: calc(env(safe-area-inset-bottom) + 2rem);
}

body.page-home .site-footer {
  margin-top: 0;
}

body.page-home .line {
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-home .line--1 {
  animation: fadeIn 1s ease forwards 1s;
}

body.page-home .line--2 {
  animation: fadeIn 1s ease forwards 2.5s;
}

body.page-home .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards 4.5s, shadowIn 5s ease forwards 5s;
  display: inline-block;
  background: rgb(0, 0, 0);
  padding: 0.8rem 2.4rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes shadowIn {
  from {
    box-shadow: 0 0 0 #0000;
  }
  to {
    box-shadow: 0 10px 20px #0006;
  }
}

body.page-home .line--1,
body.page-home .line--2 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
}

body.page-home .line--2 {
  margin: 1rem 0 2rem;
  line-height: 1.2;
}

body.page-home .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px #0008;
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .line,
  body.page-home .btn {
    opacity: 1;
    transform: none;
    animation: none;
  }
  body.page-home .bg-video {
    display: none;
  }
  body.page-home {
    background: url('hero.jpg') center/cover fixed no-repeat;
  }
}

@media (max-width: 600px) {
  body.page-home .btn {
    padding: 0.7rem 1.8rem;
  }
  body.page-home .hero {
    justify-content: flex-start;
    padding-top: 18vh;
  }
  .tab-bar {
    padding: 1rem 4vw;
  }
  .tab-bar ul {
    gap: 1rem;
  }
}

/* ---------- Mission ---------- */
body.page-mission {
  --page-background: radial-gradient(circle at top, #2f0a74, #050007 55%);
  --page-text: #f7f2ff;
  --page-surface: rgba(15, 0, 36, 0.7);
  --page-link: #c9a1ff;
  --page-max-width: 720px;
  text-align: center;
}

body.page-mission main {
  text-align: center;
}

body.page-mission h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

body.page-mission main p {
  margin: 0 0 1.25rem;
}

/* ---------- Pricing ---------- */
body.page-pricing {
  --page-background: radial-gradient(circle at top, #5712b8, #050007 60%);
  --page-text: #f6f2ff;
  --page-surface: rgba(19, 0, 46, 0.76);
  --page-border: rgba(255, 255, 255, 0.14);
  --page-max-width: 820px;
  text-align: center;
}

body.page-pricing main {
  text-align: center;
}

body.page-pricing p {
  text-align: center;
}

body.page-pricing main p {
  margin-bottom: 2rem;
}

body.page-pricing .plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

body.page-pricing .plan {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

body.page-pricing .plan h2 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

body.page-pricing .price {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

body.page-pricing main ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

/* ---------- Safety ---------- */
body.page-safety {
  --page-background: linear-gradient(160deg, #0b012f 0%, #27045a 55%, #060011 100%);
  --page-text: #f4f2ff;
  --page-surface: rgba(10, 0, 35, 0.76);
  --page-max-width: 760px;
}

body.page-safety h1 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

body.page-safety main ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

body.page-safety main li {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

body.page-safety strong {
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- Support ---------- */
body.page-support {
  --page-background: radial-gradient(circle at top, #3a0e7a, #050007 60%);
  --page-text: #f7f4ff;
  --page-surface: rgba(15, 0, 39, 0.74);
  --page-max-width: 640px;
  text-align: center;
}

body.page-support main {
  text-align: center;
}

body.page-support main p {
  margin: 0 0 1.25rem;
}

/* ---------- Advice ---------- */
body.page-advice {
  --page-background: linear-gradient(180deg, #1a0153 0%, #06000f 100%);
  --page-text: #f8f5ff;
  --page-surface: rgba(14, 0, 44, 0.78);
  --page-max-width: 780px;
}

body.page-advice h1 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

body.page-advice p {
  text-align: center;
}

body.page-advice .tips {
  display: grid;
  gap: 1.25rem;
}

body.page-advice article {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  line-height: 1.6;
}

body.page-advice h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

body.page-advice .link-back {
  margin-top: 2rem;
  display: inline-block;
}

/* ---------- Download ---------- */
body.page-download {
  margin: 0;
  background: #f8f9fa;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 1rem;
}

body.page-download .logo {
  max-width: 150px;
  margin-bottom: 20px;
}

body.page-download h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

body.page-download p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

body.page-download .download-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #0070f3;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

body.page-download .download-button:hover,
body.page-download .download-button:focus {
  background-color: rgba(0, 102, 255, 0.63);
}

body.page-download footer {
  margin-top: 40px;
  font-size: 0.8rem;
  color: #888;
}

/* ---------- Login ---------- */
body.page-login {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #fff;
  background: #000;
}

body.page-login .wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 5vw;
  padding-bottom: max(5vw, env(safe-area-inset-bottom));
}

body.page-login .card {
  width: 100%;
  max-width: 440px;
  background: #0b0b0bcc;
  backdrop-filter: blur(6px);
  border: 1px solid #ffffff1a;
  border-radius: 20px;
  box-shadow: 0 10px 30px #0008;
}

body.page-login .card-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: column;
  text-align: center;
}

body.page-login .logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

body.page-login .brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0;
}

body.page-login .subtitle {
  margin-top: 2px;
  color: #cfcfe6;
  font-size: 12px;
  opacity: 0.9;
}

body.page-login .card-body {
  padding: 20px 24px 4px;
  text-align: center;
}

body.page-login .fieldset {
  display: grid;
  gap: 12px;
}

body.page-login .label {
  font-size: 13px;
  color: #ededf7;
  text-align: left;
  display: block;
}

body.page-login .row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

body.page-login .select,
body.page-login .input {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ffffff26;
  background: #0f0f12;
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

body.page-login .select:focus,
body.page-login .input:focus {
  border-color: #9d6cff;
  box-shadow: 0 0 0 3px #9d6cff33;
}

body.page-login .hint {
  font-size: 12px;
  color: #cfcfe6;
  opacity: 0.9;
  text-align: center;
}

body.page-login .error {
  color: #ff8aa0;
  font-size: 12px;
  text-align: center;
}

body.page-login .success {
  color: #7df3c6;
  font-size: 12px;
  text-align: center;
}

body.page-login .actions {
  padding: 16px 24px 24px;
  display: grid;
  gap: 12px;
}

body.page-login .btn {
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6e2bff, #a25bff);
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px #0008;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.2s;
}

body.page-login .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px #000a;
}

body.page-login .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 12px 24px #0008;
}

body.page-login .terms {
  text-align: center;
  font-size: 12px;
  color: #cfcfe6;
  opacity: 0.95;
}

body.page-login .terms a {
  color: #d7b7ff;
  text-underline-offset: 3px;
}

body.page-login .footer {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: #cfcfe6;
  opacity: 0.8;
}

@media (max-width: 520px) {
  body.page-login .row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-login .btn {
    transition: none;
  }
  body.page-login .bg-video {
    display: none;
  }
}

/* ---------- Legal & Policy Pages ---------- */
body.page-legal {
  background-color: #f9f9f9;
  color: #333;
  padding: 20px;
  font-family: Arial, sans-serif;
}

body.page-legal header,
body.page-legal footer {
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
}

body.page-legal header h1,
body.page-legal header h2 {
  margin: 0;
  font-size: 2.5em;
}

body.page-legal footer p {
  font-size: 0.9em;
  color: #777;
  margin: 0.8rem 0 0;
}

body.page-legal footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

body.page-legal footer a {
  color: #5a2db5;
  font-weight: 600;
}

body.page-legal footer a:hover,
body.page-legal footer a:focus {
  text-decoration: underline;
}

body.page-legal .content {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.page-legal .content h2,
body.page-legal .content h3 {
  margin-top: 25px;
  color: #222;
}

body.page-legal .content p {
  margin-bottom: 15px;
  text-align: justify;
}

body.page-legal .content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

body.page-legal .content a {
  color: #0070f3;
}

body.page-legal .content a:hover,
body.page-legal .content a:focus {
  text-decoration: underline;
}

body.page-legal pre {
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Media Queries Shared ---------- */
@media (max-width: 600px) {
  body.page-with-nav {
    padding: 5rem 1.5rem 2.5rem;
  }

  body.page-with-nav main {
    padding: var(--page-padding, 2.25rem);
  }
}
