/* ============================================================
   Nexopay — Synox Design System
   Colors: #012A2B (dark), #D9FF43 (lime accent), #023436 (secondary)
   Font: DM Sans (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --nx-dark:       #012A2B;
  --nx-dark2:      #023436;
  --nx-accent:     #D9FF43;
  --nx-accent-rgb: 217,255,67;
  --nx-light:      #E4EEEF;
  --nx-muted:      #6B6B6B;
  --nx-border:     #E4EEEF;
  --nx-white:      #FFFFFF;
  --nx-radius:     10px;
  --nx-radius-lg:  20px;
  --nx-transition: 300ms ease;
  --nx-font:       'DM Sans', sans-serif;
}

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

body.nx-body {
  font-family: var(--nx-font);
  background: var(--nx-white);
  color: var(--nx-muted);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
.nx-heading { font-family: var(--nx-font); color: var(--nx-dark); font-weight: 700; line-height: 1.2; }
.nx-label   { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-dark2); }
.nx-accent-text { color: var(--nx-accent); }

/* ── Buttons ── */
.nx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--nx-radius);
  font-family: var(--nx-font); font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--nx-transition);
}
.nx-btn-primary  { background: var(--nx-accent); color: var(--nx-dark); }
.nx-btn-primary:hover { background: #c8ee30; transform: translateY(-2px); }
.nx-btn-dark     { background: var(--nx-dark); color: var(--nx-white); }
.nx-btn-dark:hover { background: var(--nx-dark2); transform: translateY(-2px); }
.nx-btn-outline  { background: transparent; color: var(--nx-dark); border: 1.5px solid var(--nx-border); }
.nx-btn-outline:hover { border-color: var(--nx-dark); }
.nx-btn-sm { padding: 10px 20px; font-size: 14px; }

/* ── Navbar ── */
.nx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  background: rgba(1,42,43,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nx-nav-logo { font-size: 22px; font-weight: 700; color: var(--nx-white); text-decoration: none; }
.nx-nav-logo span { color: var(--nx-accent); }
.nx-nav-links { display: flex; gap: 32px; list-style: none; }
.nx-nav-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 15px; font-weight: 500; transition: var(--nx-transition); }
.nx-nav-links a:hover { color: var(--nx-accent); }
.nx-nav-actions { display: flex; gap: 12px; align-items: center; }

/* ── Hero ── */
.nx-hero {
  min-height: 100vh;
  background: var(--nx-dark);
  display: flex; align-items: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}
.nx-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(217,255,67,.08) 0%, transparent 70%);
}
.nx-hero-content { position: relative; z-index: 1; max-width: 600px; }
.nx-hero-label { display: inline-block; background: rgba(217,255,67,.12); color: var(--nx-accent); padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 24px; }
.nx-hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; color: var(--nx-white); line-height: 1.1; margin-bottom: 20px; }
.nx-hero h1 em { color: var(--nx-accent); font-style: normal; }
.nx-hero p { font-size: 18px; color: rgba(255,255,255,.65); margin-bottom: 36px; max-width: 480px; }
.nx-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.nx-hero-stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.nx-hero-stat-num { font-size: 32px; font-weight: 700; color: var(--nx-white); }
.nx-hero-stat-num span { color: var(--nx-accent); }
.nx-hero-stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ── Section ── */
.nx-section { padding: 100px 5%; }
.nx-section-dark { background: var(--nx-dark); }
.nx-section-light { background: var(--nx-light); }
.nx-section-header { text-align: center; margin-bottom: 60px; }
.nx-section-header h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--nx-dark); margin-top: 12px; }
.nx-section-dark .nx-section-header h2 { color: var(--nx-white); }
.nx-section-dark .nx-label { color: var(--nx-accent); }

