@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --crypto-blue: #1a1f2c;
  --crypto-purple: #9b87f5;
  --crypto-light-purple: #d6bcfa;
  --crypto-dark-purple: #6e59a5;
  --bg-dark: #12141c;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-700: #374151;
  --white-5: rgba(255, 255, 255, 0.05);
  --white-10: rgba(255, 255, 255, 0.1);
}

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

/* Phase 13 — public site: stronger borders when user prefers more contrast */
@media (prefers-contrast: more) {
  .nav,
  .footer,
  .feature-card,
  .auth-form input,
  .auth-form textarea,
  .btn {
    border-width: 2px;
  }
}
@media (forced-colors: active) {
  .btn,
  .auth-submit {
    forced-color-adjust: none;
  }
}

/* Skip link — visible on keyboard focus (Phase 7 a11y) */
.skip-to-main {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-to-main:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1.25rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--crypto-purple);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: hsl(240, 10%, 4%);
  color: hsl(210, 40%, 98%);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.text-gradient {
  background: linear-gradient(to right, var(--crypto-purple), var(--crypto-light-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-hero {
  background: linear-gradient(to bottom right, var(--crypto-blue), #252a3c, #1e2233);
}

.hero-glow {
  position: relative;
}

.hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(155, 135, 245, 0.15), transparent 70%);
  pointer-events: none;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
  padding: 1.5rem 0;
}

.nav.is-scrolled {
  background: rgba(26, 31, 44, 0.8);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.logo span {
  color: var(--crypto-purple);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo-mark .logo-img {
  height: 48px;
  width: auto;
  max-width: min(200px, 55vw);
  object-fit: contain;
  display: block;
}

.nav.is-scrolled .logo-mark .logo-img {
  height: 40px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
  line-height: 0;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--gray-300);
  transition: color 0.2s;
}

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

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .nav-actions {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-ghost {
  padding: 0.5rem 1rem;
  color: var(--gray-300);
}

.btn-ghost:hover {
  color: #fff;
}

.btn-primary {
  padding: 0.5rem 1.25rem;
  background: var(--crypto-purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--crypto-dark-purple);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-outline {
  border: 1px solid var(--gray-700);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: var(--white-5);
}

.nav-toggle {
  color: #fff;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-menu {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 31, 44, 0.95);
  backdrop-filter: blur(16px);
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.mobile-menu.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--gray-300);
}

.mobile-menu a:hover {
  color: #fff;
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: flex-start;
}

.mobile-menu .btn-primary {
  justify-content: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  animation: pulse-slow 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-bg-blob-1 {
  top: 25%;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(155, 135, 245, 0.1);
}

.hero-bg-blob-2 {
  bottom: 25%;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(214, 188, 250, 0.1);
  animation-delay: 1s;
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero .container {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
  }
}

.hero-col {
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-col {
    width: 50%;
  }
}

.animate-fade-in-left {
  animation: fade-in-left 0.7s ease-out both;
}

.animate-fade-in-right {
  animation: fade-in-right 0.7s ease-out both;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--white-5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--white-10);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
}

.badge-pill .tag {
  font-weight: 600;
  color: var(--crypto-purple);
}

.badge-pill .muted {
  color: var(--gray-300);
}

.hero h1 {
  font-family: Poppins, sans-serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: #fff;
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--gray-300);
  margin: 0 0 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-stats {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero-stats .stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.hero-stats .stat-label {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin: 0;
}

.hero-stats .divider {
  width: 1px;
  height: 3rem;
  background: var(--gray-700);
  display: none;
}

@media (min-width: 480px) {
  .hero-stats .divider {
    display: block;
  }
}

.hero-visual {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  animation: float 3s ease-in-out infinite;
}

.hero-visual img {
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--white-10);
}

.floating-card {
  position: absolute;
  background: rgba(155, 135, 245, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(155, 135, 245, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.floating-card .fc-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-card .fc-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card.br {
  right: -1.5rem;
  bottom: -1.5rem;
}

.floating-card.tl {
  left: -1.5rem;
  top: -1.5rem;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-family: Poppins, sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.section-head p {
  color: var(--gray-400);
  max-width: 42rem;
  margin: 0 auto;
}

.bg-features {
  background: linear-gradient(to bottom, var(--crypto-blue), var(--bg-dark));
}

.bg-how {
  background: linear-gradient(to bottom, var(--bg-dark), var(--crypto-blue));
}

.bg-testimonials {
  background: linear-gradient(to bottom, var(--crypto-blue), var(--bg-dark));
}

.bg-pricing {
  background: var(--bg-dark);
}

.bg-faq {
  background: linear-gradient(to bottom, var(--bg-dark), var(--crypto-blue));
}

.bg-cta {
  background: linear-gradient(to bottom, var(--crypto-blue), var(--bg-dark));
  position: relative;
  overflow: hidden;
}

/* Feature cards */
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--white-5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--white-10);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: background 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(155, 135, 245, 0.05);
}

.feature-card .icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(155, 135, 245, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crypto-purple);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
}

.feature-card p {
  color: var(--gray-400);
  margin: 0;
  font-size: 0.9375rem;
}

/* How it works */
.step-card {
  position: relative;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 0.75rem;
  padding: 2rem;
}

.step-num {
  position: absolute;
  top: -1rem;
  left: -1rem;
  background: var(--crypto-blue);
  border: 1px solid rgba(155, 135, 245, 0.3);
  border-radius: 0.375rem;
  color: var(--crypto-purple);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.25rem 0.75rem;
}

.section-cta-center {
  text-align: center;
  margin-top: 4rem;
}

/* Testimonials */
.testimonial-wrap {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-out;
}

.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 1rem;
}

.testimonial-card {
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 0.75rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .testimonial-card {
    padding: 2.5rem;
  }
}

.stars {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 1.5rem;
  color: #eab308;
}

.testimonial-quote {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: #e5e7eb;
  margin: 0 0 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--crypto-purple);
}

.testimonial-author .name {
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.testimonial-author .role {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dots button {
  height: 0.5rem;
  border-radius: 9999px;
  background: #6b7280;
  width: 0.5rem;
  padding: 0;
  transition: width 0.3s, background 0.3s;
}

.testimonial-dots button.is-active {
  width: 2rem;
  background: var(--crypto-purple);
}

/* Pricing */
.billing-toggle {
  display: inline-flex;
  padding: 0.25rem;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 9999px;
  margin-top: 0.5rem;
}

.billing-toggle button {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: background 0.2s, color 0.2s;
}

.billing-toggle button.is-active {
  background: var(--crypto-purple);
  color: #fff;
}

.billing-toggle .save {
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 0.75rem;
  overflow: hidden;
}

.pricing-card.highlight {
  border-color: var(--crypto-purple);
  box-shadow: 0 20px 25px -5px rgba(155, 135, 245, 0.1);
  position: relative;
}

.pricing-badge {
  background: var(--crypto-purple);
  color: #fff;
  text-align: center;
  padding: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.pricing-body {
  padding: 2rem;
}

.pricing-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
}

.price-row {
  margin-bottom: 1rem;
}

.price-row .amount {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
}

.price-row .period {
  color: var(--gray-400);
  margin-left: 0.25rem;
}

.pricing-body .desc {
  color: var(--gray-400);
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

.pricing-body .btn-block {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.pricing-body .btn-block.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pricing-body .btn-block.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pricing-body .btn-block.btn-primary {
  background: var(--crypto-purple);
  color: #fff;
  border: none;
}

.pricing-body .btn-block.btn-primary:hover {
  background: var(--crypto-dark-purple);
}

.included-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  margin: 0 0 1rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-400);
}

.feature-list svg {
  flex-shrink: 0;
  color: var(--crypto-purple);
  margin-top: 0.125rem;
}

/* FAQ */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 0.75rem;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-align: left;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.faq-trigger:hover {
  color: var(--crypto-purple);
}

.faq-trigger .chev {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.is-open .faq-trigger .chev {
  transform: rotate(180deg);
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1rem;
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item.is-open .faq-content {
  display: block;
}

/* CTA box */
.cta-box {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--white-5);
  backdrop-filter: blur(16px);
  border: 1px solid var(--white-10);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 3rem;
  }
}

.cta-box h2 {
  font-family: Poppins, sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #fff;
}

.cta-box .lead {
  color: var(--gray-300);
  font-size: 1.125rem;
  margin: 0 0 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--gray-400);
  max-width: 20rem;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

.social-row {
  display: flex;
  gap: 1rem;
}

.social-row a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.social-row a:hover {
  color: var(--crypto-purple);
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--crypto-purple);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-400);
  text-align: center;
}

.footer-bottom a {
  color: var(--crypto-purple);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer-links a:hover {
  color: var(--crypto-purple);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(155, 135, 245, 0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}

.scroll-top:hover {
  background: var(--crypto-purple);
}

.scroll-top.is-visible {
  display: flex;
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  padding: 2rem;
}

.page-404-inner {
  text-align: center;
}

.page-404 h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #111;
}

.page-404 p {
  font-size: 1.25rem;
  color: #4b5563;
  margin: 0 0 1rem;
}

.page-404 a {
  color: #2563eb;
  text-decoration: underline;
}

.page-404 a:hover {
  color: #1d4ed8;
}

/* Phase 9 — 404 with global nav/footer (dark site shell) */
.page-404.page-404--with-nav {
  min-height: 55vh;
  background: transparent;
  padding: 3rem 1.5rem 4rem;
}
.page-404.page-404--with-nav h1 {
  color: #fff;
}
.page-404.page-404--with-nav p {
  color: var(--gray-400, #9ca3af);
}
.page-404.page-404--with-nav a {
  color: var(--crypto-purple, #9b87f5);
}
.page-404.page-404--with-nav a:hover {
  color: var(--crypto-light-purple, #c4b5fd);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--crypto-light-purple, #a78bfa);
  outline-offset: 2px;
}

.scroll-top:focus-visible {
  outline: 2px solid var(--crypto-light-purple, #a78bfa);
  outline-offset: 2px;
}

@media print {
  .nav,
  .scroll-top,
  .otp-cookie-banner,
  .nav-toggle,
  .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  a {
    color: #000 !important;
    text-decoration: underline;
  }
}

.footer-social-note {
  font-size: 0.875rem;
  color: var(--gray-400, #9ca3af);
  line-height: 1.5;
  margin: 0.75rem 0 0;
  max-width: 22rem;
}
.footer-social-note a {
  color: var(--crypto-purple, #9b87f5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-blob,
  .hero-glow::before,
  .hero-glow::after {
    animation: none !important;
  }
  .animate-fade-in-left,
  .animate-fade-in-right {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .testimonial-track {
    transition: none !important;
  }
}

.icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Login */
.auth-page {
  min-height: 100vh;
  padding: 6rem 1rem 4rem;
  background: linear-gradient(to bottom right, var(--crypto-blue), #252a3c, #1e2233);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(155, 135, 245, 0.12), transparent 55%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
  background: var(--white-5);
  backdrop-filter: blur(16px);
  border: 1px solid var(--white-10);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 640px) {
  .auth-card {
    padding: 2.5rem;
  }
}

.auth-card h1 {
  font-family: Poppins, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
  text-align: center;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9375rem;
  margin: 0 0 1.75rem;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.auth-form .field {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 0.375rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--white-10);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input::placeholder {
  color: var(--gray-400);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(155, 135, 245, 0.6);
  box-shadow: 0 0 0 3px rgba(155, 135, 245, 0.15);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  cursor: pointer;
}

.auth-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--crypto-purple);
}

.auth-forgot {
  font-size: 0.875rem;
  color: var(--crypto-purple);
}

.auth-forgot:hover {
  color: var(--crypto-light-purple);
}

.auth-terms {
  margin-bottom: 1.5rem;
}

.auth-terms label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.45;
  margin: 0;
}

.auth-terms input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--crypto-purple);
}

.auth-terms a {
  color: var(--crypto-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms a:hover {
  color: var(--crypto-light-purple);
}

.auth-submit {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--crypto-purple);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-submit:hover {
  background: var(--crypto-dark-purple);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--white-10);
  font-size: 0.875rem;
  color: var(--gray-400);
}

.auth-footer a {
  color: var(--crypto-purple);
  font-weight: 500;
}

.auth-footer a:hover {
  color: var(--crypto-light-purple);
}

/* Phase 11 — public breadcrumb trail + contact honeypot */
.public-breadcrumb {
  margin: 0 0 1rem;
}
.public-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-400, #a0aec0);
}
.public-breadcrumb__item a {
  color: var(--crypto-purple, #8b5cf6);
  text-decoration: none;
}
.public-breadcrumb__item a:hover {
  text-decoration: underline;
}
.public-breadcrumb__item + .public-breadcrumb__item::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--gray-500, #718096);
  pointer-events: none;
}
.public-breadcrumb__item span[aria-current="page"] {
  color: var(--gray-300, #e2e8f0);
  font-weight: 500;
}
.page-404 .public-breadcrumb {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}
.otp-hp-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legal pages */
.legal-page {
  padding: 6rem 0 4rem;
  min-height: 60vh;
  background: linear-gradient(to bottom, var(--crypto-blue), var(--bg-dark));
}

.legal-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-inner h1 {
  font-family: Poppins, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.legal-updated {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

.legal-inner h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin: 2rem 0 0.75rem;
}

.legal-inner p,
.legal-inner li {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-inner ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-inner a {
  color: var(--crypto-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-inner a:hover {
  color: var(--crypto-light-purple);
}

.feature-card strong {
  color: #e5e7eb;
  font-weight: 600;
}

/* Phase 8 — cookie notice */
.otp-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding-top: 0.75rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 20, 28, 0.97);
  border-top: 1px solid rgba(155, 135, 245, 0.35);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}
.otp-cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.5;
}
.otp-cookie-banner__inner p {
  margin: 0;
  flex: 1 1 220px;
}
.otp-cookie-banner__inner a {
  color: var(--crypto-purple);
}
.otp-cookie-banner__btn {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--crypto-purple), var(--crypto-dark-purple));
  color: #fff;
}
.otp-cookie-banner__btn:hover {
  filter: brightness(1.08);
}
.otp-cookie-banner__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.otp-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.otp-cookie-banner__btn:focus-visible {
  outline: 2px solid var(--crypto-light-purple, #a78bfa);
  outline-offset: 2px;
}
.otp-cookie-banner__inner a:focus-visible {
  outline: 2px solid var(--crypto-light-purple, #a78bfa);
  outline-offset: 2px;
}

/* Phase 19 — public site mobile hardening */
@media (max-width: 1023px) {
  .section {
    padding: 4rem 0;
  }

  .section-head {
    margin-bottom: 2.25rem;
  }

  .section-head p,
  .hero .lead,
  .cta-box .lead {
    font-size: 0.98rem;
  }

  .hero .container {
    padding-top: 4.5rem;
    padding-bottom: 3.25rem;
  }

  .nav {
    padding: 0.9rem 0;
  }

  .logo-mark .logo-img {
    height: 40px;
    max-width: min(180px, 60vw);
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .pricing-body,
  .cta-box {
    padding: 1.25rem;
  }

  .feature-card,
  .step-card,
  .testimonial-card {
    padding: 1.25rem;
  }

  .floating-card.br {
    right: -0.5rem;
    bottom: -0.75rem;
  }

  .floating-card.tl {
    left: -0.5rem;
    top: -0.75rem;
  }

  .faq-trigger {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .faq-content {
    padding: 0 1rem 0.9rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-stats {
    gap: 0.9rem;
  }

  .hero-stats .divider {
    display: none !important;
  }

  .hero-visual {
    max-width: 22rem;
  }

  .floating-card {
    transform: scale(0.9);
    transform-origin: center;
  }

  .floating-card .fc-icon {
    width: 2rem;
    height: 2rem;
  }

  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-grid {
    gap: 1.25rem;
  }

  .footer-links {
    gap: 0.75rem 1rem;
  }

  .scroll-top {
    right: 1rem;
    bottom: max(1rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
    width: 2.5rem;
    height: 2.5rem;
  }

  .auth-page {
    padding: 5rem 0.75rem 3rem;
  }

  .auth-card {
    padding: 1.25rem;
  }
}

.otp-site-news {
  border-top: 1px solid rgba(155, 135, 245, 0.16);
  border-bottom: 1px solid rgba(155, 135, 245, 0.16);
  background: linear-gradient(120deg, rgba(24, 24, 40, 0.96), rgba(31, 20, 52, 0.94));
}
.otp-site-news__inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.5rem;
}
.otp-site-news__label {
  flex: 0 0 auto;
  padding: 0.12rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(155, 135, 245, 0.55);
  background: rgba(0, 0, 0, 0.3);
  color: #c5b5ff;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.otp-site-news__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.otp-site-news__track {
  width: max-content;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: otp-site-news-scroll 24s linear infinite;
}
.otp-site-news__item {
  display: inline-block;
  padding-right: 2rem;
  color: #efe8ff;
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes otp-site-news-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .otp-site-news__inner {
    gap: 0.5rem;
    min-height: 2.3rem;
  }
  .otp-site-news__label {
    font-size: 0.58rem;
    padding: 0.1rem 0.45rem;
  }
  .otp-site-news__item {
    font-size: 0.8rem;
    padding-right: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otp-site-news__track {
    animation: none !important;
  }
  .otp-site-news__viewport {
    mask-image: none;
  }
  .otp-site-news__item {
    padding-right: 0;
  }
}
