/* ==========================================================
   TruFunding – Market Analytics (responsive)
   Breakpoint-i:
     mobile  : < 768px
     laptop  : 768px – 1439px
     desktop : ≥ 1440px
   ========================================================== */

/* ---------- DESIGN TOKENS ---------- */

:root {
  /* brand */
  --c-cyan: #38bdf8;
  --c-violet: #8b5cf6;
  --c-green: #12dda4;

  /* base */
  --c-black: #000;
  --c-text: #000;
  --c-text-muted: #5b5b5b;
  --c-text-gray: #96a0a2;
  --c-text-dark: #022d33;
  --c-bg-page: #f6f8fb;
  --c-white: #fff;
  --c-panel-blue: #e6f1ff;

  /* gradients */
  --grad-brand: linear-gradient(160deg, #38bdf8 30%, #8b5cf6 65%);
  --grad-brand-btn: linear-gradient(176deg, #38bdf8 32%, #8b5cf6 80%);
  --grad-cta-panel: linear-gradient(128deg, #38bdf8 32%, #8b5cf6 61%);
  --grad-feature-card: linear-gradient(140deg, #38bdf8 32%, #8b5cf6 61%);

  /* shadows */
  --shadow-card-soft: -5px -5px 15px rgba(138, 91, 245, 0.30),
                       5px 5px 15px rgba(56, 189, 248, 0.30);
  --shadow-card-white: 5px 5px 15px rgba(56, 189, 248, 0.30);
  --shadow-btn: 0 10px 10px rgba(0, 0, 0, 0.15);
  --shadow-cta-panel: -5px -5px 15px rgba(138, 91, 245, 0.30);

  /* fonts */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;

  /* layout */
  --container: 1440px;
  --gutter: 24px;
}

/* ---------- RESET ---------- */

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

html, body { margin: 0; padding: 0; }

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

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

/* ---------- LAYOUT PRIMITIVES ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 0;
}

/* ---------- UTILITY / TYPOGRAPHY ---------- */

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--c-text-dark);
  text-transform: uppercase;
  margin: 0;
}

.section-title--center { text-align: center; }

.pill-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 24px;
  border-radius: 70px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  height: 48px;
  padding: 0 32px;
  border-radius: 70px;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

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

.btn--gradient {
  color: #fff;
  background-image: var(--grad-brand-btn);
  box-shadow: var(--shadow-btn);
  min-width: 227px;
  text-transform: uppercase;
  margin-top: 48px;
}

.btn--portal {
  color: var(--c-black);
  border: 1px solid var(--c-cyan);
  background: transparent;
  gap: 10px;
  padding: 0 24px;
  min-width: 198px;
}

.btn--portal .btn__chevron { font-size: 20px; color: var(--c-cyan); line-height: 0; }

.btn--outline {
  color: var(--c-black);
  border: 1px solid var(--c-black);
  background: transparent;
  min-width: 191px;
  text-transform: uppercase;
}

.btn--outline-white {
  color: #fff;
  border: 1px solid #fff;
  background: transparent;
  height: 56px;
  width: 100%;
  font-size: 16px;
  text-transform: uppercase;
}

.btn--login {
  color: #fff;
  border: 1px solid var(--c-cyan);
  background: transparent;
  min-width: 165px;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: var(--c-bg-page);
  padding: 30px 0 20px;
  position: relative;
  z-index: 10;
}

.header-inner { display: flex; align-items: center; gap: 30px; }

.logo img { width: 244px; height: auto; }

.main-nav {
  flex: 1;
  background: rgba(75, 147, 179, 0.10);
  border-radius: 70px;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  margin-left: 20px;
}

.main-nav ul { display: flex; gap: 28px; width: 100%; justify-content: space-between; }

.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--c-black);
  opacity: .8;
  transition: opacity .15s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active { opacity: 1; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-black);
  border-radius: 2px;
}

/* ============================================
   HERO (Market Analytics – novi BEM: tf-ma-*)
   ============================================ */

.tf-ma-hero {
  width: 100%;
  background-color: #f6f8fb;
}

/* DESKTOP: original Figma layout (1441px+) */
.tf-ma-hero__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 0 0;
  display: grid;
  grid-template-columns: 686fr 854fr;
  align-items: center;
  column-gap: 0;
}