/* ── Cards ── */
.nx-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 32px;
  transition: var(--nx-transition);
}
.nx-card:hover { border-color: var(--nx-dark); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(1,42,43,.08); }
.nx-card-dark { background: var(--nx-dark2); border-color: rgba(255,255,255,.08); }
.nx-card-dark:hover { border-color: var(--nx-accent); }
.nx-card-icon { width: 56px; height: 56px; background: var(--nx-light); border-radius: var(--nx-radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; }
.nx-card-dark .nx-card-icon { background: rgba(255,255,255,.06); }
.nx-card h3 { font-size: 18px; font-weight: 600; color: var(--nx-dark); margin-bottom: 10px; }
.nx-card-dark h3 { color: var(--nx-white); }
.nx-card p { font-size: 14px; color: var(--nx-muted); line-height: 1.6; }
.nx-card-dark p { color: rgba(255,255,255,.55); }

/* ── Feature Grid ── */
.nx-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.nx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .nx-grid-4 { grid-template-columns: repeat(2,1fr); } .nx-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .nx-grid-4, .nx-grid-3, .nx-grid-2 { grid-template-columns: 1fr; } .nx-hero-stats { flex-direction: column; gap: 20px; } .nx-nav-links { display: none; } }

/* ── Steps / Process ── */
.nx-steps { display: flex; gap: 0; position: relative; }
.nx-steps::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: var(--nx-border); z-index: 0; }
.nx-step { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 16px; }
.nx-step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--nx-accent); color: var(--nx-dark); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.nx-step h4 { font-size: 16px; font-weight: 600; color: var(--nx-dark); margin-bottom: 8px; }
.nx-step p { font-size: 13px; color: var(--nx-muted); }

