/* ═══════════════════════════════════════════════════════
   ClinicOS — Landing Page Styles
   Palette extracted from landing.json color variables
   ═══════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  /* Primary: healthcare teal */
  --color-primary-0: rgb(232, 247, 245);
  --color-primary-1: rgb(158, 223, 216);
  --color-primary-2: rgb(16, 181, 166);   /* main accent */
  --color-primary-3: rgb(11, 126, 115);
  --color-primary-4: rgb(6, 62, 57);

  /* Secondary: clinical blue */
  --color-secondary-0: rgb(234, 243, 251);
  --color-secondary-1: rgb(184, 212, 240);
  --color-secondary-2: rgb(47, 128, 199);  /* main blue */
  --color-secondary-3: rgb(30, 93, 147);
  --color-secondary-4: rgb(11, 37, 56);

  /* Tertiary: greys */
  --color-tertiary-0: #ffffff;
  --color-tertiary-1: rgb(179, 179, 179);
  --color-tertiary-2: rgb(128, 128, 128);
  --color-tertiary-3: rgb(96, 96, 96);
  --color-tertiary-4: #000000;

  /* Semantic */
  --bg:        var(--color-tertiary-0);
  --text:      var(--color-secondary-4);
  --text-muted: var(--color-tertiary-3);
  --accent:    var(--color-primary-2);
  --accent-dk: var(--color-primary-3);
  --blue:      var(--color-secondary-2);
  --blue-dk:   var(--color-secondary-3);

  /* Typography */
  --font-head: 'Ubuntu', sans-serif;
  --font-body: 'Ubuntu', sans-serif;
  --font-mono: 'Ubuntu Mono', monospace;

  /* Spacing */
  --section-py: 96px;
  --container: 1060px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11,37,56,.08);
  --shadow-md: 0 8px 32px rgba(11,37,56,.12);
  --shadow-lg: 0 24px 64px rgba(11,37,56,.18);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 280ms;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, button, textarea { font: inherit; }

/* ─── CONTAINER ──────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ─── SCROLL REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  box-shadow: 0 8px 24px rgba(16,181,166,.35);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.btn--lg { padding: 18px 44px; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* ─── SECTION TYPOGRAPHY ─────────────────────────────── */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
p { color: var(--text-muted); }


/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--dur) var(--ease),
              padding var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  transition: color var(--dur) var(--ease);
  margin-right: auto;
}
.nav.scrolled .nav__logo { color: var(--blue-dk); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav.scrolled .nav__links a { color: var(--text-muted); }
.nav.scrolled .nav__links a:hover { color: var(--text); }

.nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 7px;
  font-weight: 700 !important;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease) !important;
}
.nav__cta:hover { background: var(--accent-dk) !important; transform: translateY(-1px); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background var(--dur) var(--ease);
}
.nav.scrolled .nav__burger span { background: var(--text); }


/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.assets-landingi.com/uc/25e8f2c8-bef0-4555-9c89-f1d09e3ead5e/pexelstimamiroshnichenko6011598.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,37,56,.75) 0%,
    rgba(30,93,147,.6) 50%,
    rgba(11,37,56,.5) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  padding-top: 100px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,181,166,.2);
  border: 1px solid rgba(16,181,166,.5);
  color: var(--color-primary-1);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .2em;
}
.hero__subtitle {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  color: rgba(255,255,255,.8);
  letter-spacing: -.01em;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero__scroll-hint span {
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ═══════════════════════════════════════════════════════
   VALUE PROP
   ═══════════════════════════════════════════════════════ */
.value-prop {
  padding: var(--section-py) 0;
  background: var(--color-secondary-0);
}
.value-prop__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-md);
}
.value-prop__icon {
  width: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(16,181,166,.3));
}
.value-prop__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--blue-dk);
  margin-bottom: .6rem;
}
.value-prop__text p { font-size: 1.05rem; }


