/* ============ winrx.ai — clinical SaaS, blue/teal ============ */

:root {
  --navy: #10293A;
  --navy-deep: #0F2E4A;
  --navy-footer: #0B2233;
  --blue: #0B62B0;
  --teal: #0E8F8C;
  --teal-light: #7FD1CD;
  --teal-bg: #E5F4F3;
  --teal-border: #C6E6E4;
  --blue-bg: #E9F2FA;
  --body: #4A6474;
  --slate: #3D5A6B;
  --muted: #7A93A1;
  --border: #E2ECF2;
  --border-soft: #DCE7EE;
  --wash: #F4F9FC;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  font-family: 'Public Sans', system-ui, sans-serif;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

/* Centered content column — matches the 1280px design frame */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 8px;
  text-align: center;
  transition: filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn-lg { font-size: 15.5px; padding: 14px 26px; }
.btn-primary { color: #FFFFFF; background: var(--blue); }
.btn-outline {
  color: var(--blue);
  background: #FFFFFF;
  border: 1.5px solid #BFD6E4;
  padding: 13px 26px;
}
.btn-white { color: var(--navy-deep); background: #FFFFFF; }
.btn-outline-light {
  color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 13px 26px;
}
.btn-ghost { color: var(--blue); background: transparent; }

.text-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
}
.eyebrow-light {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-light);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 22px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
}
.main-nav > a { color: inherit; text-decoration: none; }
.main-nav > a:hover { color: var(--blue); }
.nav-mobile-actions { display: none; }

.header-actions { display: flex; gap: 12px; align-items: center; }
.header-demo {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 10px 16px;
}
.header-register-mobile { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--wash) 0%, #FFFFFF 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(400px, 520px);
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: pretty;
}
.hero-copy > p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 520px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 6px; }
.hero-trust { font-size: 13px; color: var(--muted); }

