/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ===== BASE VARIABLES & RESET ===== */
:root {
  --ink: #0b0b0c;
  --pearl: #f5f5f7;
  --paper: #ffffff;
  --muted: #6e6e73;
  --line-soft: #e5e5ea;
  --orange: #ff5a1f;
  --orange-deep: #d9430c;
  --orange-soft: rgba(255, 90, 31, 0.1);
  --gradient: linear-gradient(135deg, #ff5a1f 0%, #e03e00 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

/* ===== HACKERA FINTECH STYLES ===== */
.hk-wrap { max-width: 72rem; margin: 0 auto; padding: 0 24px; }
.hk-dark { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hk-hero { padding: 88px 0 72px; }
.hk-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hk-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.8); }
.hk-h1 { margin: 22px 0 0; font-weight: 700; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; }
.hk-sub { margin: 20px 0 0; max-width: 34rem; font-size: 1.05rem; line-height: 1.65; color: rgba(255,255,255,0.72); }
.hk-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hk-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 9999px; font-weight: 600; font-size: 14px; text-decoration: none; }
.hk-btn-primary { background: var(--gradient); color: #fff; }
.hk-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,90,31,0.32); }
.hk-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.hk-btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.hk-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; font-family: 'IBM Plex Mono', monospace; }
.hk-stats b { display: block; font-size: 1.4rem; color: #fff; font-family: 'Poppins', sans-serif; }
.hk-stats span { font-size: 12px; color: rgba(255,255,255,0.55); }
.hk-visual { position: relative; }
.hk-visual::before { content: ""; position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(255,90,31,0.35), transparent); filter: blur(30px); }
.hk-visual img { position: relative; width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55)); }
.hk-float { animation: hkFloat 7s ease-in-out infinite; }
@keyframes hkFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hk-section { padding: 80px 0; }
.hk-light { background: var(--pearl); }
.hk-white { background: var(--paper); }
.hk-title { margin: 0; font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; line-height: 1.15; max-width: 36rem; }
.hk-lead { margin: 14px 0 0; max-width: 38rem; color: var(--muted); line-height: 1.65; }
.hk-dark .hk-lead { color: rgba(255,255,255,0.65); }
.hk-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
.hk-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 20px; padding: 28px; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.hk-card h3 { margin: 16px 0 8px; font-size: 1.05rem; font-weight: 600; }
.hk-card p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.hk-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-deep); font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 13px; }
.hk-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 16px 36px rgba(11,11,12,0.1); }
.hk-tag { display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 9999px; background: var(--orange-soft); color: var(--orange-deep); font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; }

.hk-steps { counter-reset: step; }
.hk-step { position: relative; padding: 26px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); }
.hk-step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; background: var(--gradient); font-weight: 700; font-size: 14px; }
.hk-step h3 { margin: 0 0 8px; font-size: 1.02rem; }
.hk-step p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.65); }

.hk-split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hk-split img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 30px rgba(11,11,12,0.25)); }

.hk-table-wrap { margin-top: 40px; overflow-x: auto; border-radius: 20px; border: 1px solid var(--line-soft); background: var(--paper); }
.hk-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.92rem; }
.hk-table th, .hk-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.hk-table tr:last-child td { border-bottom: none; }
.hk-table thead th { font-weight: 600; background: var(--pearl); }
.hk-table th.hk-us, .hk-table td.hk-us { background: var(--orange-soft); font-weight: 600; color: var(--orange-deep); }
.hk-table td:first-child { font-weight: 600; }
.hk-table td.hk-them { color: var(--muted); }

.hk-security { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
.hk-sec-item { padding: 22px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); }
.hk-sec-item b { display: block; margin-bottom: 6px; font-size: 0.98rem; }
.hk-sec-item span { font-size: 0.86rem; line-height: 1.55; color: rgba(255,255,255,0.62); }

