/* =============================================================
   JoyAgency — Main Stylesheet
   Font: Be Vietnam Pro (Google Fonts)
   ============================================================= */

/* ---- CSS Variables ---- */
:root {
  --navy:         #0B1D4F;
  --navy-deep:    #06112E;
  --navy-mid:     #0F2566;
  --blue:         #1558D6;
  --blue-light:   #3B82F6;
  --orange:       #F97316;
  --orange-dark:  #EA6C0A;
  --moxom:        #FF6B2C;
  --mlay:         #E91E8C;
  --joyx:         #1558D6;
  --bg-light:     #F8FAFC;
  --bg-blue:      #EFF6FF;
  --white:        #FFFFFF;
  --text:         #1E293B;
  --text-mid:     #475569;
  --text-light:   #94A3B8;
  --border:       #E2E8F0;
  --success:      #22C55E;
  --danger:       #EF4444;
  --font:         'Be Vietnam Pro', sans-serif;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --radius-full:  9999px;
  --shadow-sm:    0 1px 4px rgba(11,29,79,0.08);
  --shadow-md:    0 4px 20px rgba(11,29,79,0.10);
  --shadow-lg:    0 8px 40px rgba(11,29,79,0.14);
  --shadow-xl:    0 16px 60px rgba(11,29,79,0.18);
  --trans:        all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
svg { display: inline-block; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

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

.section-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 600px;
}

.section-header-block {
  text-align: center;
  margin-bottom: 56px;
}
.section-header-block .section-label { justify-content: center; }
.section-header-block .section-sub {
  margin: 12px auto 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--trans);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}
.btn--orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.45);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn--ghost-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(21,88,214,0.3);
}
.btn--blue:hover {
  background: #0F47C0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,88,214,0.4);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 13px;
}

/* ---- Site Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--trans);
  background: rgba(255,255,255,0);
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(11,29,79,0.10);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  transition: var(--trans);
}
.site-header.is-scrolled .site-logo { color: var(--navy); }

.site-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--blue);
  border-radius: 8px;
  color: white;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -1px;
}

.site-logo img {
  height: 44px;
  width: auto;
}

/* Primary Nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius-sm);
  transition: var(--trans);
  white-space: nowrap;
}
.site-header.is-scrolled .nav__link { color: var(--text); }

.nav__link:hover,
.nav__link.is-active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active {
  color: var(--blue);
  background: var(--bg-blue);
}

.nav__caret { flex-shrink: 0; transition: transform 0.25s; }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__sub-link {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--trans);
}
.nav__sub-link:hover { background: var(--bg-light); color: var(--blue); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
}
.site-header.is-scrolled .lang-switcher {
  background: var(--bg-light);
}

.lang-switcher__btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: var(--trans);
}
.site-header.is-scrolled .lang-switcher__btn { color: var(--text-mid); }
.lang-switcher__btn.active,
.lang-switcher__btn:hover {
  background: var(--white);
  color: var(--navy);
}
.site-header.is-scrolled .lang-switcher__btn.active,
.site-header.is-scrolled .lang-switcher__btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* Polylang integration */
.lang-switcher .pll-parent-menu-item { list-style: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--white);
  transition: var(--trans);
}
.site-header.is-scrolled .menu-toggle { color: var(--navy); }

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(21,88,214,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(6,16,60,0.7) 0%, transparent 60%),
    linear-gradient(145deg, #060e2e 0%, #0B1D4F 55%, #0F2566 100%);
  position: relative;
  overflow: hidden;
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(21,88,214,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--orange);
}

.hero__text {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  backdrop-filter: blur(4px);
}
.hero__chip svg { flex-shrink: 0; opacity: 0.7; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(6,14,46,0.5);
  width: 100%;
  max-width: 520px;
}
.hero__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__badge--tl { top: 24px; left: -24px; }
.hero__badge--br { bottom: 24px; right: -24px; }

.hero__badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.hero__badge-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.hero__badge-txt {
  font-size: 12px;
  color: var(--text-mid);
  white-space: nowrap;
}

/* Wave bottom */
.hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}
.hero__wave svg { display: block; width: 100%; }

/* ---- Trust Badges ---- */
.trust-badges {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-badges__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-badge__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.trust-badge__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 2px;
}

.trust-badge__sub {
  font-size: 12.5px;
  color: var(--text-mid);
}

/* ---- Pain Points ---- */
.pain-points {
  padding: 80px 0;
  background: var(--bg-light);
}

.pain-points__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--trans);
}
.pain-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pain-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FEF2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
}

.pain-card__text {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ---- We Understand ---- */
.we-understand {
  padding: 96px 0;
  background: var(--white);
}

.we-understand__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.we-understand__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.we-understand__image img {
  width: 100%;
  display: block;
}

.we-understand__img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.we-understand__img-badge-logo {
  font-weight: 900;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.we-understand__img-badge-logo span { color: var(--blue); }

.we-understand__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.we-understand__logo-mark {
  background: var(--blue);
  color: white;
  font-weight: 900;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.we-understand__body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 16px 0 32px;
  max-width: 480px;
}

.we-understand__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--trans);
}
.pillar:hover { border-color: var(--blue-light); background: var(--bg-blue); }