/* Product preview */
.preview-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(16, 58, 88, 0.10);
  overflow: hidden;
}
.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid #E9F0F5;
  background: #F7FAFC;
}
.preview-titlebar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D9E5EC;
}
.preview-title { margin-left: 10px; font-size: 11.5px; color: var(--muted); }
.preview-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 300px;
}
.preview-sidebar {
  border-right: 1px solid #E9F0F5;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FBFDFE;
}
.preview-sidebar .bar { height: 10px; background: var(--border); border-radius: 4px; }
.preview-sidebar .bar.active { background: var(--blue); opacity: .85; }
.preview-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.preview-tiles { display: flex; gap: 10px; }
.tile {
  flex: 1;
  height: 64px;
  background: #F2F7FB;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
.tile-teal { background: #F0F7F7; border-color: #D7EAE9; }
.line { height: 9px; background: #EAF1F6; border-radius: 4px; }
.line-title { height: 12px; background: #CFDEE8; }
.preview-buttons { display: flex; gap: 10px; margin-top: 6px; }
.pbtn { height: 32px; width: 100px; background: #EAF1F6; border-radius: 6px; }
.pbtn-teal { width: 120px; background: var(--teal); opacity: .9; }

/* ---------- Webinar banner ---------- */
.webinar-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy-deep);
  border-radius: 14px;
  padding: 26px 32px;
  color: #FFFFFF;
}
.webinar-info { display: flex; align-items: center; gap: 22px; }
.webinar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 64px;
  height: 64px;
  background: #FFFFFF;
  border-radius: 10px;
  color: var(--navy-deep);
}
.webinar-date .month {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.webinar-date .day { font-size: 24px; font-weight: 800; line-height: 1; }
.webinar-text { display: flex; flex-direction: column; gap: 5px; }
.webinar-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.webinar-meta { font-size: 13.5px; color: #A9C2D4; }
.webinar-banner .btn { flex: none; font-size: 15px; padding: 13px 24px; }

/* ---------- Features ---------- */
.features-inner {
  padding-top: 80px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-head p { font-size: 16px; line-height: 1.6; color: var(--body); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
}
.feature-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon.blue { background: var(--blue-bg); }
.feature-icon.teal { background: var(--teal-bg); }
.feature-text { display: flex; flex-direction: column; gap: 12px; }
.feature-title { font-size: 17px; font-weight: 700; color: var(--navy); }
.feature-card p { font-size: 14px; line-height: 1.55; color: var(--body); }

/* ---------- Tutorials ---------- */
.tutorials { background: var(--wash); }
.tutorials-inner {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tutorials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.tutorials-head > div { display: flex; flex-direction: column; gap: 10px; }
.tutorials-head h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.tutorials-head .text-link { flex: none; }

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tutorial-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tutorial-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tutorial-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tutorial-tags { display: flex; gap: 8px; font-size: 11.5px; font-weight: 600; }
.tag { padding: 3px 8px; border-radius: 999px; }
.tag-teal { color: var(--teal); background: var(--teal-bg); }
.tag-blue { color: var(--blue); background: var(--blue-bg); }
.duration { color: var(--muted); padding: 3px 0; }
.tutorial-title { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.tutorial-desc { font-size: 13px; line-height: 1.5; color: var(--body); }

/* ---------- Partners + Support ---------- */
.network-inner {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.network-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FFFFFF;
}
.network-card h3 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.network-card p { font-size: 14.5px; line-height: 1.6; color: var(--body); }
.network-card-teal { border-color: #D7EAE9; background: #F0F9F8; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
  background: #F2F7FB;
  border: 1px solid var(--border-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.network-card .text-link { margin-top: 4px; }

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--teal-border);
  border-radius: 9px;
  padding: 12px 16px;
}
.search-box svg { flex: none; }
.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy);
  background: transparent;
}
.search-box input::placeholder { color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta { padding-bottom: 72px; }
.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  background: var(--navy-deep);
  border-radius: 16px;
  padding: 56px 48px;
}
.cta-box h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  max-width: 560px;
  text-wrap: pretty;
}
.cta-box p { font-size: 16px; color: #A9C2D4; max-width: 480px; }
.cta-buttons { display: flex; gap: 14px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-footer);
  color: #FFFFFF;
}
.footer-inner {
  padding-top: 48px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.logo-light img { height: 20px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: #8FA9BB;
  max-width: 300px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.footer-heading { font-weight: 700; color: #FFFFFF; margin-bottom: 2px; }
.footer-col a { color: #8FA9BB; text-decoration: none; }
.footer-col a:hover { color: #FFFFFF; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #6E8CA0;
}
.footer-legal p { line-height: 1.6; max-width: 880px; }

/* ============ Responsive ============ */

/* Tablet — keep the desktop composition as long as possible */
@media (max-width: 960px) {
  .container { padding: 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .preview-card { max-width: 640px; }
  .hero h1 { font-size: 44px; }
  .feature-grid, .tutorial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }

  /* Header → mobile */
  .header-inner { height: 60px; }
  .logo img { height: 19px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(16, 58, 88, 0.10);
  }
  .main-nav.open { display: flex; }
  .main-nav > a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--wash);
    font-size: 15px;
  }
  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 20px;
  }
  .header-demo, .header-register { display: none; }
  .header-register-mobile {
    display: inline-block;
    font-size: 13.5px;
    padding: 9px 14px;
    border-radius: 7px;
  }
  .menu-toggle { display: flex; }

  /* Hero */
  .hero-inner { padding-top: 40px; padding-bottom: 44px; gap: 18px; }
  .hero h1 { font-size: 33px; line-height: 1.12; letter-spacing: -0.02em; }
  .hero-copy { gap: 18px; }
  .hero-copy > p { font-size: 15.5px; }
  .hero-ctas { flex-direction: column; gap: 10px; margin-top: 4px; }
  .hero-ctas .btn { font-size: 15px; padding: 14px 24px; }
  .pill { font-size: 11.5px; padding: 5px 11px; }
  .preview-card { display: none; }

  /* Webinar */
  .webinar-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    border-radius: 12px;
    padding: 22px;
  }
  .webinar-info { gap: 14px; }
  .webinar-date { width: 52px; height: 52px; border-radius: 9px; }
  .webinar-date .month { font-size: 10px; }
  .webinar-date .day { font-size: 20px; }
  .eyebrow-light { font-size: 10.5px; }
  .webinar-title { font-size: 15px; line-height: 1.3; }
  .webinar-meta { font-size: 12px; }
  .webinar-banner .btn { font-size: 14px; padding: 12px; border-radius: 7px; }

  /* Features */
  .features-inner { padding-top: 48px; padding-bottom: 48px; gap: 24px; }
  .section-head { gap: 8px; }
  .section-head h2 { font-size: 25px; }
  .eyebrow { font-size: 12px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card {
    flex-direction: row;
    gap: 14px;
    padding: 18px;
    border-radius: 11px;
  }
  .feature-icon { width: 38px; height: 38px; border-radius: 8px; }
  .feature-text { gap: 4px; }
  .feature-title { font-size: 15px; }
  .feature-card p { font-size: 13px; line-height: 1.5; }

  /* Tutorials */
  .tutorials-inner { padding-top: 40px; padding-bottom: 40px; gap: 20px; }
  .tutorials-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tutorials-head h2 { font-size: 24px; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .tutorial-thumb { height: 120px; }

  /* Network */
  .network-inner { grid-template-columns: 1fr; padding-top: 8px; padding-bottom: 48px; }
  .network-card { padding: 24px; }
  .network-card h3 { font-size: 20px; }

  /* CTA */
  .cta { padding-bottom: 40px; }
  .cta-box { padding: 32px 24px; border-radius: 14px; gap: 14px; }
  .cta-box h2 { font-size: 22px; }
  .cta-box p { font-size: 14px; }
  .cta-buttons { flex-direction: column; width: 100%; gap: 10px; margin-top: 4px; }
  .cta-buttons .btn { font-size: 14.5px; padding: 13px; }

  /* Footer */
  .footer-inner { padding-top: 32px; padding-bottom: 24px; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { font-size: 11.5px; }
}
