:root {
  --hisebi-navy: #0a1730;
  --hisebi-navy-2: #101f42;
  --hisebi-navy-3: #16265b;
  --hisebi-blue: #2f6fed;
  --hisebi-blue-light: #6b9bff;
  --hisebi-green: #16c79a;
  --hisebi-ink: #0f1729;
  --hisebi-muted: #5b6478;
  --bs-primary: var(--hisebi-blue);
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--hisebi-ink);
}

/* Bootstrap's spacing scale stops at -5 (3rem); this page's sections use py-6
   for a wider gap. Left un-important so Bootstrap's own !important utilities
   (e.g. pt-5 layered on top for a tighter top edge) still win where combined. */
.py-6 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

h1, h2, h3, h4, h5, .fw-black {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- Navbar ---------- */
.navbar-hisebi {
  background: rgba(10, 23, 48, 0.85);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.navbar-hisebi.is-scrolled {
  background: rgba(10, 23, 48, 0.97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.navbar-hisebi .navbar-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.navbar-hisebi .navbar-brand .brand-dot {
  color: var(--hisebi-green);
}

.navbar-hisebi .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
}

.navbar-hisebi .nav-link:hover,
.navbar-hisebi .nav-link.active {
  color: #fff;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 6px;
}

.lang-switch a.active {
  color: #fff;
}

.btn-hisebi-primary {
  background: linear-gradient(135deg, var(--hisebi-blue), #4f7fff);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.35);
}

.btn-hisebi-primary:hover {
  background: linear-gradient(135deg, #3a7bf5, var(--hisebi-blue-light));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.45);
}

.btn-hisebi-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
}

.btn-hisebi-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Hero ---------- */
.hero-hisebi {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 111, 237, 0.25), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(22, 199, 154, 0.18), transparent 40%),
    linear-gradient(160deg, var(--hisebi-navy-3), var(--hisebi-navy) 70%);
  color: #fff;
  padding: 8.5rem 0 7rem;
  overflow: hidden;
}

.hero-hisebi::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at top, black 15%, transparent 70%);
  pointer-events: none;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
}

.eyebrow-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hisebi-green);
  box-shadow: 0 0 0 4px rgba(22, 199, 154, 0.2);
}

.hero-hisebi .display-3 {
  font-weight: 800;
  line-height: 1.08;
}

.hero-hisebi .lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
}

.hero-trust {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Hero mockup card (CSS-only app preview, no real screenshots yet) */
.hero-mockup-wrap {
  position: relative;
  perspective: 1400px;
}

.hero-mockup {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  padding: 1.5rem;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.4s ease;
  color: var(--hisebi-ink);
}

.hero-mockup-wrap:hover .hero-mockup {
  transform: rotateY(-3deg) rotateX(2deg);
}

.hero-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-mockup-balance {
  font-size: 1.9rem;
  font-weight: 800;
}

.hero-mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  margin: 1.25rem 0;
}

.hero-mockup-chart span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--hisebi-blue-light), var(--hisebi-blue));
}

.hero-mockup-chart span.alt {
  background: linear-gradient(180deg, #79e0c6, var(--hisebi-green));
}

.hero-mockup-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid #eef1f6;
}

.hero-mockup-row .icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-floating-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  padding: 0.9rem 1.1rem;
  color: var(--hisebi-ink);
  animation: float 5s ease-in-out infinite;
}

.hero-floating-card.card-1 {
  top: -1.5rem;
  right: -1.5rem;
  animation-delay: 0s;
}

.hero-floating-card.card-2 {
  bottom: -1.5rem;
  left: -2rem;
  animation-delay: 1.2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 991px) {
  .hero-mockup { transform: none; }
  .hero-floating-card { display: none; }
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(10, 23, 48, 0.08);
  margin-top: -4.5rem;
  position: relative;
  z-index: 2;
  padding: 2.25rem 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hisebi-navy);
}

.stat-label {
  color: var(--hisebi-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Section framing ---------- */
.eyebrow-label {
  color: var(--hisebi-blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-weight: 800;
  color: var(--hisebi-navy);
}

.section-subtitle {
  color: var(--hisebi-muted);
}

/* ---------- Features ---------- */
.feature-card {
  border: 1px solid #eef1f6;
  border-radius: 16px;
  height: 100%;
  padding: 2rem;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 23, 48, 0.1);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.feature-icon.bg-blue { background: rgba(47, 111, 237, 0.1); color: var(--hisebi-blue); }
.feature-icon.bg-green { background: rgba(22, 199, 154, 0.12); color: #0e9e7c; }
.feature-icon.bg-amber { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.feature-icon.bg-purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.feature-icon.bg-red { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.feature-icon.bg-teal { background: rgba(20, 184, 166, 0.12); color: #0d9488; }

.badge-soon {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
}

/* ---------- How it works ---------- */
.how-step {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}

.how-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hisebi-blue), var(--hisebi-navy-3));
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.3);
}

.how-connector {
  position: absolute;
  top: 28px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #d6ddec 0 8px, transparent 8px 16px);
}

@media (max-width: 767px) {
  .how-connector { display: none; }
}

/* ---------- Screenshots (phone mockups) ---------- */
.section-dark {
  background: var(--hisebi-navy);
  color: #fff;
}

.phone-frame {
  background: #111a33;
  border: 6px solid #1c2a52;
  border-radius: 32px;
  aspect-ratio: 9 / 18;
  padding: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 16px;
  background: #1c2a52;
  border-radius: 10px;
}

.phone-screen {
  background: linear-gradient(160deg, #16265b, #0a1730);
  border-radius: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--hisebi-navy-3), var(--hisebi-blue) 130%);
  border-radius: 24px;
  color: #fff;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -140px;
  right: -80px;
}

/* ---------- Footer ---------- */
.footer-hisebi {
  background: var(--hisebi-navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 2rem;
}

.footer-hisebi h6 {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-hisebi a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-hisebi a:hover {
  color: #fff;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.footer-social a:hover {
  background: var(--hisebi-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* ---------- Auth pages ---------- */
.container-tight {
  max-width: 25rem;
}

.auth-shell {
  min-height: 100vh;
  background: radial-gradient(circle at top right, var(--hisebi-navy-2), var(--hisebi-navy) 65%);
  display: flex;
  align-items: center;
}

.auth-card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
