:root {
  --bg: #ffffff;
  --text1: #111418;
  --text2: #7a7f87;
  --line: #e6e8ec;
  --primary: #219ebc;
}

@font-face {
  font-family: "myFont";               /* keep the same name you use below */
  src: url("fonts/myFont.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body{
  margin: 0;
  font-family: "myFont", system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text1);
  background: var(--bg);
}

/* Layout helpers */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
}

/* base for toggle (hidden on desktop) */
.nav {
  position: relative;
}

.nav-toggle {
  display: none;
}

/* Make header container full-width and left-aligned */
.site-header .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 16px;
}

/* Slight spacing between brand and menu */
.menu {
  margin-left: 8px;
}

/* Brand icon (rounded square with a smile) */
.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--primary);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 20px hsl(192, 70%, 90%);
}

/* Menu */
.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 28px;
}

.menu a {
  text-decoration: none;
  color: #474b52;
  font-weight: 500;
}

.menu a:hover {
  color: #111418;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(40px, 8vw, 80px);
  text-align: center;
}

.hero-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
}

/* Shared section title style */
.section-title {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary);
  text-align: center;
}

/* Circular placeholder with diagonal stripes */
.avatar {
  width: clamp(180px, 40vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 10px solid var(--primary);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fills without distortion */
  display: block;
}

/* Headline + accent name */
h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
}

.accent {
  color: var(--primary);
}

/* Subheadline */
.subtitle {
  margin: 0 0 10px;
  font-size: clamp(18px, 3.4vw, 34px);
  color: var(--text2);
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 760px) {

  /* Mobile nav layout */
  .nav {
    justify-content: space-between;
  }

  /* Show the hamburger on mobile */
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
  }

  .nav-toggle:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    transform: translateY(-1px);
  }

  .nav-toggle .bar {
    width: 22px;
    height: 2px;
    background: #111418;
    border-radius: 2px;
    display: block;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav-toggle .bar+.bar {
    margin-top: 4px;
  }

  /* morph to X when open */
  .nav-toggle.is-open .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Turn the menu into a dropdown panel on the right */
  .menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    flex-direction: column;
    gap: 0;
    background: #fff;

    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);

    /* hidden by default with animation */
    opacity: 0;
    transform: scale(0.98) translateY(-6px);
    transform-origin: top right;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  /* visible state toggled by JS */
  .menu.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    display: block;
    padding: .7rem 1rem;
    color: #111418;
  }

  /* remove the desktop spacing on mobile */
  .menu {
    margin-left: 0;
  }

  /* optional: keep header compact on mobile */
  .site-header .container {
    padding-inline: 12px;
  }
}

/* ── Metrics section ─────────────────────────────────────── */
.metrics {
  padding-block: clamp(40px, 8vw, 100px);
  background: var(--bg);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: stretch;
  column-gap: clamp(12px, 10vw, 120px);
  /* wide spacing like the mock */
  row-gap: 32px;
  text-align: center;
}

.metric-value {
  font-size: clamp(22px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #000;
  /* strong black as in the image */
}

.metric-value .plus {
  font-weight: 800;
}

.metric-label {
  margin-top: 12px;
  font-size: clamp(16px, 3.2vw, 34px);
  color: #9aa0a6;
  /* softer gray to match the mock */
  font-weight: 600;
}

/* Stack on small screens */
@media (max-width: 780px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    column-gap: 0;
  }
}


/* ── Highlights section ─────────────────────────────────────── */
.features {
  padding-block: clamp(56px, 10vw, 120px);
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 10vw, 140px);
  row-gap: clamp(40px, 10vw, 120px);
  align-items: center;
}

/* Text side */
.feature-text h3 {
  margin: 0 0 .4rem;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0b0b0b;
  font-weight: 800;
}

.feature-text .desc {
  margin: 0;
  color: #9aa0a6;
  /* soft gray like the mock */
  font-size: clamp(14px, 2.4vw, 18px);
  font-weight: 500;
}

.feature-media {
  width: 100%;
  max-width: clamp(260px, 36vw, 450px);
  /* cap image size so it doesn’t get huge */
  border-radius: 18px;
  background: #f3f3f3;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  /* center the media inside the grid column */
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive: stack on small screens */
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  /* Give breathing room when stacked */
  .feature-text {
    text-align: left;
  }

  /* Swap row 2 order on mobile: make text come before image */
  .features-grid> :nth-child(3) {
    grid-row: 4;
  }

  .features-grid> :nth-child(4) {
    grid-row: 3;
  }
}

