:root {
  --blue: #0066ff;
  --blue-dark: #0052cc;
  --blue-soft: #e8f1ff;
  --green: #2f9e5b;
  --green-dark: #26804a;
  --green-soft: #e8f8ef;
  --navy: #0b1c33;
  --ink: #1a2332;
  --muted: #5c6b7a;
  --border: #dce3eb;
  --bg: #f4f7fb;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 8px 30px rgba(11, 28, 51, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 28, 51, 0.12);
  --font: "Plus Jakarta Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
select,
input {
  font-family: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* —— Top bar —— */
.topbar {
  background: var(--navy);
  color: #c9d4e3;
  font-size: 12.5px;
  font-weight: 500;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 8px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

.topbar-right a:hover {
  color: var(--white);
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

.topbar-phone {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.socials {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.socials a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.socials svg {
  width: 11px;
  height: 11px;
  fill: #c9d4e3;
}

/* —— Main nav —— */
.navbar {
  background: var(--white);
  border-bottom: 1px solid #e8eef5;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  transition: min-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 115px;
  display: block;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height;
  position: absolute;
  top: 8px;

}

/* Compact state once the page is scrolled — logo shrinks to fit neatly inside the bar */
.navbar.is-scrolled {
  box-shadow: 0 4px 18px rgba(11, 28, 51, 0.08);
}

.navbar.is-scrolled .navbar-inner {
  min-height: 60px;
}

.navbar.is-scrolled .logo-img {
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-links .chevron {
  width: 10px;
  height: 10px;
  opacity: 0.55;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 10px 18px;
}

.btn-outline:hover {
  background: var(--blue-soft);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  padding: 11px 18px;
  box-shadow: 0 4px 14px rgba(47, 158, 91, 0.28);
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  padding: 11px 22px;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.28);
}

.btn-blue:hover {
  background: var(--blue-dark);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15.5px;
  border-radius: 9px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* —— Hero —— */
.hero {
  --hero-navy: #0a2540;
  --hero-green: #2f9e4f;
  --hero-blue: #0d47a1;
  --hero-muted: #3d4f63;
  position: relative;
  background: #f3f5f7;
  overflow: hidden;
  min-height: clamp(520px, 72vh, 680px);
}

.hero-inner {
  position: relative;
  min-height: inherit;
  display: flex;
  align-items: stretch;
}

.hero-inner > .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 64px) 0;
  max-width: 520px;
  width: 100%;
  background: transparent;
  pointer-events: auto;
}

.hero-copy::after {
  display: none;
}

.hero-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.hero-logo {
  width: min(100%, 300px);
  height: auto;
  display: block;
}

.hero-headline {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--hero-navy);
  margin-bottom: 16px;
}

.hero-headline .accent {
  color: var(--hero-green);
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 500;
  color: var(--hero-muted);
  max-width: 420px;
  margin-bottom: 28px;
  line-height: 1.55;
}

.hero-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 32px;
  max-width: 520px;
  width: 100%;
  list-style: none;
  padding: 8px 0;
}

.hero-features li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 10px;
  padding: 4px 10px;
}

.hero-features li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 0;
  bottom: 8%;
  width: 1px;
  background: #cfd6de;
}

.hero-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.hero-feature-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.hero-features span {
  font-size: 15px;
  font-weight: 800;
  color: #0a2540;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-cta-group {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta-group .btn {
  position: relative;
  z-index: 1;
}

.hero-cta {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hero-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hero-cta:hover {
  background: #0a3a85;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(13, 71, 161, 0.4);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  position: absolute;
  inset: 0;
}

.hero-media::before {
  display: none;
}

/* —— Search panel —— */
.search-wrap {
  position: relative;
  z-index: 10;
  margin-top: -56px;
  padding-bottom: 28px;
}

.search-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  overflow-x: auto;
}

.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, background 0.15s;
}

.search-tab svg {
  width: 16px;
  height: 16px;
}

.search-tab:hover {
  color: var(--ink);
  background: #eef3f9;
}

.search-tab.active {
  color: var(--white);
  background: var(--blue);
  border-bottom-color: var(--blue);
}

