/* -----------------------------------------------------------
   Clinaflow — landing page styles
----------------------------------------------------------- */

:root {
  --bg: #f7f8f6;
  --bg-elev: #ffffff;
  --ink: #0b1f24;
  --ink-2: #3a4a50;
  --ink-3: #6b7a80;
  --line: rgba(11, 31, 36, 0.08);
  --line-2: rgba(11, 31, 36, 0.14);
  --brand: #0ea5a7;
  --brand-ink: #0b5e60;
  --brand-soft: #e6f5f4;
  --accent: #f5f0e6;
  --dark: #0b1f24;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 36, 0.04), 0 1px 1px rgba(11, 31, 36, 0.03);
  --shadow-md: 0 10px 24px -12px rgba(11, 31, 36, 0.18), 0 2px 6px rgba(11, 31, 36, 0.06);
  --shadow-lg: 0 40px 80px -30px rgba(11, 31, 36, 0.35), 0 12px 30px -20px rgba(11, 31, 36, 0.25);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --container: 1160px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------------------------------------
   Background decor
----------------------------------------------------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11,31,36,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,31,36,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  z-index: 0;
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
}
.bg-glow--a {
  top: -140px; left: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(14,165,167,0.38), transparent 60%);
}
.bg-glow--b {
  top: 120px; right: -180px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(245,205,120,0.28), transparent 60%);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* -----------------------------------------------------------
   Nav
----------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(247, 248, 246, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
  z-index: 30;
}
.nav.is-scrolled {
  border-color: var(--line);
  background: rgba(247, 248, 246, 0.85);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
}
.brand__word {
  font-size: 17px;
  letter-spacing: -0.015em;
}

.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* -----------------------------------------------------------
   Buttons
----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 16px -8px rgba(11,31,36,0.5);
}
.btn--primary:hover {
  background: #0f2a30;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 24px -10px rgba(11,31,36,0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: rgba(11,31,36,0.04);
  border-color: rgba(11,31,36,0.22);
}

.btn--lg {
  padding: 14px 20px;
  font-size: 15px;
  border-radius: 12px;
}

/* -----------------------------------------------------------
   Hero
----------------------------------------------------------- */
.hero {
  padding: 80px 0 40px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(14, 165, 167, 0.08);
  color: var(--brand-ink);
  border: 1px solid rgba(14, 165, 167, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(14,165,167,0.18);
}

.hero__title {
  margin: 22px auto 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 900px;
}
.hero__title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}

.hero__sub {
  max-width: 680px;
  margin: 0 auto;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 48px;
  flex-wrap: wrap;
}

.hero__proof {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 56px;
}
.logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.logo-chip {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font-weight: 500;
  color: var(--ink-2);
  font-size: 13px;
}