.hk-road { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.hk-road-item { display: flex; gap: 16px; padding: 22px; border-radius: 18px; border: 1px solid var(--line-soft); background: var(--paper); }
.hk-road-item .hk-icon { flex-shrink: 0; }
.hk-road-item h3 { margin: 0 0 4px; font-size: 1rem; }
.hk-road-item p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

@media (min-width: 640px) {
  .hk-grid.hk-2 { grid-template-columns: repeat(2, 1fr); }
  .hk-security { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hk-hero-grid, .hk-split { grid-template-columns: 1.05fr 1fr; }
  .hk-grid.hk-3 { grid-template-columns: repeat(3, 1fr); }
  .hk-grid.hk-4 { grid-template-columns: repeat(4, 1fr); }
  .hk-security { grid-template-columns: repeat(4, 1fr); }
  .hk-road { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hk-float { animation: none; } }

/* ---- Footer ---- */
.hk-footer { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 64px 0 28px; }
.hk-footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 36px; }
.hk-footer-brand { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.hk-footer-brand i { color: var(--orange); font-style: normal; }
.hk-footer-tag { margin: 12px 0 0; max-width: 20rem; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.6); }
.hk-footer h4 { margin: 0 0 14px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.hk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hk-footer a { color: rgba(255,255,255,0.62); text-decoration: none; font-size: 0.9rem; }
.hk-footer a:hover { color: var(--orange); }
.hk-footer-bottom { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.5); }
.hk-footer-note { position: relative; z-index: 2; margin: 18px 0 0; max-width: 46rem; font-size: 11.5px; line-height: 1.6; color: rgba(255,255,255,0.4); }
@media (min-width: 640px) { .hk-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .hk-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---- Header ---- */
.hk-header { position: sticky; top: 0; z-index: 50; background: rgba(11,11,12,0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.1); padding-top: env(safe-area-inset-top, 0px); }
.hk-header-in { max-width: 72rem; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hk-logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.hk-logo i { color: var(--orange); font-style: normal; }
.hk-nav { display: none; align-items: center; gap: 26px; }
.hk-nav a { color: rgba(255,255,255,0.75); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.hk-nav a:hover { color: var(--orange); }
.hk-nav a.hk-nav-active { color: #fff; }
.hk-header-right { display: flex; align-items: center; gap: 14px; }
.hk-lang { color: rgba(255,255,255,0.6); font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-decoration: none; }
.hk-lang:hover { color: #fff; }
.hk-header .hk-btn { padding: 10px 20px; font-size: 13px; color: #fff; }
@media (min-width: 820px) { .hk-nav { display: flex; } }

/* ---- Apply now: left side drawer with contact form ---- */
.hk-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(11,11,12,0.6); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; }
.hk-overlay.open { opacity: 1; visibility: visible; }
.hk-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; width: min(440px, 100vw); background: var(--paper); color: var(--ink); transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); display: flex; flex-direction: column; box-shadow: 20px 0 60px rgba(0,0,0,0.3); visibility: hidden; }
.hk-drawer.open { transform: translateX(0); visibility: visible; }
.hk-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: calc(20px + env(safe-area-inset-top, 0px)) 24px 18px; background: var(--ink); color: #fff; }
.hk-drawer-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.hk-drawer-head p { margin: 4px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.6); }
.hk-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.hk-close:hover { background: rgba(255,255,255,0.1); }
.hk-form { flex: 1; overflow-y: auto; padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; align-content: start; }
.hk-field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; }
.hk-field input, .hk-field select, .hk-field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--pearl); font: inherit; font-size: 16px; color: var(--ink); }
.hk-field textarea { min-height: 96px; resize: vertical; }
.hk-field input:focus, .hk-field select:focus, .hk-field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.hk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hk-check input { margin-top: 3px; accent-color: var(--orange); }
.hk-submit { width: 100%; padding: 14px; border-radius: 9999px; background: var(--gradient); color: #fff; font-weight: 600; font-size: 14px; }
.hk-submit:hover { box-shadow: 0 10px 24px rgba(255,90,31,0.32); }
.hk-submit[disabled] { opacity: 0.6; cursor: default; }
.hk-form-msg { font-size: 13px; line-height: 1.5; }
.hk-form-msg.err { color: #C2260C; }
.hk-done { padding: 40px 24px; text-align: center; }
.hk-done h3 { margin: 0 0 8px; font-size: 1.2rem; }
.hk-done p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }
body.hk-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .hk-drawer, .hk-overlay { transition: none; } }