/* ── Cards Carousel ───────────────────────────────────────── */
.cards-carousel {
  padding-block: clamp(40px, 8vw, 90px);
  background: var(--bg);
}

/* Track: horizontal scroll with 3 cards visible */
.carousel-track {
  --gap: 28px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (2 * var(--gap))) / 3);
  /* 3 per view */
  gap: var(--gap);
  overflow-x: auto;
  padding-bottom: 6px;
  /* breathing room below */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* hide scrollbar (keeps accessibility) */
.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: #e6e8ec;
  border-radius: 8px;
}

@supports (scrollbar-color: auto) {
  .carousel-track {
    scrollbar-color: #e6e8ec transparent;
    scrollbar-width: thin;
  }
}

/* Card */
.mini-card {
  scroll-snap-align: start;
  background: #f3f3f3;
  box-shadow: inset 0 0 0 1px #ededed;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(28px, 4vw, 44px);
  min-height: clamp(280px, 40vw, 420px);
}

/* Card media (image at the top of each card) */
.card-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #e9ecef;
  /* placeholder bg */
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text */
.card-body {
  margin-top: 12px;
  text-align: center;
}

/* Responsive: on narrow screens it will naturally show 1–2 cards.
   If you want exactly 2 per view under 900px, force it here. */
@media (max-width: 900px) {
  .carousel-track {
    grid-auto-columns: calc((100% - var(--gap)) / 2);
  }
}

@media (max-width: 560px) {
  .carousel-track {
    grid-auto-columns: 100%;
  }
}

/* ── Testimonials Carousel ────────────────────────────────── */
.testimonials {
  padding-block: clamp(56px, 10vw, 120px);
  background: var(--bg);
}

.ts-wrapper {
  position: relative;
  display: grid;
  align-items: center;
}

/* Track: one slide per view */
.ts-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  /* programmatic scroll */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* hide scrollbar (Firefox) */
}

.ts-track::-webkit-scrollbar {
  display: none;
}

/* hide (WebKit) */

/* Slide */
.ts-card {
  scroll-snap-align: start;
  margin: 0;
  min-height: clamp(160px, 22vw, 260px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(20px, 4vw, 40px);
}

.ts-card blockquote {
  margin: 0 0 10px;
  max-width: 900px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(22px, 4.2vw, 40px);
  color: #0b0b0b;
}

.ts-card figcaption {
  color: #9aa0a6;
  font-weight: 600;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* Buttons */
.ts-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #e6e8ec;
  background: #fff;
  color: #0b0b0b;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.ts-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  border-color: #d5d8dd;
}

.ts-btn.prev {
  left: -6px;
}

.ts-btn.next {
  right: -6px;
}

/* Tighten buttons on small screens */
@media (max-width: 720px) {
  .ts-btn {
    width: 36px;
    height: 36px;
  }

  .ts-btn.prev {
    left: 2px;
  }

  .ts-btn.next {
    right: 2px;
  }
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact {
  padding-block: clamp(60px, 10vw, 140px);
  background: var(--bg);
  text-align: center;
}

.contact-inner {
  max-width: 520px;
  margin-inline: auto;
}

.contact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
}

.contact .subtitle {
  margin: .25rem 0 2rem;
  font-size: clamp(16px, 2.6vw, 22px);
  color: #9aa0a6;
  font-weight: 600;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 8px;
  background: #f3f3f3;
  color: #111;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa0a6;
}

.contact-form button {
  margin-top: .5rem;
  font: inherit;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Responsive spacing */
@media (max-width: 600px) {
  .contact-form {
    gap: 0.8rem;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}

.site-footer::after {
  /* soft fade near the bottom like mock */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  /* brand + 3 cols */
  align-items: start;
  gap: clamp(20px, 4vw, 60px);
  padding-block: clamp(36px, 6vw, 72px);
}

/* Columns */
.footer-cols {
  display: contents;
  /* keep grid columns defined above */
}

.col h4 {
  margin: 0 0 .6rem;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

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

.col li {
  line-height: 1.9;
}

.col a {
  text-decoration: none;
  color: #9aa0a6;
  font-weight: 600;
}

.col a:hover {
  color: #111418;
}

/* Bottom strip */
.footer-bottom {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-size: 14px;
  color: #7a7f87;
}

.to-top {
  color: #7a7f87;
  text-decoration: none;
  font-weight: 700;
}

.to-top:hover {
  color: #111418;
}

/* Responsive stacking */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}