:root {
  --red: #d11a2a;
  --red-dark: #a8121f;
  --red-deep: #7c0d17;
  --red-light: #fdeaec;
  --red-faint: #fbf3f3;
  --ink: #221d1e;
  --ink-soft: #574e50;
  --ink-mute: #837a7c;
  --paper: #faf8f7;
  --card: #ffffff;
  --line: #e8e0e0;
  --line-strong: #d9cdcd;
  --green: #1e7d4f;
  --green-light: #e6f4ec;
  --amber: #9a6200;
  --amber-light: #fdf3df;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 247, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--red);
  border-radius: 7px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
}

.logo .tld { color: var(--red); }

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.topnav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.topnav a:hover { color: var(--red-dark); text-decoration: none; }

.topnav .nav-cta {
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.topnav .nav-cta:hover { background: var(--red-dark); color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 900px 480px at 85% -10%, var(--red-light) 0%, transparent 60%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, transparent, black 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, transparent 90%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero .lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(209, 26, 42, 0.5);
}
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--red); color: var(--red-dark); }

.btn .os-mark {
  font-size: 18px;
  line-height: 1;
}

.ver {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: middle;
}
.btn-secondary .ver {
  color: var(--muted);
  background: var(--paper-2);
}
.soon {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--amber-light);
  color: var(--amber);
  border: 1px solid rgba(154, 98, 0, 0.25);
  border-radius: 99px;
  padding: 2px 9px;
  margin-left: 4px;
  vertical-align: middle;
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-mute);
}

.mock {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(34, 29, 30, 0.05),
    0 24px 48px -20px rgba(124, 13, 23, 0.22);
  overflow: hidden;
  font-size: 13px;
  animation: mock-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mock-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fdfcfb;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-dot:first-child { background: #e9a2a9; }

.mock-title {
  margin-left: 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-soft);
}

.mock-sync {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 10px;
  border-radius: 99px;
}

.mock-sync .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 125, 79, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(30, 125, 79, 0); }
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  animation: row-in 0.5s ease both;
}
.mock-row:nth-child(3) { animation-delay: 0.25s; }
.mock-row:nth-child(4) { animation-delay: 0.45s; }
.mock-row:nth-child(5) { animation-delay: 0.65s; }
.mock-row:last-child { border-bottom: 0; }

@keyframes row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.rx-no {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  flex-shrink: 0;
}

.rx-patient {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rx-patient .tc {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-mute);
  margin-left: 6px;
}

.tag {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
}
.tag-alert { background: var(--red-light); color: var(--red-dark); }
.tag-warn { background: var(--amber-light); color: var(--amber); }
.tag-ok { background: var(--green-light); color: var(--green); }

section { padding: 88px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 14px;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px 26px;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 60px;
  right: 26px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.features-section {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: rgba(209, 26, 42, 0.35);
  box-shadow: 0 14px 30px -18px rgba(124, 13, 23, 0.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--red-light);
  color: var(--red-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.trust {
  position: relative;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.trust-list li {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
}

.trust-list .shield {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.trust-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--red-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.trust-list p {
  font-size: 14px;
  color: var(--ink-soft);
}

.trust-kvkk {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.download-band {
  background:
    radial-gradient(ellipse 700px 400px at 15% 120%, rgba(209, 26, 42, 0.25) 0%, transparent 60%),
    linear-gradient(135deg, #2b1416 0%, var(--red-deep) 100%);
  color: #fff;
  text-align: center;
  border-top: 1px solid var(--red-deep);
}

.download-band h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 14px;
}

.download-band p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  max-width: 54ch;
  margin: 0 auto 34px;
}

.download-band .cta-row { justify-content: center; }

.download-band .btn-primary {
  background: #fff;
  color: var(--red-deep);
  box-shadow: none;
}
.download-band .btn-primary:hover { background: var(--red-light); color: var(--red-deep); }

.download-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.download-band .btn-secondary:hover { border-color: #fff; color: #fff; }

.download-band .soon {
  background: rgba(255, 255, 255, 0.14);
  color: #ffd9a0;
  border-color: rgba(255, 255, 255, 0.2);
}

.download-band .hero-note { color: rgba(255, 255, 255, 0.6); }

footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 44px 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-meta {
  font-size: 13.5px;
  color: var(--ink-mute);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--red-dark); }

.doc-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.doc-page .eyebrow { margin-bottom: 16px; }

.doc-page h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 18px;
}

.doc-page .doc-lede {
  font-size: 17.5px;
  color: var(--ink-soft);
  margin-bottom: 44px;
}

.doc-page h2 {
  font-size: 21px;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doc-page p { margin-bottom: 16px; color: var(--ink-soft); }

.doc-page ul {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.doc-page ul li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.doc-page ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
}

.doc-page strong { color: var(--ink); }

.doc-callout {
  background: var(--red-faint);
  border: 1px solid rgba(209, 26, 42, 0.18);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.doc-callout strong { color: var(--red-dark); }

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-weight: 700;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock, .mock-row { animation: none; }
  .mock-sync .pulse { animation: none; }
  .btn:hover, .feature:hover { transform: none; }
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 60px;
    padding-bottom: 64px;
  }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .trust-grid { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .topnav a:not(.nav-cta) { display: none; }
  .hero h1 { font-size: 32px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .rx-no { display: none; }
}
