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

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

:root {
  --background: #f5f7fa;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #0f172a;
  --primary-foreground: #f5f7fa;
  --secondary: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #2563eb;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --fintech-blue: #2563eb;
  --navy: #0f172a;
  --radius: 0.5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Manrope', sans-serif; }
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }

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

/* Gradients */
.gradient-navy { background: linear-gradient(135deg, #0f172a, #1e293b); }
.gradient-blue { background: linear-gradient(135deg, #2563eb, #4f83f1); }
.gradient-subtle { background: linear-gradient(180deg, #f5f7fa, #edf0f5); }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.navbar-brand { font-family: 'Manrope', sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--primary-foreground); letter-spacing: -0.02em; }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a { font-size: 0.875rem; color: rgba(245,247,250,0.7); transition: color 0.2s; }
.navbar-links a:hover { color: var(--primary-foreground); }
.navbar-cta { font-size: 0.875rem; font-weight: 500; color: var(--accent-foreground); padding: 0.5rem 1rem; border-radius: 0.375rem; transition: opacity 0.2s; }
.navbar-cta:hover { opacity: 0.9; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--primary-foreground); }
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-menu { display: none; background: #0f172a; border-top: 1px solid rgba(255,255,255,0.05); padding: 1rem 1.5rem 1.5rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; font-size: 0.875rem; color: rgba(245,247,250,0.7); padding: 0.5rem 0; }
.mobile-menu a:hover { color: var(--primary-foreground); }
.mobile-menu .mobile-cta { display: block; text-align: center; margin-top: 0.75rem; padding: 0.5rem 1rem; border-radius: 0.375rem; font-weight: 500; color: var(--accent-foreground); }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: block; }
}

/* Hero */
.hero { position: relative; height: 100vh; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.75); backdrop-filter: blur(1px); }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 56rem; padding: 0 1.5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.2); border-radius: 9999px; padding: 0.375rem 1rem; margin-bottom: 2rem; font-size: 0.75rem; font-weight: 500; color: var(--fintech-blue); text-transform: uppercase; letter-spacing: 0.05em; }
.hero h1 { font-size: 2.25rem; font-weight: 700; color: var(--accent-foreground); line-height: 1.2; margin-bottom: 1.5rem; }
.hero .subtitle { font-size: 1.125rem; color: rgba(245,247,250,0.7); max-width: 42rem; margin: 0 auto 1.5rem; }
.hero .description { font-size: 0.875rem; color: rgba(245,247,250,0.5); max-width: 42rem; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent-foreground); font-weight: 500; padding: 0.75rem 2rem; border-radius: 0.5rem; font-size: 0.875rem; transition: opacity 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(245,247,250,0.2); color: rgba(245,247,250,0.8); font-weight: 500; padding: 0.75rem 2rem; border-radius: 0.5rem; font-size: 0.875rem; background: transparent; transition: background 0.2s; cursor: pointer; }
.btn-outline:hover { background: rgba(245,247,250,0.05); }

