/* =========================================================
   Codivoo Technologies – V1 Homepage
   Source: Figma "V1 Homepage" (1440px desktop frame)
   ========================================================= */

:root {
  --navy: #0c1d38;
  --body: #4f5b6b;
  --red: #f04b3e;
  --ink: #02050a;
  --grey: #525253;
  --border: #dadada;
  --border-2: #d9d9d9;
  --bg: #fafafa;
  --white: #fff;

  --grad-dark: linear-gradient(180deg, #0c1d38 0%, #4d5665 100%);
  --grad-light: linear-gradient(180deg, #fff 0%, #f2f2f2 100%);
  --grad-red: linear-gradient(180.38deg, #f04b3e 1.37%, #f4867e 142.57%);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 80px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, figure, blockquote, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Typography ---------- */
h1 { font-size: 64px; line-height: 72px; font-weight: 600; color: var(--navy); }
h2 { font-size: 48px; line-height: 56px; font-weight: 600; color: var(--navy); }
h3 { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--navy); }
.lead { font-size: 18px; line-height: 26px; font-weight: 500; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 12px;
  font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad-dark); color: #fff; }
.btn--secondary { background: var(--grad-light); border-color: #e8e8e8; color: var(--navy); }
.btn--text { height: 48px; padding: 0 18px; color: var(--navy); }
.btn--outline { height: 48px; padding: 0 18px; border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-row--left { justify-content: flex-start; }

.section { padding-block: 100px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.section-head .lead { max-width: 882px; }
.lead--narrow { max-width: 830px !important; }
.section-head--ink h2 { color: var(--ink); }
.section-head--ink .lead { color: var(--grey); }

/* ======================= HERO ======================= */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.41) 16.5%, rgba(255,255,255,.45) 58.3%, #f5f5f5 102.35%),
    url("images/3447e586-6ca6-4af9-a8ec-80ecd88f2217.png") center / cover no-repeat;
}
.hero .container { padding-top: 24px; }

.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; padding-inline: 16px; border-radius: 18px;
  filter: drop-shadow(0 8px 6px rgba(0,0,0,.04));
}
.site-header__logo img { width: 179px; height: 52px; object-fit: cover; }
.site-nav { display: flex; align-items: center; flex: 1; justify-content: space-between; margin-left: 40px; }
.site-nav__list {
  display: flex; align-items: center; gap: 40px; margin-inline: auto;
  padding: 8px; border-radius: 100px;
  background: rgba(255,255,255,.53); backdrop-filter: blur(6px);
}
.site-nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 8px;
  border-radius: 100px; font-weight: 500; color: var(--body); white-space: nowrap;
}
.site-nav__link.is-active { background: rgba(255,230,228,.59); color: var(--red); font-weight: 600; }
.site-nav__actions { display: flex; gap: 16px; align-items: center; }
.nav-toggle { display: none; }

.hero__content { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 48px 0 78px; text-align: center; }
.hero__content h1 { max-width: 950px; }
.hero__content .lead { max-width: 882px; color: var(--navy); }
.hero__content .btn-row { gap: 24px; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__screen {
  width: 100%; max-width: 988px; height: 543px; overflow: hidden;
  border: 12px solid rgba(255,255,255,.33); border-bottom: 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -15px 60px -10px rgba(30,15,53,.07);
}
.hero__screen img { width: 100%; height: auto; }
.hero__float { position: absolute; border-radius: 16px; box-shadow: -2px 18px 48px -6px rgba(4,6,37,.12); z-index: 2; }
.hero__float--revenue { left: 3.2%; top: 80px; width: 136px; }
.hero__float--stock { left: 0; top: 361px; width: 197px; }
.hero__float--sales { right: 0; top: 192px; width: 197px; box-shadow: 9px 18px 48px -6px rgba(4,6,37,.12); }
.hero__fade {
  position: absolute; left: 50%; bottom: 0; width: 100vw; max-width: none; height: 132px;
  transform: translateX(-50%); object-fit: cover; pointer-events: none; z-index: 1;
}

/* ======================= BRANDS ======================= */
.brands { padding-block: 48px 0; }
.brands .container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.brands__title { font-size: 16px; line-height: 32px; font-weight: 600; color: var(--body); text-align: center; }
.brands__list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px 77px; width: 100%; opacity: .8; }
.brand { position: relative; flex: none; }
.brand__inner { position: absolute; display: block; }
.brand__inner img { width: 100%; height: 100%; max-width: none; }
.brand--humana { width: 155px; height: 32px; }
.brand--humana .brand__inner { inset: 1.99% 0.42%; }
.brand--jeep { width: 127px; height: 50px; }
.brand--hologic { width: 162px; height: 30px; }
.hologic-a { position: absolute; inset: 3.56% 4.28% 3.56% 0.64%; width: 95.08%; height: 92.88%; max-width: none; }
.hologic-b { position: absolute; left: 95.87%; top: 5.84%; width: 3.49%; height: 19.64%; max-width: none; }
.brand--bitcoin { width: 141px; height: 50px; }
.brand--bitcoin .brand__inner { inset: 22.1% 2.17% 22% 2.81%; }
.brand--hubspot { width: 141px; height: 50px; }
.brand--hubspot .brand__inner { inset: 10% 0.99% 9.99% 1.06%; }
.brand--stripe { width: 141px; height: 50px; }

/* ======================= PRODUCTS ======================= */
.products .container { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.tabs { width: 100%; display: flex; flex-direction: column; gap: 40px; align-items: center; }
.tabs__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 18px; border-radius: 100px;
  background: var(--grad-light); border: 1px solid #e8e8e8;
  font-weight: 600; color: var(--navy); white-space: nowrap; transition: filter .2s;
}
.tab:hover { filter: brightness(.98); }
.tab.is-active { background: var(--grad-red); border-color: transparent; color: #fff; }
.tab.is-active img { filter: brightness(0) invert(1); }
.tab.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 20px; height: 20px;
  background: #f37a70; transform: translateX(-50%) rotate(45deg); border-radius: 4px; z-index: -1;
}

.panel {
  width: 100%; min-height: 582px;
  display: flex; align-items: center; gap: 60px; padding-left: 40px;
  background: #fff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
}
.panel[hidden] { display: none; }
.panel__text { flex: 0 0 495px; max-width: 495px; display: flex; flex-direction: column; }
.panel__text h3 { font-size: 32px; line-height: 1.3; }
.panel__text > p { margin-top: 24px; font-size: 18px; line-height: 1.6; font-weight: 500; }
.panel__text h4 { margin-top: 24px; font-size: 20px; line-height: 28px; font-weight: 600; color: #0c1312; }
.checklist { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.checklist li {
  display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 26px; color: var(--navy);
}
.checklist li::before {
  content: ""; flex: none; width: 24px; height: 24px;
  background: url("images/2f3337c7-d81c-43f0-9490-7ff434c9479e.svg") center / contain no-repeat;
}
.panel__text .btn-row { margin-top: 48px; }
.panel__media { flex: 1 1 auto; min-width: 0; max-width: 685px; height: 452px; overflow: hidden; }
.panel__media img { width: 104.21%; max-width: none; height: 100.21%; object-fit: cover; object-position: left top; }

/* ======================= FEATURES ======================= */
.features { padding-top: 0; }
.features .section-head { gap: 24px; }
.features__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 24px; }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.feature h3 { font-size: 24px; }
.feature p { max-width: 347px; }
.learn-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--navy); }
.learn-more img { transform: rotate(136deg); width: 13.5px; height: 13.5px; }
.feature__media { position: relative; height: 190px; margin-top: 12px; border-radius: 16px; overflow: hidden; }
.feature__media img { position: absolute; max-width: none; }
.crop-1, .crop-6 { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crop-2 { width: 105.51%; height: 91.26%; left: -2.75%; top: 4.37%; }
.crop-3 { width: 100%; height: 131.35%; left: 0; top: 2.58%; }
.crop-4 { width: 93.39%; height: 88.05%; left: 3.31%; top: 8.61%; }
.crop-5 { width: 89.81%; height: 124.27%; left: 5.1%; top: 3.39%; }

/* ======================= SERVICES ======================= */
.services { position: relative; isolation: isolate; overflow: hidden; padding-block: 100px; }
.services__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(123.84deg, rgba(255,255,255,.57) 14.07%, rgba(255,255,255,.448) 96.11%),
    url("images/ccd5c01d-d09e-48db-8760-28355f3ee44e.png") center / cover no-repeat;
}
.services__mark { position: absolute; left: 0; bottom: 0; z-index: -1; width: 401px; height: 416px; opacity: .06; pointer-events: none; max-width: none; }
.services__inner { position: relative; }
.services__intro { position: absolute; left: var(--gutter); top: 0; width: 506px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.services__intro .lead { color: var(--body); }
.services__grid { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.services__row { display: flex; justify-content: flex-end; gap: 16px; }
.service {
  position: relative; overflow: hidden; width: 333px; height: 340px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; width: 142px; height: 140px; opacity: .05;
  background: url("images/884d2594-a819-4891-8b09-9d119f87540b.png") center / cover no-repeat;
}
.service__icon { position: relative; width: 64px; height: 64px; }
.service > div { position: relative; display: flex; flex-direction: column; gap: 12px; }

/* ======================= HOW IT WORKS ======================= */
.how { background: #fff; }
.how__layout { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.steps { position: relative; flex: 0 1 577px; display: flex; flex-direction: column; gap: 24px; }
.steps__item { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--border-2); border-radius: 16px; }
.steps__btn {
  width: 100%; display: flex; align-items: center; gap: 24px; padding: 12px 24px 12px 16px;
  background: none; border: 0; text-align: left; color: var(--ink);
}
.steps__title { font-size: 20px; line-height: 32px; font-weight: 600; }
.steps__icon {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid #ff5b4e; border-radius: 16px;
  background: linear-gradient(180deg, #ffedeb 34.8%, rgba(253,202,196,.42) 59%, rgba(250,167,158,0) 100%);
}
.steps__panel { padding: 0 24px 16px 16px; }
.steps__panel[hidden] { display: none; }
.steps__panel p { max-width: 468px; }
.steps__item.is-open {
  border-color: var(--red);
  background: linear-gradient(57deg, rgba(240,75,62,0) 29.6%, rgba(240,75,62,.06) 104%, rgba(240,75,62,.16) 137%, rgba(240,75,62,.34) 210.6%);
}
.steps__item.is-open .steps__btn { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 16px; padding-bottom: 8px; }
.steps__mark { position: absolute; right: 0; top: 96px; width: 156px; height: 111px; opacity: .06; pointer-events: none; object-fit: cover; }
.how__visual {
  flex: 0 0 567px; height: 588px; display: flex; align-items: center; justify-content: center; padding: 16px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(240,75,62,0) 6.5%, rgba(240,75,62,.18) 51.3%, rgba(240,75,62,0) 96.6%);
}
.how__shot { position: relative; width: 413px; max-width: 100%; height: 504px; border-radius: 24px; overflow: hidden; }
.how__shot img { position: absolute; left: -3.4%; top: 0; width: 162.71%; height: 100%; max-width: none; object-fit: cover; }

/* ======================= TESTIMONIALS ======================= */
.testimonials .container { display: flex; flex-direction: column; gap: 48px; }
.testimonials__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.testimonials__nav { display: flex; gap: 16px; }
.icon-btn { width: 48px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid transparent; }
.icon-btn--light { background: var(--grad-light); border-color: #e8e8e8; }
.icon-btn--dark { background: var(--grad-dark); }
.icon-btn .flip { transform: scaleX(-1); }
.testimonials__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.t-card {
  flex: 0 0 325px; height: 310px; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px;
  background: #fff; border: 1px solid var(--border-2); border-radius: 24px;
}
.t-card__logo { height: auto; max-height: 46px; width: auto; margin-bottom: 36px; }
.t-card > .t-card__logo + blockquote { margin-top: -12px; }
.t-card blockquote p { font-size: 16px; line-height: 28px; color: var(--navy); }
.t-card figcaption { display: flex; align-items: center; gap: 16px; }
.t-card figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.t-card figcaption span { display: flex; flex-direction: column; gap: 4px; }
.t-card figcaption strong { font-size: 16px; line-height: 10px; font-weight: 500; color: var(--navy); }

.rating {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px;
  padding: 12px 36px; border: 1px solid var(--border); border-radius: 1000px;
}
.rating__text { display: flex; align-items: center; gap: 16px; }
.rating__score { font-size: 40px; line-height: 48px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.rating__copy { font-size: 14px; line-height: 22px; max-width: 310px; }
.rating__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); white-space: nowrap; }

/* ======================= CTA ======================= */
.cta-wrap { padding-bottom: 0; }
.cta {
  position: relative; overflow: hidden; isolation: isolate; height: 595px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding-inline: 80px; border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.69), rgba(255,255,255,.2)),
    url("images/43171a2f-32b8-4bf2-a392-78fb321a3999.png") center / cover no-repeat;
}
.cta__text { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 60px; text-align: center; }
.cta__text .lead { max-width: 544px; }
.cta__screen {
  width: 100%; max-width: 994px; height: 272px; overflow: hidden;
  border: 15px solid rgba(255,255,255,.44); border-bottom: 0; border-radius: 24px 24px 0 0;
  box-shadow: 0 -26px 30px -14px rgba(0,0,0,.05);
}
.cta__screen img { width: 100%; height: auto; }

/* ======================= FOOTER ======================= */
.site-footer { padding: 100px 0 20px; background: var(--bg); }
.site-footer .container { display: flex; flex-direction: column; gap: 24px; }
.site-footer__top {
  position: relative; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
.site-footer__mark {
  position: absolute; left: 843px; top: -8px; width: 465px; height: 465px; max-width: none;
  opacity: .03; pointer-events: none; z-index: 0;
}
.footer-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.footer-col h2 { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--navy); }
.footer-col--about { max-width: 330px; }
.footer-col--about img { width: 170px; height: 49px; }
.footer-col--about p { margin-bottom: 6px; }
.footer-col ul { display: flex; flex-direction: column; gap: 16px; }
.footer-col ul a { color: var(--grey); }
.footer-col a:hover { color: var(--red); }
.footer-col address { display: flex; flex-direction: column; gap: 16px; }
.footer-col address p { display: flex; gap: 16px; align-items: flex-start; max-width: 250px; }
.footer-col address img { flex: none; }
.footer-col--news { max-width: 299px; }
.footer-col--news .btn { width: 194px; margin-top: 4px; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer__bottom > p { color: var(--navy); }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border-2); border-radius: 100px; }
.social a:first-child { background: var(--bg); }
.social a:hover { border-color: var(--red); }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1280px) {
  .services__intro { position: static; width: auto; max-width: 560px; margin-bottom: 40px; }
  .services__grid { align-items: stretch; }
  .services__row { flex-wrap: wrap; }
  .service { flex: 1 1 260px; width: auto; }
  .site-footer__mark { display: none; }
}

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  h1 { font-size: 48px; line-height: 56px; }
  h2 { font-size: 40px; line-height: 48px; }
  .hero__float { display: none; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .panel { flex-direction: column; align-items: flex-start; padding: 32px 32px 0; gap: 32px; }
  .panel__text { flex-basis: auto; max-width: none; }
  .panel__media { width: 100%; max-width: none; height: auto; aspect-ratio: 685 / 452; }
  .how__layout { flex-direction: column; align-items: stretch; }
  .steps { flex-basis: auto; }
  .how__visual { flex-basis: auto; width: 100%; height: auto; padding: 24px 16px; }

  /* Mobile / tablet nav */
  .nav-toggle {
    display: grid; gap: 5px; width: 44px; height: 44px; place-content: center;
    background: rgba(255,255,255,.7); border: 1px solid #e8e8e8; border-radius: 12px;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
  .site-nav {
    display: none; position: absolute; top: 88px; left: 0; right: 0; z-index: 30;
    flex-direction: column; align-items: stretch; gap: 16px; margin: 0; padding: 16px;
    background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 16px 40px rgba(12,29,56,.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 0; background: none; backdrop-filter: none; }
  .site-nav__link { height: 44px; padding-inline: 14px; }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  h1 { font-size: 36px; line-height: 44px; }
  h2 { font-size: 30px; line-height: 38px; }
  h3 { font-size: 22px; line-height: 30px; }
  .lead { font-size: 16px; line-height: 24px; }
  .section { padding-block: 64px; }
  .hero__content { padding: 32px 0 48px; gap: 24px; }
  .hero__content .btn-row { gap: 12px; }
  .hero__screen { height: auto; max-height: 360px; border-width: 8px; border-radius: 20px 20px 0 0; }
  .brands__list { gap: 20px 32px; }
  .brand { transform: scale(.8); }
  .features__grid { grid-template-columns: 1fr; }
  .feature p { max-width: none; }
  .panel { padding: 24px 20px 0; }
  .panel__text h3 { font-size: 26px; }
  .checklist li { font-size: 16px; }
  .panel__text .btn-row { margin-top: 32px; }
  .services { padding-block: 64px; }
  .service { height: auto; min-height: 280px; gap: 32px; }
  .steps__btn { gap: 16px; }
  .steps__title { font-size: 18px; }
  .how__shot { height: auto; aspect-ratio: 413 / 504; }
  .testimonials__head { flex-wrap: wrap; }
  .t-card { flex-basis: 85%; }
  .rating { flex-direction: column; align-items: flex-start; border-radius: 28px; padding: 20px; }
  .rating__text { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cta { height: auto; padding-inline: 20px; border-radius: 24px; }
  .cta__text { padding-block: 40px 32px; }
  .cta__screen { border-width: 8px; max-height: 200px; }
  .site-footer { padding-top: 64px; }
  .site-footer__top { flex-direction: column; }
  .footer-col--about, .footer-col--news { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
