@import url("./flettons-brand.css");
@import url("./flettons-icons.css");

:root {
  --navy: var(--fl-navy);
  --navy-deep: var(--fl-navy-dark);
  --pink: var(--fl-pink);
  --bg: #f7f7fa;
  --surface: #fbfbfc;
  --text: #08172b;
  --muted: var(--fl-muted-blue);
  --border: var(--fl-border-soft);
  --shadow: 0 18px 40px rgba(8, 23, 43, 0.08);
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%);
  color: var(--text);
  line-height: 1.45;
}

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

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--fl-header-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  width: auto;
  height: 46px;
  max-width: min(100%, 220px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #fff;
}

.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

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

.btn-sm {
  padding: 12px 18px;
  font-size: 0.94rem;
}

.btn-primary {
  background: var(--fl-gradient-button-primary);
  color: #fff;
  box-shadow: var(--fl-button-shadow);
}

.btn-primary:hover {
  box-shadow: var(--fl-button-shadow-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-outline-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-phone {
  min-width: 260px;
}

.btn-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.hero {
  padding: 18px 0 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumb-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.crumb-sep {
  color: rgba(98, 112, 143, 0.66);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.22fr;
  gap: 42px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(3.2rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: calc(-0.06em + 1px);
  font-weight: 900;
  color: var(--navy);
}

.hero-copy h1 span {
  display: block;
  color: var(--pink);
}

.hero-text {
  max-width: 430px;
  margin: 0 0 28px;
  color: #2e3d5b;
  font-size: 1.2rem;
  line-height: 1.72;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 430px;
  gap: 0;
}

.hero-metric {
  padding-right: 18px;
  border-right: 1px solid var(--border);
}

.hero-metric:nth-child(2) {
  padding-left: 18px;
}

.hero-metric:nth-child(3) {
  padding-left: 18px;
  padding-right: 0;
  border-right: 0;
}

.metric-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}

.metric-icon img,
.metric-svg {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.metric-icon .rics-logo-mark {
  width: 82px;
  height: auto;
  max-height: 44px;
}

.metric-svg path,
.metric-svg circle {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-svg .accent {
  stroke: var(--pink);
}

.hero-metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: calc(-0.06em + 1px);
  font-weight: 800;
  color: var(--navy);
}

.hero-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 452px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 452px;
  object-fit: cover;
}

.hero-quote-card {
  position: absolute;
  right: 28px;
  bottom: 18px;
  max-width: 360px;
  padding: 28px 26px 24px;
  border-radius: 16px;
  background: rgba(8, 23, 43, 0.98);
  color: #fff;
  box-shadow: 0 18px 34px rgba(8, 23, 43, 0.2);
}

.quote-mark {
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 3rem;
  line-height: 0.8;
  font-weight: 800;
}

.hero-quote-card p {
  margin: 0 0 14px;
  font-size: 1.1rem;
  line-height: 1.58;
}

.hero-quote-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.section {
  padding: 22px 0;
}

.section-heading {
  margin: 0 auto 22px;
}

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

.section-heading--tight {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: calc(-0.05em + 1px);
  font-weight: 800;
  color: var(--navy);
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 23, 43, 0.04);
}

.case-image-wrap {
  position: relative;
  overflow: hidden;
}

.case-image-wrap img {
  width: 100%;
  height: 212px;
  object-fit: cover;
}

.case-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(8, 23, 43, 0.1);
}

.case-body {
  padding: 18px 16px 16px;
}

.case-body h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.32;
  letter-spacing: calc(-0.03em + 0.5px);
  font-weight: 800;
  color: var(--navy);
}

.case-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.93rem;
}

.pin-icon {
  width: 14px;
  height: 14px;
}

.pin-icon path,
.pin-icon circle {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pin-icon .accent {
  stroke: var(--pink);
}

.case-copy {
  margin: 0 0 16px;
  color: #30405f;
  font-size: 0.98rem;
  line-height: 1.7;
}

.case-outcome {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #f6f8fc;
}

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

.case-outcome-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.case-outcome strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.2;
}

.case-outcome p {
  margin: 0;
  color: #30405f;
  font-size: 0.94rem;
  line-height: 1.58;
}

.text-link {
  color: var(--pink);
  font-weight: 700;
  font-size: 0.98rem;
}

.topics-card {
  padding: 14px 0 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 23, 43, 0.03);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
}

.topic-item {
  padding: 22px 16px 18px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.topic-item:last-child {
  border-right: 0;
}

.topic-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}

.topic-icon img,
.topic-icon-svg {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.topic-icon-svg path,
.topic-icon-svg circle,
.topic-icon-svg rect {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-icon-svg .accent {
  stroke: var(--pink);
}

.topic-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1.28;
  color: var(--navy);
}

.topic-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.58;
}

.evidence-band {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 23, 43, 0.03);
}

