/* OmniFlow — omniflow.integrava.com.tr
   Koyu lacivert üst bölüm (logo beyaz yazılı), açık ve sakin içerik.
   Renkler logodan: OmniFlow mavisi ve camgöbeği. Mono yalnızca gerçek veri için (DICOM etiketleri, dosya adları). */

:root {
  --ink: #0b1a2a;
  --ink-2: #13263a;
  --ink-line: rgba(255, 255, 255, 0.1);
  --on-ink: #e8eef4;
  --on-ink-2: #9fb2c4;

  --paper: #f4f7f9;
  --surface: #ffffff;
  --text: #0b1a2a;
  --text-2: #435567;
  --text-3: #6b7c8c;
  --line: #d9e1e8;

  --flow: #1b6fd6;         /* logodaki "Flow" mavisi */
  --flow-ink: #1559b0;     /* açık zeminde metin kontrastı için */
  --cyan: #1bb4d8;
  --ok: #0f8a5f;

  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--flow-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ── Üst bölüm ─────────────────────────────── */
.top { background: var(--ink); color: var(--on-ink); }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: 22px;
}
.brand img { height: 34px; width: auto; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { color: var(--on-ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; }
.site-header nav .nav-download {
  color: var(--ink); background: #fff; padding: 8px 14px; border-radius: 8px;
}
.site-header nav .nav-download:hover { color: var(--ink); background: #dff3fa; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 600;
  color: #fff;
  max-width: 15ch;
}
.hero .lede { margin-top: 20px; color: var(--on-ink-2); font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 32px; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--on-ink-2); }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 9px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button.primary { background: var(--flow); color: #fff; }
.button.primary:hover { background: #2a7fe6; }
.button.on-ink-link { color: #fff; padding-left: 4px; padding-right: 4px; }
.button.on-ink-link:hover { color: var(--cyan); }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--text-3); }

/* İmza öğesi: rapor → DICOM başlığı */
.transform {
  margin: 0;
  display: grid; grid-template-columns: minmax(120px, 150px) auto minmax(0, 1fr); align-items: center; gap: 14px;
}
.report-sheet {
  background: #fff; border-radius: 6px; padding: 16px 14px 18px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
  aspect-ratio: 0.72; display: flex; flex-direction: column; gap: 8px;
}
.report-sheet .sheet-title { font: 600 11px/1.2 var(--sans); color: var(--text-2); }
.report-sheet .sheet-lines span { display: block; height: 5px; border-radius: 3px; background: #e3e9ee; margin-top: 6px; }
.report-sheet .sheet-lines span:nth-child(2) { width: 70%; }
.report-sheet .sheet-lines span:nth-child(3) { width: 84%; }
.report-sheet svg { width: 100%; height: auto; margin-top: 6px; }
.report-sheet .sheet-name { margin-top: auto; font: 500 10px/1.3 var(--mono); color: var(--text-3); }

.transform-arrow { color: var(--cyan); width: 28px; }
.transform-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dicom-card {
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 16px 18px; font-family: var(--mono); font-size: 13px;
}
.dicom-card .card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--sans); font-size: 13px; color: var(--on-ink-2);
  padding-bottom: 10px; border-bottom: 1px solid var(--ink-line); margin-bottom: 8px;
}
.dicom-card .card-head strong { color: #fff; font-weight: 600; }
.dicom-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 7px; }
.dicom-card dt { color: var(--cyan); white-space: nowrap; }
.dicom-card dd { margin: 0; color: var(--on-ink); overflow-wrap: break-word; min-width: 0; }
.dicom-card dd small { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--on-ink-2); }
.dicom-card .match {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ink-line);
  display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13px; color: var(--on-ink);
}
.dicom-card .match::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; flex: none;
}

/* Tek seferlik açılış: etiketler sırayla dolar */
@media (prefers-reduced-motion: no-preference) {
  .dicom-card dl > * { opacity: 0; animation: tag-in .35s ease forwards; }
  .dicom-card dl > :nth-child(1), .dicom-card dl > :nth-child(2) { animation-delay: .35s; }
  .dicom-card dl > :nth-child(3), .dicom-card dl > :nth-child(4) { animation-delay: .6s; }
  .dicom-card dl > :nth-child(5), .dicom-card dl > :nth-child(6) { animation-delay: .85s; }
  .dicom-card dl > :nth-child(7), .dicom-card dl > :nth-child(8) { animation-delay: 1.1s; }
  .dicom-card dl > :nth-child(9), .dicom-card dl > :nth-child(10) { animation-delay: 1.35s; }
  .dicom-card .match { opacity: 0; animation: tag-in .4s ease 1.75s forwards; }
  @keyframes tag-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

/* ── İçerik ─────────────────────────────── */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.section-head p { margin-top: 14px; color: var(--text-2); }

/* Akış: gerçekten sıralı bir süreç, numaralar burada anlamlı */
.flow {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  position: relative;
}
.flow::before {
  /* İlk ve son dairenin merkezleri arasında: 4 sütun, 3 × 28px boşluk */
  content: ""; position: absolute; left: 18px; right: calc((100% - 84px) / 4 - 18px); top: 17px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--flow));
}
.flow li { position: relative; counter-increment: step; padding-top: 54px; }
.flow li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--flow); color: var(--flow-ink);
  font: 600 15px/1 var(--sans);
}
.flow h3 { font-size: 1.1rem; }
.flow p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }

/* Entegrasyonlar: sade satırlar */
.systems { margin: 0; border-top: 1px solid var(--line); }
.systems > div {
  display: grid; grid-template-columns: minmax(180px, 0.9fr) 2fr; gap: 8px 32px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.systems dt { font-weight: 600; }
.systems dd { margin: 0; color: var(--text-2); }

/* İki sütun: ilkeler */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.principles h3 { font-size: 1.1rem; padding-top: 16px; border-top: 3px solid var(--flow); }
.principles p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }

/* İndirme */
.download {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start;
}
.download h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.download .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.download .fine { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.requirements { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; }
.requirements > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.requirements > div:last-child { border-bottom: 0; }
.requirements dt { color: var(--text-3); }
.requirements dd { margin: 0; text-align: right; font-weight: 500; }

.notice {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--radius);
  background: #eaf3fd; border: 1px solid #c9def7; color: var(--text); font-size: 15px;
}
.notice strong { display: block; margin-bottom: 4px; }

/* Kurulum rehberi (download.html) */
.page-head { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.page-head p { margin-top: 16px; color: var(--on-ink-2); max-width: 56ch; font-size: 1.08rem; }
.page-head .hero-actions { margin-top: 28px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 760px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 32px 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--flow); color: var(--flow-ink);
  font: 600 14px/1 var(--sans);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--line);
}
.steps h3 { font-size: 1.08rem; }
.steps p { margin-top: 6px; color: var(--text-2); }

/* ── Alt bilgi ─────────────────────────────── */
.site-footer { background: var(--ink); color: var(--on-ink-2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; }
.site-footer a { color: var(--on-ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── Mobil ─────────────────────────────── */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
  .transform { max-width: 620px; }
}
@media (max-width: 900px) {
  .download { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .flow::before { display: none; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header nav a:not(.nav-download) { display: none; }
  .transform { grid-template-columns: 1fr; }
  .report-sheet { display: none; }
  .transform-arrow { display: none; }
  .flow { grid-template-columns: 1fr; }
  .systems > div { grid-template-columns: 1fr; }
  .requirements > div { flex-direction: column; gap: 2px; }
  .requirements dd { text-align: left; }
}