/* COPY */
.tf-ma-hero__copy {
  position: relative;
  z-index: 2;
  width: 686px;
  max-width: 100%;
}

.tf-ma-hero__pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 16px;
  border-radius: 70px;
  border: 1px solid #000000;
  background: #000000;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
}

.tf-ma-hero__kicker {
  margin: 38px 0 0;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: #000000;
  font-size: 36px;
  line-height: normal;
}

.tf-ma-hero__title {
  margin: 20px 0 0;
  background: linear-gradient(104deg, #38BDF8 0%, #8B5CF6 100%);
  -webkit-background-clip: text !important;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 61px;
  line-height: 65px;
  width: 646px;
  max-width: none;
}

.tf-ma-hero__lead {
  margin: 18px 0 0;
  max-width: 520px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 400;
  color: #000000;
  opacity: 0.8;
  font-size: 20px;
  line-height: normal;
}

/* CTA dugme */
.tf-ma-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  width: 227px;
  height: 48px;
  border-radius: 70px;
  background: linear-gradient(162deg, #38BDF8 0%, #8B5CF6 100%);
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.15);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.tf-ma-hero__btn:hover { opacity: 0.9; }

/* VISUAL DESNO – desktop */
.tf-ma-hero__visual {
  position: relative;
  width: 854px;
  max-width: 100%;
  margin-left: -52px;
  z-index: 1;
  aspect-ratio: 854 / 646;
}

/* Dve slike: desktop + mobile */
.tf-ma-hero__img-desktop {
  display: block;
  width: auto;
  height: 100%;
  object-fit: cover;
}

.tf-ma-hero__img-mobile {
  display: none;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* AI ikonica */
.tf-ma-hero__ai-icon {
  position: absolute;
  top: 19%;
  left: 10%;
  width: 112px;
  height: 112px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 5px 5px 15px rgba(56, 189, 248, 0.30),
              -5px -5px 15px rgba(138, 91, 245, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-ma-hero__ai-icon img { width: 66px; height: 66px; }

/* FLOATING CARDS – rate & price */
.tf-ma-float {
  position: absolute;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 5px 5px 15px rgba(56, 189, 248, 0.30),
              -5px -5px 15px rgba(138, 91, 245, 0.30);
}

/* Rate prediction card */
.tf-ma-float--rate {
  top: 8%;
  right: 0;
  width: 254px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tf-ma-float__label {
  margin: 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 700;
  color: #000000;
  font-size: 18px;
  opacity: 0.3;
  text-align: center;
}

.tf-ma-float__value {
  margin: 12px 0 0;
  text-align: center;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 400;
  font-size: 31px;
}

.tf-ma-float__value-main { font-weight: 700; color: #000000; }
.tf-ma-float__value-alt  { color: #b3b3b3; font-size: 27px; }

.tf-ma-float__trend-bg {
  width: 100%;
  height: 38px;
  border-radius: 50px;
  background-color: rgba(18, 221, 164, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.tf-ma-float__trend {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 700;
  color: #12dda4;
  font-size: 15px;
}

.tf-ma-float__trend-icon { display: flex; align-items: center; }

/* Price comparison card */
.tf-ma-float--prices {
    bottom: 19%;
    left: 0%;
    transform: translateX(-50%);
    width: 400px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 20px;
}
.tf-m

.tf-ma-price-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.tf-ma-price-col__label {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  color: #000000;
  font-size: 16px;
  opacity: 0.3;
}

.tf-ma-float--prices .tf-ma-price-col:last-child .tf-ma-price-col__label {
  opacity: 1;
  color: #000000;
}

.tf-ma-price-col__value {
  font-family: "Inter Tight", sans-serif;
  font-weight: 800;
  color: #000000;
  font-size: 20px;
}

.tf-ma-price-col__value--muted { color: #b3b3b3; }

.tf-ma-price-col__arrow { display: flex; align-items: center; }

/* =============== LAPTOP (1024–1440px): 50/50 GRID =============== */
@media (max-width: 1440px) and (min-width: 1024px) {
  .tf-ma-hero__inner {
    padding: 80px 48px 0;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
  .tf-ma-hero__copy,
  .tf-ma-hero__visual { width: 100%; max-width: none; }
  .tf-ma-hero__visual { margin-left: 0; aspect-ratio: 16 / 12; }
  .tf-ma-hero__img-desktop { width: auto; height: 100%; object-fit: cover; }
  .tf-ma-hero__title { width: 100%; font-size: clamp(40px, 4.5vw, 56px); line-height: 1.1; }
  .tf-ma-float--rate { right: 4%; width: clamp(190px, 38%, 240px); }
  .tf-ma-float--prices { width: 80%; max-width: 380px; }
}

/* =============== TABLET / SMALL LAPTOP (≤ 1023px) =============== */
@media (max-width: 1023px) {
  .tf-ma-hero__inner {
    padding: 80px 40px 32px;
    grid-template-columns: 1fr;
  }
  .tf-ma-hero__copy { width: 100%; }
  .tf-ma-hero__title { width: 100%; font-size: 48px; line-height: 54px; }
  .tf-ma-hero__visual {
    margin-left: 0;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    aspect-ratio: 854 / 646;
  }
  .tf-ma-hero__img-desktop { width: 100%; height: auto; }
  .tf-ma-float--rate { right: 0; width: 220px; }
  .tf-ma-float--prices { width: 90%; max-width: 380px; }
}

/* =============== MOBILE (≤ 767px) =============== */
@media (max-width: 767px) {
  .tf-ma-hero__inner {
    padding: 48px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .tf-ma-hero__kicker { margin-top: 32px; font-size: 36px; }
  .tf-ma-hero__title  { font-size: 40px; line-height: 46px; }
  .tf-ma-hero__lead   { font-size: 18px; max-width: 347px; }
  .tf-ma-hero__visual { width: 100%; max-width: 431px; margin-inline: auto; aspect-ratio: auto; min-height: auto; }
  .tf-ma-hero__img-desktop { display: none; }
  .tf-ma-hero__img-mobile  { display: block; border-radius: 12px; }
  .tf-ma-hero__ai-icon,
  .tf-ma-float--rate,
  .tf-ma-float--prices { display: none; }
}

/* ===== Animacije: fade-up + float ===== */

@keyframes tf-ma-fade-up {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tf-ma-float-soft {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -1.5px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.tf-ma-hero__ai-icon {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: tf-ma-fade-up 500ms ease-out 0.12s forwards;
}

.tf-ma-float--rate {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: tf-ma-fade-up 500ms ease-out 0.22s forwards;
}

.tf-ma-float--prices {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: tf-ma-fade-up 500ms ease-out 0.32s forwards;
}

@media (prefers-reduced-motion: no-preference) {
  .tf-ma-hero__ai-icon {
    animation: tf-ma-fade-up 500ms ease-out 0.12s forwards,
               tf-ma-float-soft 6s ease-in-out 0.9s infinite;
  }
  .tf-ma-float--rate {
    animation: tf-ma-fade-up 500ms ease-out 0.22s forwards;
  }
  .tf-ma-float--prices {
    animation: tf-ma-fade-up 500ms ease-out 0.32s forwards,
               tf-ma-float-soft 6s ease-in-out 1s infinite;
  }
}

/* ============================================
   DDE SECTION
   ============================================ */

.dde-section {
  width: 100%;
  padding: 0 24px 64px;
  display: flex;
  justify-content: center;
  background: transparent;
}

.dde-card {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 5px 5px 15px #38bdf84c;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.dde-header { max-width: 854px; text-align: center; }

.dde-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.25;
  color: #000000;
}

.dde-lead {
  margin: 12px auto 0;
  max-width: 740px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #5a5a5a;
}

.dde-features {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.dde-pill {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  gap: 14px;
  padding: 14px 32px;
  min-width: 280px;
  max-width: 340px;
  border-radius: 50px;
  background-color: #ffffff;
  box-shadow: 5px 5px 15px #38bdf84c, -5px -5px 15px #8a5bf54c;
}

.dde-pill__icon { width: 30px; height: 30px; flex-shrink: 0; display: block; }

.dde-pill__text {
  margin: 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #000000;
  white-space: nowrap;
}

@media (max-width: 1440px) {
  .dde-card { padding: 32px 40px 28px; }
}

@media (max-width: 1024px) {
  .dde-card { padding: 32px 24px 24px; }
  .dde-title { font-size: 30px; }
  .dde-pill { flex: 1 1 calc(50% - 20px); min-width: 260px; }
  .dde-pill__text { white-space: normal; }
}

@media (max-width: 767px) {
  .dde-section { padding: 0 16px }
  .dde-card { padding: 24px 16px 20px; border-radius: 20px; }
  .dde-title { font-size: 24px; line-height: 1.3; }
  .dde-lead { font-size: 14px; }
  .dde-features { flex-direction: row; gap: 12px; }
  .dde-pill { width: 100%; max-width: none; justify-content: center; padding-inline: 20px; }
  .dde-pill__text { font-size: 16px; text-align: center; }
}

/* ============================================
   FEATURES WRAP (big white card)
   ============================================ */

.features-wrap {
  background: var(--c-bg-page);
  padding: 0 0 80px;
}

.features-card {
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow-card-white);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- shared feature layout ---- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
  padding-inline: 56px;
  padding-block: 80px;
}

.feature--reverse {
  grid-template-columns: 1.15fr 1fr;
  background: #F6F8FB;
  padding-block: 80px;
}

.feature--reverse .feature-copy { order: 2; }
.feature--reverse .feature-visual { order: 1; }

.feature-copy { max-width: 530px; }

.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 50px;
  box-shadow: var(--shadow-card-soft);
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-black);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.tab-pill img { width: 22px; height: 22px; object-fit: contain; }

.feature-title { margin: 0 0 24px; font-family: var(--font-display); }

.feature-title__main {
  display: block;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.17;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.feature-title__sub {
  display: block;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.17;
  color: var(--c-black);
  text-transform: uppercase;
}

.feature-list {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  color: var(--c-text-muted);
}

.feature-list li {
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 9px;
  transform: translateY(-50%);
  background-image: url("../img/bullet-arrow.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* ---- feature visual (UI mockups) ---- */
.feature-visual {
  position: relative;
  background: var(--grad-feature-card);
  border-radius: 20px;
  padding: 40px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual > img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FEATURE VISUAL – ANIMA STACK (market map)
   ============================================ */

.feature-visual--stack {
  padding: 0;
  background: transparent;
  display: block;
  min-height: 0;
  position: relative;
  aspect-ratio: 741 / 405;
}

.feature-visual--stack .stack--bg {
  position: absolute;
  top: 35.06%;
  left: 5.80%;
  width: 87.72%;
  height: 57.78%;
  background-image: url('../img/reactangle-33.svg');
  background-size: 100% 100%;
  border-radius: 12px;
}

.feature-visual--stack .stack--1 {
  position: absolute;
  top: -4.94%;
  left: 11.20%;
  width: 78.14%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card-soft);
  z-index: 2;
}

.feature-visual--stack .stack--overlay-l {
  position: absolute;
  top: 36.54%;
  left: -2.70%;
  width: 42.65%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card-soft);
  z-index: 3;
}

.feature-visual--stack .stack--2 {
  position: absolute;
  top: 2.22%;
  left: 52.63%;
  width: 50.07%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card-soft);
  z-index: 3;
}

/* Mobile (< 768px) – Anima proporcije 340×181 */
@media (max-width: 767px) {
  .feature-visual--stack { aspect-ratio: 340 / 181; }
  .feature-visual--stack .stack--bg     { top: 35.36%; left: 5.88%; width: 87.65%; height: 57.99%; }
  .feature-visual--stack .stack--1      { top: -11.05%; left: 7.94%; width: 84.41%; }
  .feature-visual--stack .stack--overlay-l { top: 30.39%; left: -5.88%; width: 48.82%; }
  .feature-visual--stack .stack--2      { top: -3.87%; left: 49.41%; width: 56.47%; }
}

/* mobile-only slika */
.feature-visual--stack .stack--mobile { display: none; }

@media (max-width: 767px) {
  .feature-visual--stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .feature-visual--stack .stack--bg,
  .feature-visual--stack .stack--1,
  .feature-visual--stack .stack--overlay-l,
  .feature-visual--stack .stack--2 { display: none; }
  .feature-visual--stack .stack--mobile {
    display: block;
    width: 100%;
    height: auto;
    max-width: 480px;
  }
  .feature-visual { padding: 0; }
  .feature-visual > img { width: 100%; height: auto; border-radius: 12px; box-shadow: none; }
}

/* ---- loadboard ---- */
.feature-visual--loadboard {
  padding: 0;
  background: transparent;
  display: block;
  min-height: 0;
}

.feature-visual--loadboard .stack--board {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-card-soft);
  background: var(--grad-feature-card);
  padding: 20px;
}

.feature-visual--loadboard .stack--actions {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  border-top-left-radius: 12px;
  box-shadow: var(--shadow-card-soft);
  background: #fff;
}

.feature-visual--loadboard .stack--route {
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 52%;
  border-top-left-radius: 12px;
  box-shadow: var(--shadow-card-soft);
  background: #fff;
}

/* ============================================
   FEATURE VISUAL – RATES
   Wrapper: 571 x 401
   ============================================ */

.feature-visual--rates {
  padding: 0;
  background: transparent;
  position: relative;
  display: block;
  aspect-ratio: 571 / 401;
  overflow: visible;
}

.rates-card { position: absolute; width: 51.66%; height: auto; }

.rates-card--top {
  left: 8.23%;
  top: 0;
  filter: drop-shadow(5px 5px 15px rgba(56, 189, 248, 0.30))
          drop-shadow(-5px -5px 15px rgba(138, 91, 245, 0.30));
}

.rates-card--bottom {
  width: 66.19%;
  left: 22.41%;
  top: 49.13%;
  filter: drop-shadow(-5px -5px 15px rgba(138, 91, 245, 0.30))
          drop-shadow(5px 5px 15px rgba(56, 189, 248, 0.30));
}

.rates-card__bg {
  width: 100%;
  padding-bottom: 56.27%;
  border-radius: 20px;
  background: #fff;
}

.rates-card__img {
  position: absolute;
  left: 7.12%;
  top: 10.24%;
  width: 85.76%;
  height: auto;
}

.rates-strip { position: absolute; left: 0; top: 24.2%; width: 100%; height: auto; }

.rates-strip__bg {
  position: absolute;
  left: 6.13%;
  top: 9.87%;
  width: 93.87%;
  height: auto;
}

.rates-strip__main {
  position: absolute;
  left: 0;
  top: 0;
  width: 96.15%;
  height: auto;
  border-radius: 10px;
  box-shadow: -5px -5px 15px rgba(138, 91, 245, 0.30),
               5px 5px 15px rgba(56, 189, 248, 0.30);
}

@media (max-width: 767px) {
  .feature-visual--rates { aspect-ratio: 340 / 240; }
  .rates-card__bg { padding-bottom: 60%; }
}

/* ============================================
   WHY CARRIERS CHOOSE
   ============================================ */

.why-carriers {
  background: #fff;
  padding: 40px 0 100px;
  text-align: center;
}

.why-carriers__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--c-black);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.why-carriers__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 61px;
  margin: 0 0 60px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  text-align: left;
  max-width: 1200px;
  margin-inline: auto;
}

.why-visual { border-radius: 20px; overflow: hidden; }
.why-visual img { width: 100%; height: 100%; object-fit: cover; }

.why-copy__lead {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: var(--c-text-muted);
  margin: 0 0 28px;
}

.why-copy__strong {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  line-height: 24px;
  color: var(--c-text-muted);
  margin: 0 0 32px;
}

/* ============================================
   TESTIMONIAL (dark)
   ============================================ */

.testimonial {
  background:
    radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.35), transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(139, 92, 246, 0.40), transparent 40%),
    #0a1729;
  padding: 100px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.testimonial__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  margin: 0 0 20px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.testimonial__stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 40px; font-size: 20px; }
.testimonial__stars span { color: var(--c-cyan); }

.testimonial__carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0 auto 32px;
  max-width: 900px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: none;
  transition: background .15s;
}

.carousel-arrow:hover { background: rgba(255, 255, 255, 0.20); }

.testimonial__quote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  max-width: 600px;
  margin: 0;
  color: #fff;
}

.testimonial__author {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.50);
  margin: 0;
}

.testimonial__author strong { font-weight: 800; color: rgba(255, 255, 255, 0.70); }

/* ============================================
   BLOG
   ============================================ */

.blog { background: var(--c-bg-page); padding: 100px 0; }
.blog .section-title { margin-bottom: 60px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin-inline: auto;
}

.blog-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card__media { height: 206px; overflow: hidden; padding: 20px 20px 0; }
.blog-card__media img { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; filter: grayscale(0.3); }

.blog-card__body { padding: 20px 20px 30px; flex: 1; display: flex; flex-direction: column; }

.blog-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.27;
  color: var(--c-black);
  margin: 0 0 16px;
}

.blog-card__excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 22px;
  color: var(--c-black);
  margin: 0 0 24px;
  flex: 1;
}

.blog-card__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.blog-card__date { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--c-text-gray); }

.tag { font-family: var(--font-display); font-weight: 600; font-size: 12px; padding: 5px 14px; border-radius: 70px; color: #fff; }
.tag--new { background: var(--c-black); }

.read-more {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-violet);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s;
}

.read-more:hover { gap: 10px; }
.read-more__arrow { font-size: 18px; line-height: 0; }

/* ============================================
   CTA (gradient panel + form)
   ============================================ */

.cta { background: var(--c-bg-page); padding: 60px 0 100px; }

.cta-grid {
  background: var(--grad-cta-panel);
  border-radius: 20px;
  box-shadow: var(--shadow-cta-panel);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  color: #fff;
  max-width: 1100px;
  margin-inline: auto;
}

.cta-title { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.1; text-transform: uppercase; color: #fff; margin: 0 0 24px; max-width: 380px; }
.cta-lead  { font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 26px; color: #fff; margin: 0 0 48px; max-width: 340px; }

.cta-contact { display: flex; flex-direction: column; gap: 28px; font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 26px; color: #fff; }
.cta-contact li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; }
.cta-contact img { width: 20px; margin-top: 4px; }

.cta-form { display: flex; flex-direction: column; gap: 16px; }

.cta-form input,
.cta-form textarea {
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c-text-dark);
  height: 48px;
  width: 100%;
  outline: none;
  transition: box-shadow .15s ease;
}

.cta-form textarea { height: 96px; resize: none; padding-top: 14px; }
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: var(--c-text-dark); opacity: .4; }
.cta-form input:focus,
.cta-form textarea:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.40); }
.cta-form .btn--outline-white { margin-top: 8px; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer { background: var(--c-black); color: #fff; padding: 80px 0 60px; position: relative; }

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent 40%, rgba(139, 92, 246, 0.08));
  pointer-events: none;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; align-items: start; position: relative; }
.footer-brand img { width: 340px; margin-bottom: 24px; }

.footer-social { display: flex; gap: 12px; margin-bottom: 20px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.10); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 12px; transition: background .15s; }
.footer-social a:hover { background: rgba(255,255,255,0.20); }
.footer-social .s-icon { line-height: 1; }