.pillar__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.pillar:hover .pillar__icon { background: var(--blue); color: white; }

.pillar__text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

/* ---- Brands Section ---- */
.brands-section {
  padding: 96px 0;
  background: var(--bg-light);
}

.brand-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.brand-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}
.brand-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: transparent;
}

.brand-card__header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.brand-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.brand-card__logo-name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.brand-card__category {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
}

.brand-card__body {
  padding: 20px 28px;
  flex: 1;
}

.brand-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.brand-card__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}
.brand-card__feature::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-light);
  flex-shrink: 0;
}

.brand-card__note {
  font-size: 12.5px;
  color: var(--text-mid);
  font-style: italic;
  margin-top: 8px;
}

.brand-card__footer {
  padding: 20px 28px 28px;
}

.brand-card__cta {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 13px;
}

/* Brand color themes */
.brand-card--moxom .brand-card__tag  { background: #FFF1EB; color: var(--moxom); }
.brand-card--moxom .brand-card__logo-name { color: var(--moxom); }
.brand-card--moxom .brand-card__cta  { background: var(--moxom); color: white; border-color: var(--moxom); }
.brand-card--moxom .brand-card__cta:hover { background: #E55A20; border-color: #E55A20; transform: none; }

.brand-card--mlay .brand-card__tag   { background: #FEF0F8; color: var(--mlay); }
.brand-card--mlay .brand-card__logo-name { color: var(--mlay); }
.brand-card--mlay .brand-card__cta   { background: var(--mlay); color: white; border-color: var(--mlay); }
.brand-card--mlay .brand-card__cta:hover { background: #C0167A; border-color: #C0167A; transform: none; }

.brand-card--joyx .brand-card__tag   { background: var(--bg-blue); color: var(--joyx); }
.brand-card--joyx .brand-card__logo-name { color: var(--joyx); }
.brand-card--joyx .brand-card__cta   { background: var(--joyx); color: white; border-color: var(--joyx); }
.brand-card--joyx .brand-card__cta:hover { background: #0F47C0; border-color: #0F47C0; transform: none; }

/* ---- Why Choose ---- */
.why-choose {
  padding: 96px 0;
  background: var(--bg-blue);
}

.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.why-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--trans);
}
.why-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-item__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin: 0 auto 14px;
  transition: var(--trans);
}
.why-item:hover .why-item__icon {
  background: var(--blue);
  color: white;
  transform: scale(1.1);
}

.why-item__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 6px;
}

.why-item__text {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ---- Steps Section ---- */
.steps-section {
  padding: 96px 0;
  background: var(--white);
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 24px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}

.step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(21,88,214,0.3);
}

.step__content {
  padding: 4px 0 48px;
}
.step:last-child .step__content { padding-bottom: 0; }

.step__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.step__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.step__text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}

.steps-sidebar-card {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  color: white;
  position: sticky;
  top: 100px;
}

.steps-sidebar-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.steps-sidebar-card__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.steps-sidebar-card__text {
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 28px;
}

.steps-sidebar-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---- Benefits vs Risks ---- */
.benefits-risks {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.panel {
  padding: 80px 60px;
}

.panel--benefits {
  background: var(--white);
}

.panel--risks {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}

.panel--risks::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(21,88,214,0.25) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.panel__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 28px;
  position: relative;
}
.panel--benefits .panel__title { color: var(--navy); }
.panel--risks .panel__title { color: white; }

.panel__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.panel__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.panel--benefits .panel__item { color: var(--text); }
.panel--risks .panel__item { color: rgba(255,255,255,0.85); }

.panel__item-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.panel--benefits .panel__item-icon { background: #DCFCE7; color: var(--success); }
.panel--risks    .panel__item-icon { background: rgba(239,68,68,0.2); color: #FCA5A5; }

/* ---- Stats Section ---- */
.stats-section {
  padding: 80px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 36px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.stat-item:last-child { border-right: none; }

.stat-item__num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 10px;
}
.stat-item__num span { color: var(--orange); }

.stat-item__label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(21,88,214,0.3) 0%, transparent 55%),
    linear-gradient(135deg, #060e2e 0%, #0B1D4F 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-banner__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.cta-banner__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-banner__text {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 36px;
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Site Footer ---- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
}

.footer-top {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-brand__logo-mark {
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 6px;
}

.footer-brand__tagline {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--trans);
}
.footer-social:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.footer-nav__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav__link {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: var(--trans);
  line-height: 1.4;
}
.footer-nav__link:hover { color: white; padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin-bottom: 10px;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
}
.footer-bottom__link {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: var(--trans);
}
.footer-bottom__link:hover { color: rgba(255,255,255,0.8); }

/* ---- Page Layout ---- */
.page-hero {
  padding: 120px 0 60px;
  background: var(--navy);
  text-align: center;
}
.page-hero__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.55); }
.page-hero__breadcrumb a:hover { color: white; }

