:root {
  --bg-canvas: #09090b;
  --bg-surface: #121215;
  --bg-surface-hover: #18181b;
  --bg-card: #141417;
  --border-dim: #27272a;
  --border-bright: #3f3f46;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #a1a1aa;
  --accent-primary: #ffffff;
  --accent-emerald: #10b981;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

/* WCAG 2.1 AA Focus Indicator */
:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 3px;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
  border-radius: 4px;
}

/* WCAG 2.1 AA Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--accent-emerald);
  color: #09090b;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  z-index: 99999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

body {
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(ellipse 80% 600px at 50% 0%, rgba(16, 185, 129, 0.05), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 600px, 24px 24px;
  background-repeat: no-repeat, repeat;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-picture {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-dim);
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border-dim);
  background: var(--bg-surface);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

/* Hero Section */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: left;
}

.badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-dim);
  background: var(--bg-surface);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-main);
  max-width: 800px;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-canvas);
  border: 1px solid var(--text-main);
}

.btn-primary:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-dim);
}

.btn-secondary:hover {
  border-color: var(--border-bright);
  background: var(--bg-surface);
}

/* Section Common */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-dim);
}

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

.section-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-head p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Grid Cards (Ecosystem) */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-bright);
}

.card-header {
  margin-bottom: 1rem;
}

.card-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  background: var(--bg-surface);
  color: var(--text-muted);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-features {
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-dim);
  padding-top: 1rem;
}

.card-features li {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
}

.card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.15s ease;
}

.card-link:hover {
  opacity: 0.8;
}

/* Verification Section */
.verify-box {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 2rem;
}

.anti-fraud-alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border: 1px solid #7f1d1d;
  background: rgba(127, 29, 29, 0.15);
  margin-bottom: 2rem;
}

.anti-fraud-alert h3,
.anti-fraud-alert h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fca5a5;
  margin-bottom: 0.25rem;
}

.anti-fraud-alert p {
  font-size: 0.8125rem;
  color: #fecaca;
  line-height: 1.5;
}

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

.pay-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1.25rem;
}

.pay-bank {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.pay-holder {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.pay-holder small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.pay-number-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-dim);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

.pay-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  min-height: 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-bright);
}

/* Specs / Standards Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1.5rem;
}

.spec-item h3,
.spec-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.spec-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-dim);
  padding: 2.5rem 0;
  background: var(--bg-canvas);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

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

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Mobile Toggle & Drawer Navigation */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
  transition: all 0.2s ease;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-dim);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-dim);
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.drawer-close:hover {
  color: var(--text-main);
  border-color: var(--border-bright);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.drawer-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  transition: all 0.15s ease;
}

.drawer-link:hover, .drawer-link:focus {
  color: var(--text-main);
  border-color: var(--border-bright);
  background: var(--bg-surface-hover);
}

.drawer-highlight {
  color: var(--accent-emerald) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  font-family: var(--font-mono);
  font-weight: 600;
}

.drawer-footer {
  border-top: 1px solid var(--border-dim);
  padding-top: 1rem;
}

.drawer-status {
  display: flex !important;
}

.drawer-nib {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

.card-link-muted {
  color: var(--text-dim) !important;
  cursor: default;
}

.copy-btn.copied {
  color: var(--accent-emerald) !important;
  border-color: var(--accent-emerald);
}

body.drawer-open {
  overflow: hidden;
}

/* AI Sales Concierge Widget Styles */
.aomi-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #18181b;
  color: #fafafa;
  border: 1px solid #27272a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: all 0.2s ease;
}
.aomi-toggle:hover {
  transform: scale(1.05);
  border-color: #3f3f46;
  background: #27272a;
}
.aomi-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.aomi-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #09090b;
  border-radius: 50%;
}

.aomi-window {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 360px;
  height: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  font-family: var(--font-sans);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: all 0.2s ease;
}
.aomi-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.aomi-header {
  padding: 12px 14px;
  background: #121215;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aomi-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aomi-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #18181b;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fafafa;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.aomi-title {
  font-size: 13px;
  font-weight: 600;
  color: #fafafa;
  letter-spacing: -0.01em;
}
.aomi-status {
  font-size: 10px;
  color: #a1a1aa;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 5px;
}
.aomi-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.aomi-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.aomi-btn-icon {
  background: transparent;
  border: none;
  color: #64748B;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.aomi-btn-icon:hover {
  color: #F8FAFC;
  background: #111827;
}
.aomi-btn-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.aomi-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aomi-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}
.aomi-msg.bot {
  align-self: flex-start;
  background: #141417;
  color: #f4f4f5;
  border: 1px solid #27272a;
  border-bottom-left-radius: 2px;
}
.aomi-msg.user {
  align-self: flex-end;
  background: #27272a;
  color: #f4f4f5;
  border: 1px solid #3f3f46;
  border-bottom-right-radius: 2px;
}
.aomi-msg a {
  color: #ffffff;
  text-decoration: underline;
}
.aomi-msg code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #1f1f23;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid #27272a;
}
.aomi-msg strong {
  color: #ffffff;
  font-weight: 600;
}

.aomi-quick-replies {
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.aomi-quick-replies::-webkit-scrollbar {
  display: none;
}
.aomi-chip {
  background: #141417;
  border: 1px solid #27272a;
  color: #a1a1aa;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.aomi-chip:hover {
  border-color: #52525b;
  color: #f4f4f5;
  background: #18181b;
}

.aomi-input-wrap {
  padding: 10px 14px;
  background: #121215;
  border-top: 1px solid #27272a;
  display: flex;
  gap: 8px;
}
.aomi-input {
  flex: 1;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 6px;
  color: #f4f4f5;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.aomi-input:focus {
  border-color: #52525b;
}
.aomi-send {
  background: #ffffff;
  color: #09090b;
  border: none;
  border-radius: 6px;
  padding: 0 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aomi-send:hover {
  background: #00D2FF;
  transform: translateY(-1px);
}
.aomi-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.aomi-typing {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  align-items: center;
}
.aomi-typing-dot {
  width: 6px;
  height: 6px;
  background: #94A3B8;
  border-radius: 50%;
  animation: aomiPulse 1.2s infinite ease-in-out;
}
.aomi-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.aomi-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes aomiPulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links, .nav-status {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .verify-box {
    padding: 1.25rem;
  }
}
