:root {
  --green: #1db954;
  --green-dark: #17a348;
  --green-light: #e8f8ee;
  --navy: #0f1b2d;
  --navy-mid: #1a2e42;
  --white: #ffffff;
  --bg: #f4f6fa;
  --text-muted: #6b7a8f;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, .12);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --font: 'DM Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

.hero__content {
  padding: 80px 60px 80px 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  width: fit-content;
  animation: fadeDown .6s ease both;
}

.hero__title {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: -1px;
  animation: fadeDown .7s .1s ease both;
}

.hero__title--accent {
  color: var(--green);
  display: block;
}

.hero__subtitle {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 460px;
  animation: fadeDown .7s .2s ease both;
}

/* ── CTA Buttons ── */
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeDown .7s .3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s, box-shadow .3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(29, 185, 84, .3);
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: skewX(-20deg);
  transition: left .6s cubic-bezier(.22, 1, .36, 1);
}

.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29, 185, 84, .45);
}

.btn--primary:hover::after {
  left: 125%;
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(29, 185, 84, .3);
}

.btn--outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background .25s, color .25s, transform .25s, border-color .25s, box-shadow .25s;
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 27, 45, .15);
}

.btn--outline:active {
  transform: translateY(0);
}

/* ── Right: Image Panel ── */
.hero__image-wrap {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(29, 185, 84, .15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(29, 185, 84, .08) 0%, transparent 50%);
}

/* ── Dashboard mockup ── */
.mockup {
  position: relative;
  width: 380px;
  height: 520px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  animation: fadeIn .9s .1s ease both;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
}

.mockup__line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .08);
}

.mockup__line--l {
  width: 60%;
}

.mockup__line--m {
  width: 40%;
}

.mockup__card {
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup__card-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
}

.mockup__card-line--g {
  background: rgba(29, 185, 84, .25);
  width: 70%;
}

.mockup__card-line--w {
  width: 50%;
}

.mockup__balance {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  letter-spacing: -1px;
}

.mockup__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup__label {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mockup__value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
}

.mockup__value--g {
  color: var(--green);
}

/* ── Features Strip ── */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--navy);
  padding: 24px 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 28px;
  position: relative;
}

.feature:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, .12);
}

.feature__icon {
  font-size: 18px;
}

/* ── Dark Mode Overrides ── */
.dark body {
  background: #0a0e1a;
}

.dark .hero {
  background: #0a0e1a;
}

.dark .hero__title {
  color: #e8edf4;
}

.dark .hero__subtitle {
  color: #94a3b8;
}

.dark .btn--outline {
  border-color: #e8edf4;
  color: #e8edf4;
}

.dark .btn--outline:hover {
  background: #e8edf4;
  color: #0a0e1a;
}

/* ── Animations ── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__content {
    padding: 60px 32px 40px;
    order: 1;
  }

  .hero__image-wrap {
    height: 60vw;
    min-height: 320px;
    order: 2;
  }

  .mockup {
    width: 280px;
    height: 380px;
    padding: 20px;
  }

  .mockup__balance {
    font-size: 22px;
  }

  .features {
    padding: 20px 16px;
  }

  .feature {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .hero__content {
    padding: 48px 24px 32px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}