.page-content {
  padding: 64px 0 80px;
}

/* ---- News / Blog ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.news-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-light);
}
.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card__thumb img { transform: scale(1.05); }

.news-card__body { padding: 24px; }

.news-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-blue);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.news-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
  transition: var(--trans);
}
.news-card:hover .news-card__title { color: var(--blue); }

.news-card__excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  font-size: 12.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Single Post ---- */
.single-post { padding: 64px 0 96px; }
.single-post__inner { display: grid; grid-template-columns: 1fr 320px; gap: 56px; }
.single-post__content { min-width: 0; }

.post-header { margin-bottom: 32px; }
.post-meta { font-size: 13px; color: var(--text-light); margin-bottom: 16px; display: flex; gap: 16px; }
.post-title { font-size: clamp(24px, 3vw, 36px); font-weight: 900; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.post-thumbnail { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.post-thumbnail img { width: 100%; display: block; }

.post-body { font-size: 16.5px; line-height: 1.8; color: var(--text); }
.post-body h2, .post-body h3 { color: var(--navy); font-weight: 800; margin: 32px 0 12px; }
.post-body h2 { font-size: 24px; }
.post-body h3 { font-size: 20px; }
.post-body p { margin-bottom: 20px; }
.post-body a { color: var(--blue); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-body ul li { list-style: disc; margin-bottom: 8px; }
.post-body ol li { list-style: decimal; margin-bottom: 8px; }
.post-body blockquote { border-left: 4px solid var(--blue); padding: 16px 24px; background: var(--bg-blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 24px 0; font-style: italic; }
.post-body img { border-radius: var(--radius-md); margin: 24px 0; }

/* Blog sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { background: var(--bg-light); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-widget__title { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: var(--trans);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--navy); color: white; border-color: var(--navy); }

/* ---- Scroll Animations ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="zoom-in"] { transform: scale(0.92); }
[data-animate].is-visible { opacity: 1; transform: none; }

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* ---- 404 ---- */
.error-404 { padding: 120px 0; text-align: center; }
.error-404__code { font-size: 120px; font-weight: 900; color: var(--border); line-height: 1; }
.error-404__title { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.error-404__text { font-size: 16px; color: var(--text-mid); margin-bottom: 32px; }

/* ---- Mobile Menu ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 88px 28px 40px;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__menu { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  transition: var(--trans);
}
.mobile-nav__link:hover { background: rgba(255,255,255,0.08); color: white; }
.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .why-choose__grid { grid-template-columns: repeat(3, 1fr); }
  .why-choose__grid .why-item:nth-child(4),
  .why-choose__grid .why-item:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 1024px) {
  .hero__inner          { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__ctas           { justify-content: center; }
  .hero__chips          { justify-content: center; }
  .hero__visual         { max-width: 480px; margin: 0 auto; }
  .hero__badge--tl      { display: none; }
  .hero__badge--br      { display: none; }

  .trust-badges__grid   { grid-template-columns: repeat(2, 1fr); }

  .we-understand__grid  { grid-template-columns: 1fr; }

  .brand-cards          { grid-template-columns: repeat(2, 1fr); }
  .brand-cards .brand-card:nth-child(3) { grid-column: span 2; max-width: 480px; margin: 0 auto; }

  .steps-layout         { grid-template-columns: 1fr; }
  .steps-sidebar-card   { position: static; }

  .benefits-risks       { grid-template-columns: 1fr; }
  .panel                { padding: 60px 40px; }

  .footer-top           { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav           { grid-template-columns: repeat(3, 1fr); }

  .primary-nav          { display: none; }
  .menu-toggle          { display: flex; }
}

@media (max-width: 768px) {
  .pain-points__grid    { grid-template-columns: repeat(2, 1fr); }
  .brand-cards          { grid-template-columns: 1fr; }
  .brand-cards .brand-card:nth-child(3) { grid-column: span 1; max-width: 100%; }
  .why-choose__grid     { grid-template-columns: repeat(2, 1fr); }
  .stats-grid           { grid-template-columns: repeat(2, 1fr); }
  .stat-item            { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(2n) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-nav           { grid-template-columns: repeat(2, 1fr); }
  .news-grid            { grid-template-columns: repeat(2, 1fr); }
  .single-post__inner   { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .pain-points__grid    { grid-template-columns: 1fr; }
  .why-choose__grid     { grid-template-columns: 1fr 1fr; }
  .stats-grid           { grid-template-columns: 1fr 1fr; }
  .footer-nav           { grid-template-columns: 1fr 1fr; }
  .news-grid            { grid-template-columns: 1fr; }
  .trust-badges__grid   { grid-template-columns: 1fr 1fr; }
  .panel                { padding: 48px 24px; }
  .we-understand__pillars { grid-template-columns: 1fr; }
  .cta-banner__actions  { flex-direction: column; align-items: stretch; }
  .cta-banner__actions .btn { justify-content: center; }
  .footer-bottom        { flex-direction: column; align-items: flex-start; }
}