/* Mock dashboard */
.mock {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.mock__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}
.mock__chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e2e6e3;
}
.mock__chrome span:nth-child(1) { background: #ff6057; }
.mock__chrome span:nth-child(2) { background: #ffbd2e; }
.mock__chrome span:nth-child(3) { background: #27c93f; }
.mock__url {
  margin-left: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.mock__body {
  display: grid;
  grid-template-columns: 212px 1fr;
  min-height: 440px;
}
.mock__side {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  background: #fbfcfb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}
.mock__brand .brand__mark { width: 22px; height: 22px; border-radius: 7px; }
.mock__navitem {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: default;
}
.mock__navitem--active {
  background: rgba(14,165,167,0.1);
  color: var(--brand-ink);
  font-weight: 500;
}

.mock__main { padding: 22px; }

.mock__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.stat__label {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}
.stat__value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.stat__delta {
  margin-top: 4px;
  font-size: 12px;
  color: #0a8a68;
  font-weight: 500;
}
.stat__delta--down { color: #2b6cb0; }

.mock__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card__head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(11,31,36,0.06);
  color: var(--ink-2);
  font-weight: 500;
}
.tag--green {
  background: rgba(14,165,167,0.12);
  color: var(--brand-ink);
}

.queue {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.queue li {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.queue li:nth-child(odd) { background: #fbfcfb; }
.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.q-name { font-weight: 500; }
.q-kind { color: var(--ink-3); font-size: 12px; }
.q-time { color: var(--ink-3); font-size: 12px; }

.route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
}
.route__step {
  padding: 6px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--ink-3);
  background: #fff;
}
.route__step--done {
  border-color: rgba(14,165,167,0.3);
  color: var(--brand-ink);
  background: rgba(14,165,167,0.08);
}
.route__step--active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}
.route__bar {
  height: 2px;
  background: linear-gradient(to right, rgba(14,165,167,0.5), rgba(14,165,167,0.1));
  border-radius: 2px;
}
.route__meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

/* -----------------------------------------------------------
   Section common
----------------------------------------------------------- */
.section {
  padding: 96px 0;
  position: relative;
}
.section--tint {
  background:
    linear-gradient(180deg, rgba(14,165,167,0.05), rgba(14,165,167,0) 60%),
    #fcfcfa;
  border-block: 1px solid var(--line);
}
.section--dark {
  background: var(--dark);
  color: #e7ecec;
}
.section--cta {
  padding: 64px 0 100px;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-ink);
  font-weight: 600;
  margin: 0 0 12px;
}
.kicker--light { color: rgba(231, 236, 236, 0.7); }

h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 16px;
}
.h-light { color: #fff; }

.lede {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0;
}
.lede--light { color: rgba(231, 236, 236, 0.72); }

/* -----------------------------------------------------------
   Features
----------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.feature__icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: 10px;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* -----------------------------------------------------------
   Network
----------------------------------------------------------- */
.network {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.network h2 { margin-top: 0; }
.network .lede { margin-bottom: 24px; }

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 15px;
}
.check {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(14,165,167,0.14);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
  flex: none;
  margin-top: 1px;
}

.network__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.network__map {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: #fbfcfb;
}
.network__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 4px;
}
.network__stats .big {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.network__stats .small {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* -----------------------------------------------------------
   Steps
----------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step__num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--brand-ink);
  font-style: italic;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

/* -----------------------------------------------------------
   Compliance
----------------------------------------------------------- */
.compliance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px;
  color: #dfe6e6;
}
.badge strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}
.badge span {
  color: rgba(231, 236, 236, 0.6);
  font-size: 13.5px;
}

/* -----------------------------------------------------------
   CTA / Contact form
----------------------------------------------------------- */
.cta__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(14,165,167,0.22), transparent 60%);
  pointer-events: none;
}
.cta__card > * { position: relative; }
.cta__card h2 { margin-top: 14px; }
.cta__card .lede { max-width: 520px; margin: 0 auto 24px; }

.form {
  display: flex;
  gap: 8px;
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto 10px;
}
.form input {
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input::placeholder { color: var(--ink-3); }
.form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14,165,167,0.15);
}
.form.is-error input {
  border-color: #d9545b;
  box-shadow: 0 0 0 4px rgba(217,84,91,0.12);
}
.form.is-sent input { opacity: 0.6; }
.form.is-sent button { background: #0a8a68; }

.form__meta {
  color: var(--ink-3);
  font-size: 13.5px;
  margin: 14px 0 0;
}
.form__meta a {
  color: var(--brand-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__legal {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.footer__links {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.footer__links a:hover { color: var(--ink); }

/* -----------------------------------------------------------
   Reveal on scroll
----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------
   Responsive
----------------------------------------------------------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .network, .compliance { grid-template-columns: 1fr; gap: 40px; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__row { grid-template-columns: repeat(2, 1fr); }
  .mock__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .section { padding: 72px 0; }
  .features, .steps, .badges { grid-template-columns: 1fr; }
  .nav__cta .btn--ghost { display: none; }
  .cta__card { padding: 40px 24px; }
  .form { flex-direction: column; }
  .network__stats { grid-template-columns: 1fr 1fr; }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
