/* ============================================================
   OBICASH — Global Stylesheet
   Aesthetic: Dark Financial SaaS — Precision, Authority, Tech
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --bg-base:       #12161A;
  --bg-surface:    #1A1F26;
  --bg-card:       #242B35;
  --bg-card-hover: #2C3441;

  --border-subtle: rgba(255,255,255,0.06);
  --border-mid:    rgba(255,255,255,0.10);
  --border-accent: rgba(0,229,255,0.30);

  --text-primary:  #F4F6F8;
  --text-secondary:#9AA3B0;
  --text-muted:    #5C6572;

  --accent-blue:   #00E5FF;
  --accent-blue-dim:rgba(0,229,255,0.12);
  --accent-blue-glow:rgba(0,229,255,0.25);
  --accent-green:  #10B981;
  --accent-green-dim:rgba(16,185,129,0.12);

  --font-main:     'Sora', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-card:   0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow:   0 0 40px rgba(0,229,255,0.15);
  --shadow-strong: 0 20px 60px rgba(0,0,0,0.6);

  --transition:    0.2s ease;
  --transition-slow:0.4s cubic-bezier(0.16,1,0.3,1);

  --section-gap:   120px;
  --container:     1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-main); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.3; }
h4 { font-size: 16px; font-weight: 600; }
p  { font-size: 16px; line-height: 1.75; color: var(--text-secondary); }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: #0A0E12;
  box-shadow: 0 0 0 0 var(--accent-blue-glow);
}

.btn-primary:hover {
  background: #33EAFF;
  box-shadow: 0 0 24px var(--accent-blue-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
}
.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

.btn-lg { height: 56px; padding: 0 36px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-slow), border-color var(--transition-slow), backdrop-filter var(--transition-slow);
}

.site-header.scrolled {
  background: rgba(18,22,26,0.90);
  border-color: var(--border-subtle);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-right: 40px;
}

.logo-mark {
  width: 34px; height: 34px;
  background: var(--accent-blue);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}

.logo-mark svg { width: 18px; height: 18px; }

.logo span { color: var(--accent-blue); }

nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.header-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 40px;
  margin-top: var(--section-gap);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 13px; max-width: 280px; }

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--accent-blue); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Section Spacing ──────────────────────────────────────── */
.section { padding: var(--section-gap) 0; }
.section-sm { padding: 64px 0; }

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  margin-bottom: 56px;
}

.section-header .label { margin-bottom: 12px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 580px; font-size: 17px; }

.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ── Feature Icon ─────────────────────────────────────────── */
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-blue-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

/* ── Tag / Badge ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.badge-green {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(16,185,129,0.25);
}

.badge-blue {
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
  border: 1px solid var(--border-accent);
}

/* ── Grid Separator Line ──────────────────────────────────── */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

/* ── Glow orbs ────────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.5;
}

/* ── Highlight text ───────────────────────────────────────── */
.text-accent { color: var(--accent-blue); }
.text-green  { color: var(--accent-green); }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ── Separator Pipe ───────────────────────────────────────── */
.pipe {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--border-mid);
  margin: 0 12px;
  vertical-align: middle;
}

/* ── Browser Mockup ───────────────────────────────────────── */
.browser-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.browser-dot:nth-child(1) { background: #FF5F57; }
.browser-dot:nth-child(2) { background: #FEBC2E; }
.browser-dot:nth-child(3) { background: #28C840; }

.browser-address {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 8px;
}

.browser-content {
  padding: 24px;
}

/* ── Dashboard UI Elements ────────────────────────────────── */
.dash-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.dash-card-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.dash-card-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.dash-chart-area {
  height: 80px;
  position: relative;
  overflow: hidden;
}

/* ── Table styles ─────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 9px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--border-accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover { background: var(--bg-card); }
.faq-item.open .faq-question { background: var(--bg-card); }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

/* ── Form ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-label span { color: var(--accent-blue); }

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: var(--accent-blue);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-blue-dim);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6572' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select.form-control option {
  background: var(--bg-card);
  color: var(--text-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.form-check-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-check-label a { color: var(--accent-blue); }
.form-check-label a:hover { text-decoration: underline; }

/* ── Alert / Message ──────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: none;
  margin-bottom: 20px;
}
.alert.show { display: block; }
.alert-success {
  background: var(--accent-green-dim);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--accent-green);
}
.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #F87171;
}

/* ── Scroll-triggered fade in ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-gap: 80px; }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; }

  .container { padding: 0 20px; }

  nav, .header-cta .btn-secondary { display: none; }

  .nav-toggle { display: flex; }

  nav.open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--bg-base);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    overflow-y: auto;
    z-index: 999;
  }

  nav.open ul { flex-direction: column; gap: 4px; }
  nav.open ul li a { font-size: 18px; padding: 14px 16px; }
  nav.open .header-cta { display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--border-subtle); margin-top: 8px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
