/* ==========================================================
   Federal Bank — Hero
   ========================================================== */
:root {
  --bg: #020b1f;
  --bg-2: #061633;
  /* Federal Bank palette (official press kit) */
  --fb-blue: #004CBE;
  --fb-navy: #00265F;
  --fb-yellow: #FF9C00;
  --text: #f4f4f4;
  --muted: #9fb0cf;
  --muted-2: #6f6f6f;
  --accent: var(--fb-yellow);
  --accent-2: #ffb733;
  --accent-3: var(--fb-yellow);
  --radius-card: 1.4em;
  --container: 1160px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hide until GSAP takes over (avoids flash of unanimated content) */
.js .hero { visibility: hidden; }

/* ---------------- Hero shell ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 50% 0%, #0a2150 0%, var(--bg) 62%);
  padding-bottom: clamp(120px, 14vw, 200px);
}

/* Faint vertical bands */
.bg-stripes {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.018) 0 64px,
    rgba(0, 0, 0, 0.0) 64px 128px
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}

/* Orange glow behind headline */
.glow {
  position: absolute;
  z-index: -1;
  top: -6%;
  left: -12%;
  width: min(900px, 80vw);
  aspect-ratio: 1;
  pointer-events: none;
}
.glow-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(0, 92, 230, 0.62) 0%,
    rgba(0, 76, 190, 0.36) 22%,
    rgba(0, 38, 95, 0.18) 42%,
    rgba(0, 0, 0, 0) 66%);
  filter: blur(30px);
}

/* Soft light behind cards */
.glow-right {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: 2%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 156, 0, 0.07), transparent 65%);
  pointer-events: none;
}

/* ---------------- Nav ---------------- */
.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 46px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand-word {
  position: relative;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand-word b { font-weight: 700; color: #fff; }
.brand-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  border-radius: 2px;
  background: var(--fb-yellow);
}

.nav-links ul {
  display: flex;
  gap: 44px;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #e9e9e9;
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s cubic-bezier(.7, 0, .2, 1);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: #fff;
  transition: transform .35s, top .35s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-open .menu-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s, border-color .35s, box-shadow .35s;
  will-change: transform;
}
.btn--sm { height: 40px; padding: 0 22px; font-size: 14px; }

.btn--light { background: #fff; color: var(--fb-navy); }
.btn--light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.7, 0, .2, 1);
}
.btn--light:hover { color: var(--fb-navy); box-shadow: 0 10px 30px -8px rgba(255, 156, 0, .6); }
.btn--light:hover::before { transform: translateY(0); }

.btn--ghost {
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .02);
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.7, 0, .2, 1);
}
.btn--ghost:hover { color: var(--fb-navy); border-color: #fff; }
.btn--ghost:hover::before { transform: translateY(0); }

/* ---------------- Hero content ---------------- */
.hero-main {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 84px);
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.3vw, 3.95rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line-inner { display: inline-block; color: #f5f5f5; }
.line-inner--fade {
  background: linear-gradient(90deg, #f2f6ff 0%, #d3defa 38%, #8ea6d6 72%, #5d76a8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 30px;
  max-width: 590px;
  font-size: clamp(15px, 1.25vw, 17.5px);
  font-weight: 300;
  line-height: 1.6;
  color: #c9d4ea;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 46px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  margin-top: 42px;
}
.stat { display: flex; align-items: center; gap: 22px; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.1vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------------- Card visual ---------------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

/* Everything inside is sized in em so the whole scene scales from one font-size */
.visual {
  position: relative;
  font-size: 10.5px;
  width: 49em;
  height: 42em;
  margin-right: -3.5em;
}

/* ---------- 3-card spin carousel ---------- */
.visual {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.visual.is-dragging { cursor: grabbing; }

.carousel-float,
.carousel { position: absolute; inset: 0; }
.carousel { perspective: 1600px; perspective-origin: 50% 40%; }

.cstack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 35em;
  height: 22.1em;
  margin: -13.5em 0 0 -17.5em;
  will-change: transform, filter;
  transform-origin: 50% 50%;
}
.cs-front {
  position: absolute;
  inset: 0;
  will-change: transform;
}


.card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  transform: skewY(-5deg);
  overflow: hidden;
}

/* Real Federal Bank card artwork */
.card--img {
  border-radius: 1.3em;
  background: #050505;
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .08);
}
.card--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Shine that follows the pointer */
.card--img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(20em circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, .22), transparent 60%);
  opacity: var(--shine, 0);
  transition: opacity .4s;
  mix-blend-mode: screen;
}

/* Active card name */
.card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  text-align: center;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted);
}
.card-caption span {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
}

/* Light streak under the front card */
.light-streak {
  position: absolute;
  left: 14em;
  top: 31em;
  width: 22em;
  height: 6em;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent);
  transform: rotate(-24deg);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

/* ---------------- Trusted ---------------- */
.trusted {
  position: relative;
  z-index: 5;
  margin-top: clamp(40px, 6vw, 90px);
  text-align: center;
}
.trusted-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(18px, 1.75vw, 25px);
  color: #8597b8;
  letter-spacing: -0.01em;
}
.logos {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f7090;
  transition: color .35s;
  cursor: default;
  user-select: none;
}
.logo-item:hover { color: #d9d9d9; }

.logo-adobe svg { width: 26px; height: 22px; }
.logo-adobe span { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }

.logo-tesla span {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: .5em;
  transform: scaleX(1.25);
  display: inline-block;
}

.logo-afterpay span { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.logo-afterpay svg { width: 22px; height: 22px; margin-left: -2px; }

.logo-gumroad span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
  -webkit-text-stroke: .4px currentColor;
}

.logo-spacex span {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .32em;
  font-style: italic;
}

.logo-pipedrive b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: currentColor;
  font-size: 16px;
  line-height: 1;
}
.logo-pipedrive b i { color: var(--bg); font-style: normal; margin-top: -3px; }
.logo-pipedrive span { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-left: -2px; }

/* ---------------- Bottom curve ---------------- */
.bottom-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(70px, 9vw, 130px);
  z-index: 4;
  filter: drop-shadow(0 -18px 40px rgba(0, 92, 230, .45));
}
.bottom-curve svg { width: 100%; height: 100%; display: block; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .visual { font-size: 9.2px; }
  .hero-stats { gap: 44px; }
}

@media (max-width: 980px) {
  .nav-links ul { gap: 28px; }
  .hero-main { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: center; }
  .visual { font-size: 10px; margin: 0 auto; }
  .logos { flex-wrap: wrap; justify-content: center; gap: 28px 44px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav { padding-top: 24px; }
  .menu-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(20, 20, 20, .92);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links ul { flex-direction: column; gap: 18px; }
  .nav-links a { font-size: 16px; }

  .br-desk { display: none; }
  .line { white-space: normal; }
  .hero-actions { gap: 14px; margin-top: 34px; }
  .hero-stats { gap: 28px 40px; margin-top: 34px; }
  .visual { font-size: clamp(6px, 1.85vw, 10px); }
  .logos { gap: 22px 32px; }
}

@media (max-width: 420px) {
  .btn { padding: 0 20px; height: 46px; font-size: 14px; }
  .nav .btn--sm { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