@media (min-width: 640px) { .hero h1 { font-size: 3rem; } .hero .subtitle { font-size: 1.25rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

/* Section common */
.section { padding: 6rem 0; }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section-title { font-size: 1.875rem; font-weight: 700; color: var(--foreground); margin-bottom: 1.5rem; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-subtitle { color: var(--muted-foreground); line-height: 1.7; }
.text-center { text-align: center; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 36rem; margin-left: auto; margin-right: auto; }

/* Infrastructure Stack */
.stack-list { max-width: 36rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.stack-item { display: flex; align-items: center; gap: 1rem; background: linear-gradient(to right, rgba(37,99,235,0.08), rgba(37,99,235,0.02)); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem 1.5rem; transition: box-shadow 0.2s; }
.stack-item:hover { box-shadow: 0 4px 6px -1px rgba(15,23,42,0.07); }
.icon-box { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: rgba(37,99,235,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--fintech-blue); }
.icon-box-lg { width: 3rem; height: 3rem; border-radius: 0.75rem; }
.stack-item span { font-weight: 500; color: var(--foreground); font-size: 0.875rem; }

/* Infrastructure Overview (diagram) */
.diagram { max-width: 24rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.diagram-card { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 1px 2px rgba(15,23,42,0.05); transition: box-shadow 0.2s; }
.diagram-card:hover { box-shadow: 0 4px 12px rgba(15,23,42,0.08); }
.diagram-card span { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.875rem; color: var(--foreground); }
.diagram-arrow { color: var(--muted-foreground); display: flex; align-items: center; justify-content: center; padding: 0.25rem 0; }

/* Infrastructure Layers */
.layers-grid { display: grid; gap: 1.5rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .layers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .layers-grid { grid-template-columns: repeat(3, 1fr); } }
.layer-card { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; transition: box-shadow 0.2s; }
.layer-card:hover { box-shadow: 0 10px 15px -3px rgba(15,23,42,0.08); }
.layer-card h3 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--foreground); margin-bottom: 0.75rem; }
.layer-card p { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; }
.layer-card .includes-label { font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.layer-card ul { list-style: none; padding: 0; }
.layer-card li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--foreground); margin-bottom: 0.5rem; }
.layer-card li .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fintech-blue); margin-top: 0.4rem; flex-shrink: 0; }

/* Regulatory */
.regulatory-content { max-width: 48rem; }
.regulatory-content .reg-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.regulatory-content p { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1.25rem; }
.regulatory-content p.highlight { color: var(--foreground); font-weight: 500; }

/* Global Sellers */
.sellers-grid { display: grid; gap: 1rem; max-width: 42rem; margin: 0 auto; }
@media (min-width: 640px) { .sellers-grid { grid-template-columns: repeat(2, 1fr); } }
.seller-card { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem 1.25rem; transition: box-shadow 0.2s; }
.seller-card:hover { box-shadow: 0 4px 6px -1px rgba(15,23,42,0.07); }
.seller-card span { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }

/* How It Works */
.how-steps { max-width: 42rem; margin: 0 auto; }
.how-step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-indicator { display: flex; flex-direction: column; align-items: center; }
.step-circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.3); display: flex; align-items: center; justify-content: center; }
.step-circle span { font-size: 0.75rem; font-weight: 700; color: var(--fintech-blue); font-family: 'DM Sans', monospace; }
.step-line { width: 2px; height: 3rem; background: rgba(245,247,250,0.1); }
.step-text p { color: var(--primary-foreground); font-weight: 500; font-size: 0.875rem; padding-top: 0.5rem; padding-bottom: 1.5rem; }

/* FAQ */
.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item.open { box-shadow: 0 4px 12px rgba(15,23,42,0.06); }
.faq-question { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; font-size: 0.875rem; font-weight: 500; color: var(--foreground); text-align: left; font-family: 'Inter', sans-serif; }
.faq-chevron { transition: transform 0.2s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1.5rem; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }

/* Contact form */
.contact-form { max-width: 36rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.625rem 1rem; font-size: 0.875rem; font-family: 'Inter', sans-serif;
  color: var(--foreground); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--fintech-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group textarea { resize: none; }

/* Footer */
.footer { background: var(--navy); padding: 4rem 0; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { font-family: 'Manrope', sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--primary-foreground); margin-bottom: 1rem; }
.footer-address { font-style: normal; font-size: 0.875rem; color: rgba(245,247,250,0.5); line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
@media (min-width: 768px) { .footer-links { justify-content: flex-end; } }
.footer-links a { font-size: 0.875rem; color: rgba(245,247,250,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-foreground); }
.footer-bottom { border-top: 1px solid rgba(245,247,250,0.1); margin-top: 3rem; padding-top: 2rem; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(245,247,250,0.3); }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(1rem);
  background: var(--navy); color: var(--primary-foreground); padding: 1rem 2rem;
  border-radius: 0.5rem; font-size: 0.875rem; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s; z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
