/* ============================================
   RhinoX Limited — Clean Static Design
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* ---- Particle Effect Parameters ---- */
  --particle-color: #313F59;
  --use-image-colors: false;
  --particle-size: 1px;
  --particle-gap: 2;
  --particle-noise: 0;
  --particle-gravity: 0.15;
  --particle-mouse-force: 65;
  --particle-mouse-radius: 105;
  --particle-return-force: 0.06;
  --particle-friction: 0.5;
  --particle-opacity: 2;
  --particle-scale: 2;

  --background: #FAFAFA;
  --foreground: #313F59;
  --text-primary: #231815;
  --muted: #F1F5F9;
  --muted-foreground: #64748B;
  --border: #E2E8F0;
  --card: #FFFFFF;

  --font-family: Arial, Helvetica, system-ui, sans-serif;

  --container-max: 72rem;
  --section-py: 6rem;
  --section-py-mobile: 4rem;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

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

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

ul, ol {
  list-style: none;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---- Layout ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #313F59;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: #231815;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: #313F59;
}

.lang-toggle:hover {
  border-color: #313F59;
}

.lang-toggle .lang-label:first-child {
  color: #231815;
  font-weight: 700;
}

.lang-toggle.is-zh .lang-label:first-child {
  color: #313F59;
  font-weight: 500;
}

.lang-toggle.is-zh .lang-label:last-child {
  color: #231815;
  font-weight: 700;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #231815;
  border-radius: 1px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 65px 0 0 0;
  background: var(--background);
  border-top: 1px solid var(--border);
  z-index: 999;
  overflow-y: auto;
}

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

.mobile-menu-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: #313F59;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:hover {
  color: #231815;
}

.mobile-lang-toggle {
  align-self: flex-start;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: calc(var(--section-py) + 64px) 0 var(--section-py);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  z-index: 1;
}

.hero-visual canvas {
  display: block;
  max-height: 395px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #231815;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #313F59;
  margin-bottom: 0.5rem;
}

.hero-meta {
  font-size: 0.875rem;
  color: #313F59;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--border);
}

.section--inverted {
  background: #313F59;
  color: #FAFAFA;
  border-bottom: none;
}

.section--muted {
  background: var(--muted);
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #313F59;
  margin-bottom: 1rem;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.7);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #231815;
}

.section-title--light {
  color: #FAFAFA;
}

.section-lead {
  font-size: 1.0625rem;
  color: #313F59;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  min-height: 44px;
}

.btn-primary {
  background: #313F59;
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #231815;
}

.btn-secondary {
  background: transparent;
  color: #231815;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--muted);
  border-color: #313F59;
}

/* ============================================
   CARDS
   ============================================ */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.info-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #313F59;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.info-card-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #231815;
  line-height: 1.4;
}

.info-card--highlight {
  background: #313F59;
  border-color: #313F59;
}

.info-card--highlight .info-card-title {
  color: rgba(255, 255, 255, 0.7);
}

.info-card--highlight .info-card-value {
  color: #FFFFFF;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.feature-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #231815;
  margin-bottom: 0.75rem;
}

.feature-card-body {
  font-size: 0.9375rem;
  color: #313F59;
  line-height: 1.7;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.service-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #231815;
  margin-bottom: 0.5rem;
}

.service-card-body {
  font-size: 0.9375rem;
  color: #313F59;
  line-height: 1.7;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.contact-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #313F59;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9375rem;
  color: #231815;
  line-height: 1.6;
}

/* ============================================
   SECTION LAYOUTS
   ============================================ */
.about-body {
  max-width: 720px;
}

.about-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: #313F59;
  margin-bottom: 1.25rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.regulatory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.disclaimer-box {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.9375rem;
  color: #313F59;
  line-height: 1.7;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.account-intro {
  font-size: 1rem;
  color: #313F59;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.document-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #231815;
  line-height: 1.6;
}

.document-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #313F59;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.account-notice {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.account-notice p {
  font-size: 0.9375rem;
  color: #313F59;
  line-height: 1.7;
}

.fees-table-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.fees-table {
  font-size: 0.9375rem;
}

.fees-table thead {
  background: var(--muted);
}

.fees-table th {
  text-align: left;
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  color: #231815;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fees-table td {
  padding: 0.875rem 1.25rem;
  color: #313F59;
  border-top: 1px solid var(--border);
}

.fees-table td:first-child {
  color: #231815;
  font-weight: 500;
  width: 55%;
}

.fees-note {
  font-size: 0.875rem;
  color: #313F59;
  font-style: italic;
}

.risk-content {
  max-width: 800px;
}

.risk-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.risk-text p:last-child {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.complaints-box {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.complaints-box p {
  font-size: 0.9375rem;
  color: #313F59;
  line-height: 1.7;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner-text {
  font-size: 0.875rem;
  color: #313F59;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 40px;
}

@media (max-width: 767px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-btn {
    flex: 1;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #313F59;
  color: #FAFAFA;
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 1.5rem;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-legal p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
  .commitments-grid {
    grid-template-columns: 1fr;
  }

  .account-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --section-py: var(--section-py-mobile);
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    display: none;
  }

  .hero {
    padding-top: calc(var(--section-py) + 64px);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  .regulatory-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

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

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-section {
  padding: calc(var(--section-py) + 64px) 0 var(--section-py);
  min-height: 100vh;
}

.privacy-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.privacy-hero .section-label {
  margin-bottom: 0.75rem;
}

.privacy-hero .section-title {
  margin-bottom: 0.75rem;
}

.privacy-hero .section-subtitle {
  font-size: 1.125rem;
  color: #313F59;
  max-width: 600px;
  margin: 0 auto;
}

.privacy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.privacy-card h3 {
  font-size: 1.1rem;
  color: #313F59;
  font-weight: 600;
  margin-bottom: 1rem;
}

.privacy-card p {
  color: #313F59;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.privacy-last-updated {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .privacy-section {
    padding: calc(var(--section-py-mobile) + 64px) 0 var(--section-py-mobile);
  }

  .privacy-card {
    padding: 1.5rem;
  }

  .privacy-hero {
    margin-bottom: 2rem;
  }
}