/* ── Pricing ── */
.nx-pricing-card { border-radius: var(--nx-radius-lg); padding: 40px; border: 1px solid var(--nx-border); }
.nx-pricing-card.featured { background: var(--nx-dark); border-color: var(--nx-accent); }
.nx-pricing-card.featured h3, .nx-pricing-card.featured .nx-price { color: var(--nx-white); }
.nx-pricing-card.featured p { color: rgba(255,255,255,.6); }
.nx-price { font-size: 48px; font-weight: 700; color: var(--nx-dark); line-height: 1; }
.nx-price sup { font-size: 20px; vertical-align: top; margin-top: 8px; }
.nx-price-period { font-size: 14px; color: var(--nx-muted); margin-top: 4px; }
.nx-pricing-features { list-style: none; margin: 24px 0; }
.nx-pricing-features li { padding: 10px 0; border-bottom: 1px solid var(--nx-border); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.nx-pricing-card.featured .nx-pricing-features li { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.nx-pricing-features li::before { content: '✓'; color: var(--nx-accent); font-weight: 700; }

/* ── Ticker / Marquee ── */
.nx-ticker { background: var(--nx-accent); padding: 14px 0; overflow: hidden; }
.nx-ticker-inner { display: flex; gap: 48px; animation: ticker 20s linear infinite; white-space: nowrap; }
.nx-ticker-item { font-size: 14px; font-weight: 600; color: var(--nx-dark); display: flex; align-items: center; gap: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Footer ── */
.nx-footer { background: var(--nx-dark); padding: 80px 5% 40px; }
.nx-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.nx-footer-logo { font-size: 24px; font-weight: 700; color: var(--nx-white); margin-bottom: 16px; }
.nx-footer-logo span { color: var(--nx-accent); }
.nx-footer-desc { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 280px; }
.nx-footer h4 { font-size: 14px; font-weight: 600; color: var(--nx-white); margin-bottom: 20px; letter-spacing: .05em; }
.nx-footer ul { list-style: none; }
.nx-footer ul li { margin-bottom: 12px; }
.nx-footer ul li a { font-size: 14px; color: rgba(255,255,255,.5); text-decoration: none; transition: var(--nx-transition); }
.nx-footer ul li a:hover { color: var(--nx-accent); }
.nx-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.nx-footer-copy { font-size: 13px; color: rgba(255,255,255,.4); }
.nx-social { display: flex; gap: 12px; }
.nx-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; transition: var(--nx-transition); }
.nx-social a:hover { background: var(--nx-accent); color: var(--nx-dark); }

/* ── Checkout / Forms ── */
.nx-form-card {
  background: var(--nx-white);
  border-radius: var(--nx-radius-lg);
  box-shadow: 0 8px 40px rgba(1,42,43,.12);
  overflow: hidden;
  max-width: 460px;
  width: 100%;
}
.nx-form-header { background: var(--nx-dark); padding: 28px 32px; }
.nx-form-header h2 { color: var(--nx-white); font-size: 18px; font-weight: 600; }
.nx-form-header p { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 4px; }
.nx-form-amount { background: rgba(217,255,67,.12); border: 1px solid rgba(217,255,67,.3); border-radius: var(--nx-radius); padding: 16px 20px; margin-bottom: 24px; text-align: center; }
.nx-form-amount .amount { font-size: 36px; font-weight: 700; color: var(--nx-dark); }
.nx-form-amount .currency { font-size: 14px; color: var(--nx-muted); margin-top: 2px; }
.nx-form-body { padding: 32px; }
.nx-input-group { margin-bottom: 18px; }
.nx-input-group label { display: block; font-size: 12px; font-weight: 600; color: var(--nx-dark); margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; }
.nx-input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--nx-border); border-radius: var(--nx-radius); font-family: var(--nx-font); font-size: 15px; color: var(--nx-dark); outline: none; transition: var(--nx-transition); background: var(--nx-white); }
.nx-input:focus { border-color: var(--nx-dark); }
.nx-input-row { display: flex; gap: 10px; }
.nx-input-row .nx-input:first-child { width: 100px; flex-shrink: 0; }
.nx-tabs { display: flex; background: var(--nx-light); border-radius: var(--nx-radius); padding: 4px; margin-bottom: 24px; }
.nx-tab-btn { flex: 1; padding: 10px; border: none; background: none; border-radius: 8px; font-family: var(--nx-font); font-size: 13px; font-weight: 500; color: var(--nx-muted); cursor: pointer; transition: var(--nx-transition); }
.nx-tab-btn.active { background: var(--nx-white); color: var(--nx-dark); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.nx-tab-pane { display: none; }
.nx-tab-pane.active { display: block; }
.nx-fx-notice { background: rgba(217,255,67,.1); border: 1px solid rgba(217,255,67,.4); border-radius: var(--nx-radius); padding: 12px 16px; font-size: 13px; color: var(--nx-dark2); margin-bottom: 18px; display: none; }
.nx-submit-btn { width: 100%; padding: 16px; background: var(--nx-dark); color: var(--nx-white); border: none; border-radius: var(--nx-radius); font-family: var(--nx-font); font-size: 16px; font-weight: 600; cursor: pointer; transition: var(--nx-transition); display: flex; align-items: center; justify-content: center; gap: 8px; }
.nx-submit-btn:hover:not(:disabled) { background: var(--nx-dark2); }
.nx-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.nx-submit-btn.success { background: #15803d; }
.nx-alert { padding: 12px 16px; border-radius: var(--nx-radius); font-size: 14px; margin-bottom: 16px; display: none; }
.nx-alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.nx-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.nx-alert-info    { background: rgba(217,255,67,.1); color: var(--nx-dark2); border: 1px solid rgba(217,255,67,.4); }
.nx-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--nx-muted); margin-top: 16px; }
.nx-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Badge ── */
.nx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.nx-badge-accent { background: rgba(217,255,67,.15); color: var(--nx-dark2); }
.nx-badge-dark   { background: rgba(1,42,43,.08); color: var(--nx-dark); }

/* ── Utilities ── */
.nx-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nx-text-center { text-align: center; }
.nx-mt-4 { margin-top: 16px; }
.nx-mt-8 { margin-top: 32px; }
.nx-mb-4 { margin-bottom: 16px; }
.nx-flex { display: flex; }
.nx-gap-3 { gap: 12px; }
.nx-gap-4 { gap: 16px; }
.nx-items-center { align-items: center; }
.nx-justify-between { justify-content: space-between; }
.nx-w-full { width: 100%; }
