:root {
  --background: #f8faf8;
  --surface: #ffffff;
  --surface-muted: #f1f5f2;
  --text: #17221d;
  --text-soft: #66736c;
  --border: #dfe7e2;

  --primary: #0d5c47;
  --primary-dark: #084535;
  --primary-light: #dff1e9;

  --blue-light: #e8f0ff;
  --blue-text: #3d5f9f;

  --yellow-light: #fff3d8;
  --yellow-text: #906719;

  --shadow-small:
    0 8px 28px rgba(19, 49, 38, 0.08);

  --shadow-large:
    0 30px 80px rgba(19, 49, 38, 0.15);

  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;

  --font-body: "DM Sans", sans-serif;
  --font-display: "Playfair Display", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 248, 0.88);
  border-bottom: 1px solid rgba(223, 231, 226, 0.8);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}

.brand-logo{
  display:flex;
  align-items:center;
  gap:4px;
}

.brand-rc{
  font-family: var(--font-display);
  font-size:28px;
  font-weight:600;
  color:#1B2A24;
  letter-spacing:-1px;
}

.brand-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#4C7DFF;
  margin-top:10px;
}

.brand-name {
  font-size: 20px;
  letter-spacing: -0.4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav > a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease;
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.mobile-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

/* Buttons */

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(13, 92, 71, 0.22);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-small {
  padding: 11px 18px;
  color: white;
  background: var(--primary);
}

.button-light {
  color: var(--primary-dark);
  background: white;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(5px);
  pointer-events: none;
}

.hero-decoration-left {
  width: 390px;
  height: 390px;
  left: -210px;
  top: 180px;
  background: rgba(184, 222, 205, 0.28);
}

.hero-decoration-right {
  width: 450px;
  height: 450px;
  right: -240px;
  top: 50px;
  background: rgba(218, 232, 221, 0.45);
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 790px;
  margin: 0 auto 72px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -3px;
}

.hero-description {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.text-link {
  position: relative;
  font-weight: 600;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--text);
}

.hero-note {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46a87e;
  box-shadow: 0 0 0 5px rgba(70, 168, 126, 0.13);
}

/* Browser and dashboard */

.product-preview {
  animation: rise-in 900ms ease both;
}

.browser-frame {
  overflow: hidden;
  border: 1px solid rgba(211, 222, 215, 0.9);
  border-radius: var(--radius-large);
  background: white;
  box-shadow: var(--shadow-large);
}

.browser-topbar {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #f7f8f7;
}

.browser-controls {
  display: flex;
  gap: 7px;
}

.browser-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d8d4;
}

.browser-controls span:first-child {
  background: #e9a3a0;
}

.browser-controls span:nth-child(2) {
  background: #e9cf8b;
}

.browser-controls span:nth-child(3) {
  background: #99c9aa;
}

.browser-address {
  margin: 0 auto;
  padding: 5px 42px;
  border-radius: 999px;
  color: #89938d;
  background: #ecefed;
  font-size: 10px;
}

.dashboard {
  min-height: 590px;
  display: grid;
  grid-template-columns: 185px 1fr;
}

.dashboard-sidebar {
  padding: 24px 17px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e7ece8;
  background: #fafcfb;
}

.dashboard-logo {
  padding: 0 7px 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-logo-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--primary);
  font-family: var(--font-display);
}

.dashboard-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-nav-item {
  padding: 10px 11px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #748079;
  font-size: 11px;
  font-weight: 500;
}

.dashboard-nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.dashboard-settings {
  margin-top: auto;
}

.nav-symbol {
  width: 15px;
  text-align: center;
  font-size: 13px;
}

.dashboard-main {
  min-width: 0;
  padding: 30px;
  background: #f6f8f7;
}

.dashboard-header {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dashboard-kicker {
  margin: 0 0 2px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.dashboard-header h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: -0.5px;
}

.dashboard-header p {
  margin: 4px 0 0;
  color: #89938d;
  font-size: 11px;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-button,
.user-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e6e2;
  border-radius: 50%;
  background: white;
  font-size: 10px;
}

.user-avatar {
  color: white;
  border: 0;
  background: var(--primary);
  font-weight: 700;
}

.metric-grid {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.metric-card {
  padding: 17px;
  border: 1px solid #e4e9e6;
  border-radius: 13px;
  background: white;
  box-shadow: 0 5px 15px rgba(30, 58, 47, 0.03);
}

.metric-card-top {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  color: #7c8982;
  font-size: 9px;
  font-weight: 600;
}

.metric-icon {
  color: var(--primary);
}

.metric-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.metric-card small {
  color: #99a39e;
  font-size: 9px;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(180px, 0.85fr);
  gap: 14px;
}

.conversations-panel,
.summary-panel {
  border: 1px solid #e4e9e6;
  border-radius: 14px;
  background: white;
}

.conversations-panel {
  overflow: hidden;
}

.panel-header {
  padding: 18px 18px 14px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #edf1ee;
}

.panel-header h3,
.summary-heading h3 {
  margin: 0;
  font-size: 12px;
}

.panel-header p,
.summary-heading p {
  margin: 2px 0 0;
  color: #96a09a;
  font-size: 9px;
}

.panel-header button {
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}

.conversation-row {
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #eff2f0;
}

.conversation-row:last-child {
  border-bottom: 0;
}

.patient-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 9px;
  font-weight: 700;
}

.conversation-details strong {
  display: block;
  font-size: 10px;
}

.conversation-details span {
  display: block;
  color: #8d9792;
  font-size: 9px;
}

.conversation-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}