.search-body {
  padding: 22px 24px 24px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.search-grid-row2 {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.field select,
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  appearance: none;
  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 fill='%235c6b7a' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input {
  background-image: none;
}

.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.field select:invalid,
.field select option[value=""] {
  color: #8a97a6;
}

.search-submit {
  height: 46px;
  padding-inline: 32px;
  min-width: 140px;
}

.search-submit svg {
  width: 16px;
  height: 16px;
}

/* —— Path cards —— */
.paths {
  padding: 60px 0 72px;
  background-color: #0d47a1;
}

.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.path-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  padding: 36px 36px 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.path-card.buy {
  background:
    radial-gradient(ellipse 80% 70% at 90% 100%, rgba(0, 102, 255, 0.08), transparent 55%),
    linear-gradient(145deg, #eef5ff 0%, #f7faff 55%, #e8f1ff 100%);
}

.path-card.sell {
  background:
    radial-gradient(ellipse 80% 70% at 90% 100%, rgba(47, 158, 91, 0.1), transparent 55%),
    linear-gradient(145deg, #eaf8f0 0%, #f6fcf8 55%, #e4f5eb 100%);
}

.path-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.path-card.buy .path-icon {
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.path-card.sell .path-icon {
  background: var(--green);
  box-shadow: 0 8px 20px rgba(47, 158, 91, 0.3);
}

.path-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.path-card h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.path-card.buy h2 { color: var(--blue); }
.path-card.sell h2 { color: var(--green); }

.path-card h2 span {
  font-weight: 800;
}

.path-card > p {
  color: var(--muted);
  font-size: 15px;
  max-width: 300px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  max-width: 280px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.path-card.buy .check { background: rgba(0, 102, 255, 0.12); color: var(--blue); }
.path-card.sell .check { background: rgba(47, 158, 91, 0.14); color: var(--green); }

.check svg {
  width: 12px;
  height: 12px;
}

.path-card .btn {
  align-self: flex-start;
  position: relative;
  z-index: 2;
}

.path-car {
  position: absolute;
  right: -40px;
  bottom: -12px;
  width: min(62%, 340px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 28px rgba(11, 28, 51, 0.22));
  z-index: 1;
  object-fit: contain;
  object-position: right bottom;
}

/* —— Footer top (notices, app badges, social) —— */
.footer-top {
  background: #e9ecf3;
  padding: 56px 0 40px;
}

.footer-notes {
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.footer-notes li {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
}

.footer-notes li a {
  color: var(--blue);
  font-weight: 700;
}

.footer-notes li a:hover {
  text-decoration: underline;
}

.footer-app-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-app-icons a {
  display: inline-flex;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.2s;
}

.footer-app-icons a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.footer-app-icons img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  display: block;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.footer-social-icons a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.footer-social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-social-icons a.icon-x {
  background: #0a2540;
  color: #fff;
}

.footer-social-icons a.icon-x:hover {
  background: #000;
  color: #fff;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: #9aabbe;
  padding: 28px 0;
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--white);
  font-weight: 700;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 0;
  }

  .hero-headline {
    font-size: clamp(40px, 4vw, 40px);
    text-align: center;
  }

  .search-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-grid-row2 {
    grid-template-columns: 1fr 1fr;
  }

  .search-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .paths-grid {
    grid-template-columns: 1fr;
  }

  .path-car {
    width: min(55%, 300px);
    right: -28px;
    bottom: -8px;
  }
}

@media (max-width: 720px) {
  .footer-top {
    padding: 40px 0 32px;
  }

  .footer-app-icons img {
    height: 38px;
  }

  .topbar-left {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .navbar-inner {
    min-height: 68px;
  }

  .logo-img {
    height: 70px;
  }

  .navbar.is-scrolled .navbar-inner {
    min-height: 52px;
  }

  .navbar.is-scrolled .logo-img {
    height: 34px;
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-inner > .container {
    order: 1;
    pointer-events: auto;
  }

  .hero-copy {
    padding: 0px 0 28px;
    max-width: none;
    background: #f3f5f7;
  }

  .hero-logo {
    width: min(100%, 240px);
  }

  .hero-features {
    max-width: none;
  }

  .hero-features span {
    font-size: 11px;
  }

  .hero-features li {
    padding: 4px 6px;
    gap: 8px;
  }

  .hero-feature-icon svg {
    width: 30px;
    height: 30px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 15px 20px;
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 0;
    min-height: 260px;
    aspect-ratio: 16 / 10;
    pointer-events: auto;
  }

  .hero-media img {
    object-position: 100% center;
    height: 85%;
  }

  .search-wrap {
    margin-top: -32px;
  }

  .search-grid,
  .search-grid-row2 {
    grid-template-columns: 1fr;
  }

  .search-body {
    padding: 18px;
  }

  .path-card {
    padding: 28px 24px 180px;
    min-height: auto;
  }

  .path-car {
    width: min(78%, 300px);
    right: -20px;
    bottom: -6px;
  }

  .path-card h2 {
    font-size: 22px;
  }
}
