:root {
  --aureon-black: #050505;
  --aureon-panel: rgba(255, 255, 255, 0.075);
  --aureon-panel-strong: rgba(255, 255, 255, 0.115);
  --aureon-border: rgba(255, 255, 255, 0.14);
  --aureon-border-strong: rgba(255, 255, 255, 0.22);
  --aureon-gold: #D4AF37;
  --aureon-cyan: #00E5FF;
  --aureon-ink: #DCE7EE;
  --aureon-muted: rgba(220, 231, 238, 0.72);
  --aureon-soft: rgba(220, 231, 238, 0.58);
  --space-section: clamp(72px, 8vw, 128px);
  --space-card: clamp(22px, 2.4vw, 34px);
  --radius-ui: 8px;
  --shadow-panel: 0 24px 72px rgba(0, 0, 0, 0.42);
  --shadow-panel-hover: 0 30px 86px rgba(0, 0, 0, 0.52);
  --container-wide: 84rem;
  --container-reading: 52rem;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 1;
}

body {
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.025), transparent 24%, rgba(0,229,255,.035) 58%, transparent 82%),
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.06), transparent 36%);
  opacity: .9;
  z-index: -1;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border: 1px solid var(--aureon-cyan);
  border-radius: var(--radius-ui);
  background: #020405;
  color: var(--aureon-cyan);
  padding: 10px 14px;
  font-weight: 800;
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: rgba(0, 229, 255, .18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--aureon-cyan) !important;
  outline-offset: 3px !important;
}

button,
a[class*="rounded"],
input,
select,
textarea {
  min-height: 44px;
}

button,
a {
  touch-action: manipulation;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease,
    filter .2s ease;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
}

.glass-panel {
  border-radius: var(--radius-ui) !important;
  border-color: var(--aureon-border) !important;
  box-shadow: var(--shadow-panel) !important;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease, background-color .22s ease;
}

a.glass-panel:hover,
article.glass-panel:hover,
.pricing-card:hover {
  border-color: var(--aureon-border-strong) !important;
  box-shadow: var(--shadow-panel-hover) !important;
}

section {
  scroll-margin-top: 118px;
}

main > section,
section.py-20,
section.pb-20 {
  padding-top: var(--space-section) !important;
  padding-bottom: var(--space-section) !important;
}

.max-w-7xl {
  max-width: var(--container-wide) !important;
}

h1 {
  letter-spacing: 0 !important;
  font-size: clamp(4.1rem, 8vw, 8.7rem) !important;
  line-height: .92 !important;
  text-wrap: balance;
}

h2 {
  letter-spacing: 0 !important;
  font-size: clamp(2.1rem, 4vw, 4rem) !important;
  line-height: 1.05 !important;
  text-wrap: balance;
}

h3 {
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
}

p,
li,
td,
th {
  line-height: 1.7;
}

p,
li {
  max-width: 76ch;
}

main > section > div > .text-center p,
.mx-auto.max-w-3xl p,
.mx-auto.max-w-4xl p {
  margin-left: auto;
  margin-right: auto;
}

a[href],
button {
  min-height: 48px;
}

a.rounded,
button.rounded,
.mobile-safe-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.text-white\/45,
.text-white\/48,
.text-white\/50,
.text-white\/55,
.text-gray-500,
.text-gray-600 {
  color: rgba(220, 231, 238, .68) !important;
}

.text-white\/60,
.text-white\/62,
.text-white\/65,
.text-white\/66,
.text-white\/68 {
  color: rgba(220, 231, 238, .76) !important;
}

.text-white\/70,
.text-white\/72,
.text-white\/75 {
  color: rgba(220, 231, 238, .82) !important;
}

.grid > .glass-panel,
.grid > article,
.grid > a[class*="rounded"] {
  height: 100%;
}

article.glass-panel,
a.glass-panel,
.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card,
#pricing article.glass-panel {
  min-height: 100%;
  padding: clamp(24px, 2.7vw, 36px) !important;
}

#pricing ul,
.mobile-payment-links {
  line-height: 1.65;
}

#pricing .mt-12.grid {
  gap: clamp(24px, 3vw, 40px) !important;
}

article.glass-panel > a:last-child,
article.glass-panel > button:last-child,
article.glass-panel .mobile-safe-link {
  margin-top: auto;
}

.mobile-safe-link,
.mobile-payment-links a,
#aiChatToggle,
#confirmPayment,
#verifyEmailBtn,
#requestVerificationEmailBtn,
#applyUnlockCode {
  min-height: 48px;
}

#openPlansModal,
.openBetaPlans,
.openPlans,
#unlockBtn,
#logoutBtn,
#mobileMenuToggle {
  min-height: 48px;
}