.status {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 700;
}

.status-completed {
  color: var(--primary);
  background: var(--primary-light);
}

.status-progress {
  color: var(--blue-text);
  background: var(--blue-light);
}

.status-waiting {
  color: var(--yellow-text);
  background: var(--yellow-light);
}

.conversation-meta time {
  color: #9ba49f;
  font-size: 8px;
}

.summary-panel {
  padding: 18px;
}

.summary-heading {
  margin-bottom: 18px;
  display: flex;
  gap: 9px;
}

.summary-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
}

.summary-stat {
  margin-bottom: 18px;
  padding: 13px;
  border-radius: 10px;
  background: #f5f8f6;
}

.summary-stat span {
  display: block;
  color: #89938d;
  font-size: 8px;
}

.summary-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.summary-progress {
  margin-bottom: 13px;
}

.progress-row {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  color: #7f8b85;
  font-size: 8px;
}

.progress-row strong {
  color: var(--text);
}

.progress-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edea;
}

.progress-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--primary);
}

.time-saved {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf1ee;
}

.time-saved span {
  display: block;
  color: #8b9590;
  font-size: 8px;
}

.time-saved strong {
  display: block;
  margin-top: 3px;
  color: var(--primary);
  font-size: 14px;
}

/* Benefits */

.benefit-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card {
  padding: 25px 21px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.75);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-small);
}

.benefit-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.benefit-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

/* General sections */

.section-heading {
  max-width: 680px;
}

.section-heading.centered {
  margin: 0 auto 55px;
  text-align: center;
}

.section-heading h2,
.about-intro h2,
.contact-container h2,
.modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.8px;
}

.section-heading p {
  color: var(--text-soft);
  font-size: 17px;
}

/* Workflow */

.how-it-works {
  background: white;
}

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

.workflow-card {
  position: relative;
  padding: 35px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.workflow-number {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.workflow-card h3 {
  margin: 35px 0 12px;
  font-size: 19px;
}

.workflow-card p {
  margin: 0;
  color: var(--text-soft);
}

/* About */

.about-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.about-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.about-content {
  color: var(--text-soft);
  font-size: 17px;
}

.about-content p {
  margin: 0 0 24px;
}

.about-content .about-lead {
  color: var(--text);
  font-size: 22px;
  line-height: 1.55;
}

.about-content blockquote {
  margin: 40px 0;
  padding: 28px 30px;
  border-left: 3px solid var(--primary);
  color: var(--text);
  background: white;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.4;
}

/* Contact */

.contact-section {
  color: white;
  background: var(--primary);
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.contact-container > div {
  max-width: 740px;
}

.eyebrow-light {
  color: #b9dfd1;
}

.contact-container p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
}

/* Footer */

.site-footer {
  padding: 34px 0;
  color: var(--text-soft);
  background: white;
  font-size: 13px;
}

.footer-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  margin-right: auto;
  color: var(--text);
}

.site-footer a:not(.brand):hover {
  color: var(--primary);
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 20px;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: rgba(10, 24, 18, 0.58);
  backdrop-filter: blur(8px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.modal-overlay.open {
  visibility: visible;
  opacity: 1;
}

.modal {
  position: relative;
  width: min(650px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 42px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-large);
  transform: translateY(16px);
  transition: transform 180ms ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--text-soft);
  background: var(--surface-muted);
  font-size: 24px;
}

.modal > p {
  color: var(--text-soft);
}

.demo-form {
  margin-top: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-form label {
  margin-bottom: 17px;
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: white;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.demo-form textarea {
  resize: vertical;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 92, 71, 0.1);
}

.form-submit {
  width: 100%;
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--primary);
  text-align: center;
  font-size: 13px;
}

/* Animation */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 22px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-small);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-button {
    display: block;
  }

  .dashboard {
    grid-template-columns: 150px 1fr;
  }

  .dashboard-main {
    padding: 22px;
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    display: none;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-intro {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard {
    grid-template-columns: 1fr;
    min-width: 720px;
  }

  .browser-frame {
    overflow-x: auto;
  }

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

  .benefit-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-brand {
    margin-right: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal {
    padding: 36px 22px 25px;
  }
}