/* ═══════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════ */
.features {
  padding: var(--section-py) 0;
  background: #fff;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 1rem;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--color-secondary-0);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary-1);
}
.feature-card__icon-wrap {
  width: 52px; height: 52px;
  background: var(--color-primary-0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 10px;
}
.feature-card__icon-wrap img { width: 100%; filter: none; }
.feature-card h3 { color: var(--blue-dk); }


/* ═══════════════════════════════════════════════════════
   PRODUCT IN USE
   ═══════════════════════════════════════════════════════ */
.product {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}
.product__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.assets-landingi.com/uc/9e416777-564d-40e6-978e-c0f97e8e8b0f/pexelstarawinstead7723389.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.product__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,37,56,.88) 0%, rgba(30,93,147,.82) 100%);
}
.product .container { position: relative; z-index: 2; }
.product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product__icon {
  width: 44px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1) opacity(.6);
}
.product__copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.product__copy > p { color: rgba(255,255,255,.7); margin-bottom: 2rem; }

.product__points { display: flex; flex-direction: column; gap: 20px; }
.product__points li { display: flex; gap: 16px; align-items: flex-start; }
.point-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.product__points strong { color: #fff; display: block; margin-bottom: 4px; }
.product__points p { color: rgba(255,255,255,.6); font-size: .92rem; }

.product__visuals {
  position: relative;
  height: 360px;
}
.product__comp {
  width: 80%;
  position: absolute;
  bottom: 0; left: 0;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.5));
}
.product__screenshot {
  width: 65%;
  position: absolute;
  top: 0; right: 0;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255,255,255,.1);
}


/* ═══════════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════════ */
.cta-band {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.assets-landingi.com/ELeKc8tv/Group-6.png') center/cover no-repeat;
}
.cta-band__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue-dk) 0%, var(--blue) 100%);
  opacity: .92;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band__icon {
  width: 56px;
  flex-shrink: 0;
  filter: brightness(0) invert(1) opacity(.8);
}
.cta-band__copy { flex: 1; min-width: 200px; }
.cta-band__copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.cta-band__copy p { color: rgba(255,255,255,.75); }


/* ═══════════════════════════════════════════════════════
   PROOF / VIDEO
   ═══════════════════════════════════════════════════════ */
.proof {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}
.proof__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.assets-landingi.com/uc/3925dd93-2576-4b68-a5a2-e4e62829b0a6/pexelsdkomov34803990.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.proof__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,37,56,.8);
}
.proof .container { position: relative; z-index: 2; }
.proof__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.proof__icon {
  width: 44px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1) opacity(.6);
}
.proof__copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.proof__copy p { color: rgba(255,255,255,.7); }
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}


/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════ */
.testimonials {
  padding: var(--section-py) 0;
  background: var(--color-secondary-0);
}
.testimonials__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 3rem;
}
.testimonials__icon { width: 40px; }
.testimonials__header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--blue-dk);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card__stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-card__quote {
  font-size: .98rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-secondary-0);
  flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: .92rem; color: var(--blue-dk); }
.testimonial-card__author span { font-size: .82rem; color: var(--text-muted); }


/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.assets-landingi.com/uc/58aa76a3-ada4-42e7-a2e3-c2491ea0a20e/pexelspaveldanilyuk8442382.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.contact__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,93,147,.9) 0%, rgba(11,37,56,.9) 100%);
}
.contact .container { position: relative; z-index: 2; }
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact__copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.contact__copy p { color: rgba(255,255,255,.7); font-size: 1.05rem; }

.contact__form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.form-group input {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 13px 16px;
  color: #fff;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.form-group input::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
}
.form-note {
  font-size: .85rem;
  text-align: center;
  color: var(--color-primary-1);
  min-height: 1.2em;
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: var(--color-secondary-4);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.footer__copy { font-size: .82rem; color: rgba(255,255,255,.35); }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(11,37,56,.97);
    backdrop-filter: blur(16px);
    padding: 24px 32px 32px;
    gap: 16px;
  }
  .nav__links.open a { color: rgba(255,255,255,.85) !important; font-size: 1.1rem; }
  .nav__burger { display: flex; }

  .product__layout,
  .proof__layout,
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product__visuals { height: 240px; }
  .product__comp { width: 70%; }
  .product__screenshot { width: 60%; }

  .cta-band__inner { flex-direction: column; text-align: center; }
  .value-prop__inner { flex-direction: column; text-align: center; padding: 32px; }

  .hero__scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .features__grid { grid-template-columns: 1fr; }
}