.mobile-payment-links a,
.ai-faq {
  border-color: var(--aureon-border) !important;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

caption {
  color: var(--aureon-muted);
}

th {
  font-weight: 800 !important;
}

td:last-child,
th:last-child {
  text-align: right;
}

svg {
  max-width: 100%;
}

.faq-item button {
  align-items: center;
  gap: 16px;
  min-height: 56px;
  line-height: 1.45;
}

.faq-answer p {
  max-width: 82ch;
}

.faq-plus {
  display: inline-grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
  width: 28px;
}

#faqList {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#aiChatWidget,
.fixed.bottom-5.left-5 {
  left: max(16px, env(safe-area-inset-left)) !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
}

.ai-chat-panel {
  border-radius: var(--radius-ui) !important;
  width: min(380px, calc(100vw - 32px)) !important;
}

.aureon-mobile-menu {
  display: none;
}

.aureon-mobile-menu.open {
  display: grid;
}

@media (min-width: 1536px) {
  .max-w-7xl {
    max-width: 88rem !important;
  }

  #pricing .lg\:grid-cols-3,
  #pricing.grid,
  #pricing .grid {
    align-items: stretch;
  }
}

@media (max-width: 1180px) {
  .lg\:grid-cols-3,
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  header nav .hidden.lg\:flex {
    display: none !important;
  }

  #mobileMenuToggle {
    display: inline-flex !important;
  }
}

@media (max-width: 900px) {
  header nav {
    gap: 12px;
  }

  .md\:grid-cols-3,
  .md\:grid-cols-2,
  .lg\:grid-cols-3,
  .lg\:grid-cols-4,
  .lg\:grid-cols-\[\.85fr_1\.15fr\],
  .lg\:grid-cols-\[\.88fr_1\.12fr\],
  .lg\:grid-cols-\[\.95fr_1\.05fr\],
  .lg\:grid-cols-\[1\.02fr_\.98fr\] {
    grid-template-columns: 1fr !important;
  }

  .overflow-hidden.rounded.border,
  .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #dashboard .grid,
  #xau-beta .grid,
  #security-model .grid {
    gap: 24px !important;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 148px;
  }

  body {
    overflow-x: hidden;
  }

  main {
    padding-top: 128px !important;
  }

  section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .px-5,
  .px-6 {
    padding-left: max(22px, env(safe-area-inset-left)) !important;
    padding-right: max(22px, env(safe-area-inset-right)) !important;
  }

  .p-4,
  .p-5,
  .p-6,
  .p-7,
  .p-8,
  .p-9,
  .md\:p-8,
  .md\:p-9,
  .md\:p-10 {
    padding: 22px !important;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.25rem) !important;
    text-align: left;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
  }

  h3 {
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
  }

  p,
  li,
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .text-xs {
    font-size: 12px !important;
  }

  .text-sm {
    font-size: 14px !important;
  }

  .text-4xl {
    font-size: 2.1rem !important;
  }

  .flex.sm\:flex-row,
  .sm\:flex-row {
    flex-direction: column !important;
  }

  header nav {
    padding-top: max(14px, env(safe-area-inset-top)) !important;
  }

  #mobileMenu.open,
  .aureon-mobile-menu.open {
    display: grid !important;
  }

  #mobileMenu a,
  #mobileMenu button {
    width: 100%;
  }

  [class*="grid-cols-2"],
  [class*="grid-cols-3"],
  [class*="grid-cols-4"] {
    grid-template-columns: 1fr !important;
  }

  .grid.gap-4.sm\:grid-cols-2,
  .grid.gap-5.sm\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .hero-actions,
  main section:first-child .mt-8.flex {
    width: 100%;
  }

  main section:first-child .mt-8.flex a {
    width: 100%;
  }

  #pricing article,
  #plansModal article,
  #plansModal a {
    min-height: auto !important;
  }

  #comparison table,
  #track-record table {
    min-width: 640px;
  }

  .fixed.bottom-5.left-5,
  #aiChatWidget {
    left: 12px !important;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  .ai-chat-panel {
    width: 100% !important;
    max-height: min(58vh, 500px) !important;
    overflow-y: auto;
  }

  #aiChatToggle {
    width: 100%;
    justify-content: center;
  }

  .plan-modal > .glass-panel,
  #plansModal > div {
    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
  }

  table {
    min-width: 560px;
  }

  footer .flex {
    gap: 10px !important;
  }

  footer a {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .px-5,
  .px-6 {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  h1 {
    font-size: 3rem !important;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --aureon-border: rgba(255,255,255,.32);
  }

  .glass-panel {
    background: rgba(0,0,0,.82) !important;
  }
}

@media print {
  header,
  #aiChatWidget,
  .fixed.bottom-5.left-5,
  .plan-modal,
  script {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .glass-panel {
    border: 1px solid #999 !important;
    box-shadow: none !important;
  }
}