.evidence-quote,
.evidence-stat {
  min-height: 150px;
  padding: 24px 26px;
}

.evidence-stat {
  border-left: 1px solid var(--border);
  text-align: center;
}

.evidence-quote {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  align-items: start;
}

.evidence-quote-mark {
  color: var(--pink);
  font-size: 4rem;
  line-height: 0.8;
  font-weight: 800;
}

.evidence-quote p {
  margin: 0 0 12px;
  max-width: 430px;
  color: #243452;
  font-size: 1.08rem;
  line-height: 1.72;
}

.evidence-quote span {
  color: #334464;
  font-size: 0.93rem;
}

.evidence-stat-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}

.evidence-stat-icon img,
.evidence-stat-icon .metric-svg {
  width: 40px;
  height: 40px;
}

.evidence-stat-icon .rics-logo-mark {
  width: 86px;
  height: auto;
  max-height: 42px;
}

.evidence-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: calc(-0.05em + 1px);
  font-weight: 800;
  color: var(--navy);
}

.evidence-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.cta-section {
  padding-top: 4px;
  padding-bottom: 18px;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.15fr auto;
  gap: 30px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--fl-header-gradient);
  color: #fff;
  box-shadow: 0 22px 48px rgba(8, 23, 43, 0.18);
}

.cta-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1;
  letter-spacing: calc(-0.05em + 1px);
  font-weight: 800;
  color: #fff;
}

.cta-copy p {
  margin: 0;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.64;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-actions .btn {
  min-width: 220px;
}

.platform-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--fl-header-gradient);
  color: #fff;
  box-shadow: 0 18px 38px rgba(8, 23, 43, 0.16);
}

.platform-trust-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.platform-trust-item:last-child {
  border-right: 0;
}

.platform-stars {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  width: 52px;
}

.platform-stars span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ff3088;
  display: inline-block;
}

.platform-trust-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.platform-trust-icon img,
.platform-trust-icon .metric-svg,
.platform-trust-icon .topic-icon-svg {
  width: 40px;
  height: 40px;
}

.platform-trust-icon .rics-logo-mark {
  width: 44px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

.platform-trust-icon .metric-svg path,
.platform-trust-icon .metric-svg circle,
.platform-trust-icon .topic-icon-svg path,
.platform-trust-icon .topic-icon-svg rect,
.platform-trust-icon .topic-icon-svg circle {
  stroke: #fff;
}

.platform-trust-icon .metric-svg .accent,
.platform-trust-icon .topic-icon-svg .accent {
  stroke: var(--pink);
}

.platform-trust-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.28;
}

.platform-trust-item span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer {
  background: var(--fl-header-gradient);
  color: rgba(255, 255, 255, 0.82);
  padding: 24px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand-col p {
  max-width: 250px;
  margin: 12px 0 0;
  font-size: 0.94rem;
  line-height: 1.58;
}

.footer-brand img {
  width: auto;
  height: 46px;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.footer-list {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

.footer-list a,
.footer-list span {
  color: rgba(255, 255, 255, 0.82);
}

.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact img {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  object-fit: contain;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1180px) {
  .site-nav {
    display: none;
  }

  .hero-grid,
  .case-grid,
  .evidence-band,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .evidence-stat {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

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

  .topic-item:nth-child(3) {
    border-right: 0;
  }

  .topic-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .topics-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
  }

  .hero-visual img {
    min-height: 380px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .hero-metric,
  .hero-metric:nth-child(2),
  .hero-metric:nth-child(3) {
    padding: 0 16px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-metric:nth-child(2) {
    padding-right: 0;
    padding-left: 16px;
  }

  .hero-metric:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .hero-metric:nth-child(n + 3) {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .hero-metric:nth-child(3) {
    padding-top: 16px;
  }

  .hero-quote-card {
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .topic-item,
  .topic-item:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .topic-item:last-child {
    border-bottom: 0;
  }

  .cta-actions {
    justify-content: flex-start;
  }

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

  .platform-trust-item:nth-child(2) {
    border-right: 0;
  }

  .platform-trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .header-inner {
    min-height: 74px;
    gap: 16px;
  }

  .brand img {
    height: 40px;
  }

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

  .hero-copy h1 {
    font-size: 2.95rem;
  }

  .hero-text {
    font-size: 1.06rem;
  }

  .case-image-wrap img {
    height: 200px;
  }

  .topics-card {
    padding-top: 8px;
  }

  .cta-band,
  .platform-trust-item,
  .evidence-quote,
  .evidence-stat,
  .case-body,
  .topic-item,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .platform-trust {
    grid-template-columns: 1fr;
  }

  .platform-trust-item,
  .platform-trust-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .platform-trust-item:last-child {
    border-bottom: 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-metric,
  .hero-metric:nth-child(2),
  .hero-metric:nth-child(3),
  .hero-metric:nth-child(odd) {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-metric:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .footer-grid {
    gap: 18px;
  }
}