.footer-nav,
.footer-legal { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a   { font-family: var(--font-body); font-weight: 500; font-size: 18px; color: #fff; opacity: .8; }
.footer-legal a { font-family: var(--font-body); font-weight: 500; font-size: 18px; color: #fff; opacity: .4; }
.footer-nav a:hover { opacity: 1; }
.footer-member p   { font-family: var(--font-body); font-weight: 700; font-size: 18px; color: #fff; opacity: .8; margin: 0 0 12px; }
.footer-member img { width: 130px; }

/* grid children utility */
.cta-copy,
.feature-copy { min-width: 0; }

/* ============================================
   FEATURE (inline padding override za MA)
   ============================================ */

.feature { padding-inline: 0 !important; padding-block: 48px; }

@media screen and (max-width: 768px) {
  .feature { padding-inline: 24px !important; }
}

/* ============================================
   BREAKPOINT: LAPTOP (768px – 1439px)
   ============================================ */

@media (max-width: 1439px) {
  :root { --gutter: 40px; }

  .hero { padding: 40px 0 60px; }
  .hero-inner { gap: 40px; }
  .hero-kicker { font-size: 28px; }
  .hero-title  { font-size: 48px; line-height: 54px; }
  .hero-lead   { font-size: 18px; }

  .float-card--rate  { width: 220px; top: 8%; right: -6%; }
  .float-card__value { font-size: 26px; }
  .float-card__value--alt { font-size: 22px; }
  .float-card--prices { width: 360px; bottom: 4%; left: 2%; }

  .features-card { padding: 80px 60px; gap: 100px; }
  .feature, .feature--reverse { grid-template-columns: 1fr 1fr; gap: 60px; }
  .feature-title__main { font-size: 30px; }
  .feature-title__sub  { font-size: 22px; }

  .why-carriers__title { font-size: 48px; }
  .why-grid { gap: 60px; }

  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .blog-card__title { font-size: 20px; }

  .cta-grid  { padding: 60px; gap: 60px; }
  .cta-title { font-size: 32px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .footer-brand img { width: 280px; }
}

/* ============================================
   BREAKPOINT: MOBILE (< 768px)
   ============================================ */

@media (max-width: 767px) {
  :root { --gutter: 24px; }

  /* header */
  .site-header { padding: 20px 0; }
  .logo img { width: 200px; }
  .main-nav, .btn--portal { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }

  /* hero */
  .hero { padding: 30px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy  { max-width: 100%; text-align: left; }
  .hero-kicker { font-size: 24px; margin-top: 20px; }
  .hero-title  { font-size: 38px; line-height: 42px; }
  .hero-lead   { font-size: 16px; }
  .hero-visual { min-height: 380px; }
  .hero-ai-icon { width: 66px; height: 66px; top: 18%; left: 14%; }

  .float-card--rate { top: 20%; right: 0; width: 190px; padding: 14px 18px; }
  .float-card__label     { font-size: 16px; }
  .float-card__value     { font-size: 24px; }
  .float-card__value--alt { font-size: 20px; }
  .float-card__trend     { font-size: 13px; padding: 6px 12px; }
  .float-card--prices    { bottom: 0; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 320px; padding: 12px 18px; }
  .price-col__label { font-size: 14px; }
  .price-col__value { font-size: 18px; }

  /* features */
  .features-wrap { padding-bottom: 0; }
  .features-card { padding: 50px 24px; gap: 80px; border-radius: 20px; }
  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature--reverse .feature-copy  { order: 2; }
  .feature--reverse .feature-visual { order: 1; }
  .feature .feature-copy  { order: 2; }
  .feature .feature-visual { order: 1; }
  .tab-pill { font-size: 14px; padding: 8px 18px; }
  .feature-title__main { font-size: 26px; }
  .feature-title__sub  { font-size: 20px; }
  .feature-list { font-size: 15px; line-height: 25px; }
  .feature-visual { padding: 24px; min-height: 0; }
  .feature-visual--stack .stack--1   { margin-bottom: -20px; }
  .feature-visual--stack .stack--2   { width: 84%; }
  .feature-visual--loadboard .stack--actions { width: 55%; }
  .feature-visual--loadboard .stack--route   { bottom: -20px; width: 65%; }
  .why-carriers { padding: 40px 24px 60px !important; }
  .feature { padding-bottom: 0; }

  /* why carriers */
  .why-carriers__kicker { font-size: 18px; }
  .why-carriers__title  { font-size: 34px; margin-bottom: 40px; }
  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .why-visual { order: 1; }
  .why-copy   { order: 2; }

  /* testimonial */
  .testimonial { padding: 60px 0; }
  .testimonial__title { font-size: 32px; }
  .testimonial__quote { font-size: 18px; line-height: 26px; }
  .testimonial__carousel { gap: 16px; }
  .carousel-arrow { width: 32px; height: 32px; font-size: 20px; }

  /* blog */
  .blog { padding: 60px 0; }
  .blog .section-title { font-size: 26px; margin-bottom: 32px; }
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }

  /* cta */
  .cta { padding: 40px 0 60px; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }
  .cta-title { font-size: 28px; }
  .cta-lead  { font-size: 16px; margin-bottom: 28px; }
  .cta-contact { font-size: 16px; line-height: 22px; gap: 20px; }

  /* footer */
  .site-footer { padding: 60px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .footer-brand { grid-column: 1 / -1; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .footer-brand img { width: 240px; }
  .footer-member { grid-column: 1 / -1; text-align: center; display: flex; flex-direction: column; align-items: center; }
}

/* ============================================
   DESKTOP (≥ 1440px): hero lead override
   ============================================ */

@media (min-width: 1440px) {
  .hero-inner  { position: relative; }
  .hero-copy   { position: relative; z-index: 2; }
  .hero-visual { position: relative; z-index: 1; width: 860px; }
  .hero-lead   { margin: 0; }
  .hero-lead__line { display: inline-block; white-space: nowrap; position: relative; left: 0; max-width: none; }
}