:root {
  --primary: #0b7f8d;
  --primary-strong: #075866;
  --accent: #19b7c8;
  --accent-soft: #e8fbfd;
  --ink: #102a43;
  --text: #334e68;
  --muted: #627d98;
  --line: rgba(16, 42, 67, 0.1);
  --surface: #ffffff;
  --surface-soft: #f5fbfd;
  --warning: #fff5d8;
  --danger: #ffe7e7;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

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

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand img {
  width: 300px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid var(--primary);
  box-shadow: 0 12px 24px rgba(11, 127, 141, 0.2);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.btn.secondary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: none;
  border-color: rgba(11, 127, 141, 0.24);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 48%, rgba(245,251,253,0.5) 100%),
    url("heroimage.png") right center / min(46vw, 560px) auto no-repeat,
    linear-gradient(180deg, #eefcff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 70px;
  align-items: center;
  padding: 82px 0 72px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 650px;
  font-size: 1.17rem;
  color: var(--text);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
  font-size: 0.92rem;
}

.hero-visual {
  min-height: 660px;
  position: relative;
}

.hero-dashboard {
  position: absolute;
  width: min(96%, 620px);
  left: 70%;
  right: auto;
  bottom: 0%;
  border-radius: 8px;
  filter: drop-shadow(0 24px 36px rgba(16, 42, 67, 0.18));
  transform: translateX(-50%);
}

.hero-phone {
  position: absolute;
  filter: drop-shadow(0 22px 35px rgba(16, 42, 67, 0.18));
}

.hero-phone-main {
  width: min(49.4%, 299px);
  right: 55%;
  top: 3%;
}

.hero-phone-side {
  width: min(42.9%, 247px);
  right: -21em;
  top: 32%;
  bottom: auto;
}

.stats-band {
  padding: 28px 0 64px;
  overflow: hidden;
}

.stats-carousel {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.stats-track {
  display: flex;
  width: max-content;
  animation: stats-scroll 56s linear infinite;
}

.stat {
  flex: 0 0 30vw;
  min-height: 150px;
  margin: 0 3vw;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 127, 141, 0.14);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.08;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

@keyframes stats-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

section {
  padding: 82px 0;
}

.section-head {
  max-width: 790px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head.left {
  margin: 0;
  text-align: left;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.06;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
}

.alt {
  background: var(--surface-soft);
}

.cards,
.pricing-grid,
.modules-grid {
  display: grid;
  gap: 20px;
}

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

.card,
.pricing-card,
.module-card,
.workflow-step,
.specialization-list div,
details {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.07);
}

.card {
  padding: 26px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.card h3,
.pricing-card h3,
.module-card h3,
.workflow-step h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.pricing-card h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.12;
}

.plan-title {
  text-align: center;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem) !important;
  line-height: 1.16 !important;
}

.plan-title span {
  display: inline-block;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1;
}

.card p,
.pricing-card p,
.module-card p,
.workflow-step p {
  color: var(--muted);
}

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

.workflow-step {
  overflow: hidden;
}

.workflow-step img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(180deg, #eefcff, #ffffff);
  padding: 18px;
}

.workflow-step div {
  padding: 24px;
}

.workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 14px;
}

.specialization-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.specialization-list {
  display: grid;
  gap: 14px;
}

.specialization-list div {
  padding: 22px;
  display: grid;
  gap: 6px;
}

.specialization-list strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.specialization-list span {
  color: var(--muted);
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pricing-card:hover {
  border-color: rgba(11, 127, 141, 0.38);
  box-shadow:
    0 0 34px rgba(25, 183, 200, 0.34),
    var(--shadow);
  transform: translateY(-8px);
  transition-delay: 0.7s, 0.7s, 0s;
}

.price {
  color: var(--primary) !important;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.plan-divider {
  position: relative;
  height: 12px;
  width: 100%;
  margin: 4px 0 2px;
  overflow: hidden;
}

.plan-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(25, 183, 200, 0.76);
  transform: scaleX(0);
  transform-origin: left center;
}

.plan-divider::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #19b7c8;
  box-shadow:
    0 0 10px rgba(25, 183, 200, 0.95),
    0 0 18px rgba(126, 227, 238, 0.78),
    8px -4px 0 -5px #7ee3ee,
    10px 4px 0 -5px #7ee3ee;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}

.pricing-card:hover .plan-divider::before {
  transform: scaleX(1);
  transition: transform 0.7s linear;
}

.pricing-card:hover .plan-divider::after {
  opacity: 1;
  animation: spark-trace 0.7s linear forwards;
}

@keyframes spark-trace {
  0% {
    left: 0;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }

  8%,
  92% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    left: 100%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35);
  }
}

