:root {
  --gradient-start: #0b0f1a;
  --gradient-end: #1a1f2e;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --accent: #06b6d4;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.22) 0%, transparent 45%), linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
}

body.scroll-lock {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  z-index: 1000;
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.6), transparent 70%);
  z-index: 0;
}

.glass-panel {
  box-shadow: var(--shadow);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

.gradient-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.9rem;
  background-image: linear-gradient(120deg, var(--primary-600), var(--accent));
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 2s linear;
  background-size: 200% 200%;
  box-shadow: 0 20px 35px rgba(79, 70, 229, 0.35);
}

.gradient-button:hover,
.gradient-button:focus {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 25px 45px rgba(99, 102, 241, 0.4);
}

.feature-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(17, 23, 41, 0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -40% -40%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 60%);
  transform: translateY(60%);
  transition: transform 0.5s ease;
  z-index: 0;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.feature-card:hover::before,
.feature-card:focus-within::before {
  transform: translateY(30%);
}

.feature-card h3 {
  position: relative;
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  z-index: 1;
}

.feature-card p {
  position: relative;
  margin-top: 0.75rem;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.6;
  z-index: 1;
}

.feature-icon {
  position: relative;
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: linear-gradient(130deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.15));
  color: var(--accent);
  z-index: 1;
}

.journey-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

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

.journey-step {
  position: relative;
  padding: 2rem;
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.journey-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(79, 70, 229, 0.18), rgba(6, 182, 212, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.journey-step:hover::before,
.journey-step:focus-within::before {
  opacity: 1;
}

.journey-step h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.journey-step p {
  margin-top: 0.75rem;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.6;
}

.step-number {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.step-icon {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.25rem;
  background: rgba(99, 102, 241, 0.18);
  color: var(--accent);
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 1.25rem 1.5rem;
}

.faq-item button {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.faq-item .chevron {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active .chevron {
  transform: rotate(180deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
}

.faq-content p {
  overflow: hidden;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.6;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(6, 182, 212, 0.18), rgba(99, 102, 241, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover,
.contact-card:focus {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.5);
}

.contact-card:hover::after,
.contact-card:focus::after {
  opacity: 1;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.16);
  color: var(--accent);
}

.footer-link {
  position: relative;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--accent);
  transform: translateY(-1px);
}

.footer-link:hover::after,
.footer-link:focus::after {
  transform: scaleX(1);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  perspective: 1200px;
}

.phone-frame {
  position: relative;
  width: min(320px, 100%);
  border-radius: 2rem;
  padding: 1.5rem 1.1rem 2rem;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.95), rgba(17, 26, 47, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.55);
  transform: rotateY(-6deg) rotateX(4deg);
  animation: deviceFloat 8s ease-in-out infinite;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.status-icons {
  display: flex;
  gap: 0.3rem;
}

.status-icons .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.chat-window {
  display: grid;
  gap: 1rem;
}

.message {
  padding: 0.9rem 1rem;
  border-radius: 1.25rem;
  max-width: 230px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: message-in 8s ease-in-out infinite;
}

.message .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.5);
}

.message p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.message.incoming {
  background: rgba(148, 163, 184, 0.16);
  animation-delay: 0.3s;
}

.message.outgoing {
  margin-left: auto;
  background: linear-gradient(130deg, rgba(99, 102, 241, 0.75), rgba(6, 182, 212, 0.7));
  animation-delay: 1.4s;
}

.message:nth-child(3) {
  animation-delay: 2.8s;
}

.message:nth-child(4) {
  animation-delay: 4.3s;
}

.message .typing {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.floating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.2);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.25);
  animation: badgeFloat 5s ease-in-out infinite alternate;
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: translateY(0) rotateY(-6deg) rotateX(4deg);
  }
  50% {
    transform: translateY(-12px) rotateY(-4deg) rotateX(2deg);
  }
}

@keyframes badgeFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes message-in {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.98);
  }
  8% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  30% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.7);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 60;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu__dialog {
  width: 100%;
  max-width: 360px;
  border-radius: 1.75rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu__dialog nav a {
  display: block;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.25s ease;
}

.mobile-menu__dialog nav a:hover,
.mobile-menu__dialog nav a:focus {
  color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.75);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 70;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  z-index: 80;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 1.75rem;
  padding: 2.5rem 2rem 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 30px 100px rgba(15, 23, 42, 0.6);
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.modal.active {
  pointer-events: auto;
}

.modal.active .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(226, 232, 240, 0.8);
  background: rgba(15, 23, 42, 0.75);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal__close:hover,
.modal__close:focus {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.5);
}

.modal-link {
  border-radius: 0.95rem;
  padding: 0.85rem 1rem;
  background: rgba(99, 102, 241, 0.14);
  transition: background 0.25s ease;
}

.modal-link:hover,
.modal-link:focus {
  background: rgba(6, 182, 212, 0.22);
}

.modal-pulse {
  animation: modalPulse 0.4s ease;
}

@keyframes modalPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

[data-section] {
  scroll-margin-top: 140px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.65s cubic-bezier(0.19, 1, 0.22, 1), transform 0.65s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-in"] {
  transform: translateY(20px) scale(0.98);
}

[data-animate="fade-in"].is-visible {
  transform: translateY(0) scale(1);
}

[data-animate="fade-up"].is-visible[data-animate-delay="100"] {
  transition-delay: 0.12s;
}

[data-animate="fade-up"].is-visible[data-animate-delay="200"] {
  transition-delay: 0.2s;
}

[data-animate="fade-up"].is-visible[data-animate-delay="300"] {
  transition-delay: 0.28s;
}

/* Legal pages shared styles */
.legal-hero {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.1));
  border-radius: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.legal-toc {
  position: sticky;
  top: 7.5rem;
  border-radius: 1.75rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.75);
}

.legal-toc a {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(203, 213, 225, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: var(--accent);
}

.legal-section {
  padding-block: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h3 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.legal-section p,
.legal-section ul {
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.75;
}

.legal-section ul {
  padding-left: 1rem;
  margin-top: 0.75rem;
  list-style: disc;
}

/* Print styles for legal PDFs */
@media print {
  body {
    background: #fff !important;
    color: #0f172a !important;
  }

  header,
  footer,
  nav,
  .modal,
  .modal-backdrop,
  .mobile-menu,
  .gradient-button,
  .background-grid {
    display: none !important;
  }

  main {
    padding: 0;
    margin: 0;
  }

  [data-section] {
    scroll-margin-top: auto;
  }

  .legal-hero,
  .legal-toc {
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .legal-section {
    border-color: rgba(15, 23, 42, 0.1);
  }
}

@media (max-width: 1023px) {
  header nav {
    padding: 1.1rem 1.4rem;
  }

  .phone-frame {
    margin-inline: auto;
    transform: translateY(0) rotateY(-2deg) rotateX(0deg);
  }
}

@media (max-width: 767px) {
  .legal-toc {
    position: static;
    margin-bottom: 2rem;
  }

  .journey-step {
    padding: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .message {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .phone-frame {
    animation: none !important;
  }

  .floating-badge {
    animation: none !important;
    transform: none !important;
  }
}