.billing-marker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 0 4px;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 900;
}

.module-card .billing-marker {
  margin-top: auto;
  padding-top: 28px;
}

.billing-marker span {
  display: grid;
  gap: 4px;
}

.billing-marker b {
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.custom-marker {
  text-transform: none;
}

.custom-price-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  cursor: help;
}

.billing-marker .custom-price-separator {
  width: 58px;
  height: 58px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 2rem;
}

.custom-price-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(220px, 70vw);
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}

.custom-price-icon:hover::after,
.custom-price-icon:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.billing-marker strong {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 2.9rem;
  line-height: 1;
  letter-spacing: 0;
}

.billing-marker .custom-price-icon,
.billing-marker .custom-price-separator {
  width: 58px;
  height: 58px;
  font-size: 2.9rem;
  line-height: 1;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 14px 0 2px;
  color: var(--primary);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 1;
}

.plan-price span {
  font-size: 0.42em;
  font-weight: 900;
  transform: translateY(-0.32em);
}

.plan-subline {
  margin-top: -10px;
  color: var(--primary) !important;
  font-size: 0.78rem;
  font-weight: 850;
}

.pricing-card .btn {
  margin-top: 12px;
}

.pricing-cta {
  text-transform: uppercase;
}

.pricing-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

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

.module-card {
  padding: 24px;
  min-height: 235px;
  display: flex;
  flex-direction: column;
}

.module-card-wide {
  grid-column: span 2;
}

.module-icon {
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.faq {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

details {
  padding: 20px 22px;
}

summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 850;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: 12px;
  color: var(--muted);
}

.closing-cta {
  padding: 82px 0 96px;
}

.cta-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
  padding: 42px;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 88, 102, 0.94), rgba(11, 127, 141, 0.92)),
    url("doc sofia oftal - icono.png") right center / auto 140% no-repeat;
}

.cta-panel h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 740px;
  margin: 0 auto;
}

.cta-panel .section-kicker {
  color: rgba(255, 255, 255, 0.76);
}

.cta-panel .btn {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  box-shadow: none;
  white-space: nowrap;
}

footer {
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
  color: #777;
  border-top: 0;
}

footer p {
  margin: 1em 0;
}

footer p:first-of-type {
  white-space: nowrap;
}

footer img {
  display: inline-block;
  vertical-align: middle;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,251,253,0.72)),
      url("heroimage.png") right top / 420px auto no-repeat,
      #ffffff;
  }

  .hero-grid,
  .specialization-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

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

  .cards,
  .workflow,
  .pricing-grid,
  .modules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-panel .btn {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1160px);
  }

  .nav {
    min-height: 68px;
  }

  .brand img {
    width: 210px;
    height: 52px;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid {
    padding: 52px 0 42px;
    gap: 24px;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.25rem);
  }

  .hero-actions,
  .trust-row {
    flex-direction: column;
  }

  .btn,
  .trust-row span {
    width: 100%;
  }

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

  .hero-dashboard {
    width: 110%;
    left: 60%;
    bottom: 12%;
    right: auto;
  }

  .hero-phone-main {
    width: 54.6%;
    right: 52%;
    top: 4%;
  }

  .hero-phone-side {
    width: 41.6%;
    right: -3em;
    top: 34%;
  }

  .cards,
  .workflow,
  .pricing-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .module-card-wide {
    grid-column: auto;
  }

  .stat {
    flex-basis: 78vw;
    min-height: 148px;
    margin: 0 3vw;
  }

  section {
    padding: 62px 0;
  }

  .section-head,
  .section-head.left {
    text-align: left;
  }

  .cta-panel {
    padding: 28px;
  }

  .cta-panel .btn {
    width: 100%;
  }
}
