/* Medician AI — tanıtım sayfası
   Renkler logodan: lacivert #021632, arduvaz #3a4b64, mavi geçiş #0037aa → #0184f3 → #00bef9. */

:root {
  --navy: #021632;
  --navy-2: #0a2348;
  --slate: #3a4b64;
  --muted: #6b7a90;
  --line: #dfe6ef;
  --ivory: #fbfaf7;
  --paper: #ffffff;
  --mist: #f3f6fa;
  --blue-deep: #0037aa;
  --blue: #0184f3;
  --blue-light: #00bef9;
  --gold: #b08d57;
  --success: #1f9d61;
  --danger: #c4373d;

  --brand-gradient: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-light) 100%);

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 60px -28px rgba(2, 22, 50, .28);
  --shadow-card: 0 10px 30px -14px rgba(2, 22, 50, .22);

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Cormorant varsayılan olarak eski stil rakam kullanır; "%100" "%IOO" gibi okunuyordu. */
  font-variant-numeric: lining-nums;
}

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

/* Bileşenlerin display değerleri (flex/grid) hidden niteliğini ezmesin. */
[hidden] { display: none !important; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

h1, h2, h3 { color: var(--navy); margin: 0; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { margin: 0; }

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.eyebrow-light { color: #d9c29a; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(2, 22, 50, .55);
}
.btn-primary:hover { background: var(--navy-2); color: #fff; box-shadow: 0 16px 30px -12px rgba(1, 132, 243, .45); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(2, 22, 50, .22);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { color: var(--blue-deep); box-shadow: 0 16px 34px -14px rgba(0, 190, 249, .6); }

.btn-small { min-height: 42px; padding: 0 20px; font-size: .92rem; }

.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(2, 22, 50, .4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand img { width: 196px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a:not(.btn) {
  color: var(--slate);
  font-weight: 500;
  font-size: .96rem;
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:not(.btn):hover { color: var(--navy); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px; height: 2px;
  margin: 4px auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-of-type { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type { transform: translateY(-3px) rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 72px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(0, 190, 249, .10), transparent 60%),
    radial-gradient(700px 420px at 10% 90%, rgba(0, 55, 170, .06), transparent 60%),
    var(--ivory);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
}

.lead {
  max-width: 34em;
  margin-top: 26px;
  font-size: 1.12rem;
  color: var(--slate);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 52px 0 0;
  max-width: 34em;
  border-top: 1px solid var(--line);
}
.hero-facts div { padding: 20px 18px 0 0; }
.hero-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts dt {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
}
.hero-facts dd { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.hero-facts dd a { color: inherit; text-decoration: underline; text-decoration-color: rgba(176, 141, 87, .6); text-underline-offset: 3px; }
.hero-facts dd a:hover { color: var(--navy); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.hero-rings span {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid rgba(1, 132, 243, .16);
  border-radius: 50%;
}
.hero-rings span:nth-child(1) { width: 100%; height: 100%; }
.hero-rings span:nth-child(2) { width: 76%; height: 76%; border-color: rgba(1, 132, 243, .22); }
.hero-rings span:nth-child(3) { width: 52%; height: 52%; border-color: rgba(176, 141, 87, .35); }

.hero-emblem {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44%;
  height: 44%;
  display: grid;
  place-items: center;
  border-radius: 32%;
  background: #fff;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(2, 22, 50, .04);
}
.hero-emblem img { width: 78%; }

.hero-wave {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: var(--shadow-card);
}
.hero-wave i {
  display: block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand-gradient);
  animation: wave 1.1s ease-in-out infinite;
}
.hero-wave i:nth-child(2) { animation-delay: -.2s; height: 20px; }
.hero-wave i:nth-child(3) { animation-delay: -.45s; height: 24px; }
.hero-wave i:nth-child(4) { animation-delay: -.1s; height: 18px; }
.hero-wave i:nth-child(5) { animation-delay: -.6s; height: 22px; }
.hero-wave i:nth-child(6) { animation-delay: -.3s; height: 16px; }
.hero-wave i:nth-child(7) { animation-delay: -.75s; height: 12px; }

@keyframes wave {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}

.hero-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(2, 22, 50, .05);
  animation: float 7s ease-in-out infinite;
}
.hero-chip strong { color: var(--navy); font-size: .98rem; }
.hero-chip span { color: var(--muted); font-size: .8rem; }
.hero-chip-a { top: 9%; left: -2%; }
.hero-chip-b { top: 22%; right: -4%; animation-delay: -2.4s; }
.hero-chip-c { bottom: 12%; left: 4%; animation-delay: -4.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections */

/* Less room above than below: the eyebrow heading at the top of each section sat too far from
   the previous section, whose own bottom padding already separates the two. */
.section { padding-block: clamp(48px, 6vw, 80px) clamp(72px, 10vw, 132px); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 88px);
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head-left { margin: 0; text-align: left; }
.section-head-left .eyebrow { justify-content: flex-start; }

.section-lead {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--slate);
}

/* Features */

.features { background: var(--paper); }

.feature {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature-reverse .feature-visual { order: 2; }

.feature-visual {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--mist);
}
.feature-visual img { width: 100%; }

.feature-index {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.35rem);
  font-weight: 600;
  line-height: 1.12;
}
.feature-copy p { margin-top: 18px; }
.feature-copy em { font-style: italic; color: var(--navy); }

.checklist {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: .98rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%230184f3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    #eaf4ff;
}

/* Performance & architecture */

.performance { background: var(--ivory); }

.perf-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.perf-subhead {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.runtime-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.runtime-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding-bottom: 28px;
}
.runtime-step:last-child { padding-bottom: 0; }
/* Connector between the numbered markers. */
.runtime-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--line), var(--line)) center / 2px 100% no-repeat;
}
.runtime-marker {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}
.runtime-step:first-child .runtime-marker {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.runtime-step h4 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
}
.runtime-step h4 small {
  margin-left: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}
.runtime-step p { margin-top: 6px; font-size: .96rem; }

.perf-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: #eef6ff;
  border: 1px solid #d5e7fb;
  font-size: .94rem;
}
.perf-note strong { color: var(--navy); }

.perf-card {
  margin: 0; /* the chart card is a <figure>, which has default side margins */
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.perf-card + .perf-card { margin-top: 24px; }
.perf-card-title { color: var(--navy); font-size: 1.05rem; font-weight: 700; }
.perf-card-sub { margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* Horizontal bar chart: one measure (seconds), one series, direct-labelled. */
.bar-chart {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.bar-row { display: grid; gap: 8px; }
.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .92rem;
  color: var(--slate);
}
.bar-label strong { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-track {
  position: relative;
  height: 14px;
  border-radius: 0 4px 4px 0;
}
.bar-fill {
  display: block;
  height: 100%;
  width: var(--value);
  min-width: 6px;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
  transform-origin: left center;
  transition: filter .2s ease;
}
.bar-row-muted .bar-fill { background: #b9c4d3; }
.bar-row:hover .bar-fill { filter: brightness(1.08) saturate(1.1); }
.bar-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reveal .bar-fill { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .2s, filter .2s ease; }
.reveal.is-visible .bar-fill, .no-js .bar-fill { transform: none; }

.perf-table-wrap { margin-top: 26px; overflow-x: auto; }
.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.perf-table caption {
  margin-bottom: 8px;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.perf-table th,
.perf-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.perf-table th:first-child,
.perf-table td:first-child { text-align: left; padding-left: 0; }
.perf-table thead th { color: var(--muted); font-weight: 600; font-size: .82rem; }
.perf-table tbody th { color: var(--navy); font-weight: 600; }

.test-env {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 18px 0 0;
}
.test-env div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.perf-env { margin-top: clamp(32px, 4vw, 48px); }
.perf-env .test-env { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.test-env dt { font-size: .8rem; color: var(--muted); }
.test-env dd { margin: 2px 0 0; color: var(--navy); font-size: .94rem; font-weight: 500; }

/* Download */

.download {
  position: relative;
  overflow: hidden;
  color: #c9d4e4;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(0, 190, 249, .18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(0, 55, 170, .35), transparent 60%),
    var(--navy);
}
.download h2 { color: #fff; }

.download-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.download-copy > p { margin-top: 22px; max-width: 34em; }

.download-actions { margin-top: 36px; }
.download-meta { margin-top: 16px; font-size: .9rem; color: #8fa3c0; }
.download-note { margin-top: 10px; font-size: .85rem; color: #8fa3c0; }
.download-note strong { color: #d9c29a; font-weight: 600; }

.download-visual { margin: 0; }
.download-visual img { width: 100%; max-width: 600px; margin-inline: auto; }

/* Full-width row under the copy + visual, so the comparison table can breathe. */
.download-specs {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}
.download-specs h3 { color: #fff; font-size: 1.05rem; letter-spacing: .02em; }

/* Minimum vs recommended system, side by side: a framed grid with ruled cells, a tinted
   header, and the recommended column picked out in gold. */
.spec-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
}
.spec-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .84rem;
  line-height: 1.5;
}
.spec-table th,
.spec-table td {
  padding: 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-left: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
  vertical-align: top;
}
.spec-table th:first-child,
.spec-table td:first-child { border-left: 0; }
.spec-table thead th {
  border-top: 0;
  padding-block: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8fa3c0;
}
.spec-table thead th.spec-recommended {
  color: #d9c29a;
  box-shadow: inset 0 2px 0 #d9c29a;
}
.spec-table tbody th {
  width: 22%;
  color: #a9b8cf;
  font-weight: 500;
  white-space: nowrap;
}
.spec-table td { width: 39%; color: #c3cee0; }
.spec-table .spec-recommended { background: rgba(217, 194, 154, .055); }
.spec-table td.spec-recommended { color: #fff; font-weight: 500; }
.spec-table tbody tr { transition: background-color .2s ease; }
.spec-table tbody tr:hover { background: rgba(255, 255, 255, .03); }

.spec-label { display: inline-flex; align-items: center; gap: 10px; }
.spec-label svg { flex: none; width: 16px; height: 16px; color: #6f86a8; }

.spec-note {
  margin-top: 16px;
  font-size: .8rem;
  color: #8fa3c0;
}
.spec-note a { color: #d9c29a; text-decoration: underline; text-underline-offset: 3px; }

/* Application */

.apply { background: var(--ivory); }

.apply-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(176, 141, 87, .5);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}
.steps strong { color: var(--navy); }
.steps span { font-size: .94rem; color: var(--muted); }

.apply-form {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}
.req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcfdfe;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--navy);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 116px; }
.field select {
  appearance: none;
  padding-right: 44px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233a4b64' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 18px center / 12px no-repeat,
    #fcfdfe;
}
.field input::placeholder,
.field textarea::placeholder { color: #a3aebd; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c5d1df; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(1, 132, 243, .12);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); }

.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}
.field-check input {
  flex: none;
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin-top: 3px;
  padding: 0;
  accent-color: var(--navy);
}
.field-check label { font-weight: 400; font-size: .88rem; color: var(--slate); line-height: 1.55; }
.field-check.is-invalid label { color: var(--danger); }

.form-error {
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fdf0f0;
  color: var(--danger);
  font-size: .92rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.form-note { font-size: .85rem; color: var(--muted); }

.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  border-radius: 24px;
  background: var(--paper);
  text-align: center;
  animation: fade-in .4s ease both;
}
.form-success h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.form-success p { max-width: 28em; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Footer */

.site-footer {
  padding-top: 64px;
  background: #01101f;
  color: #8fa3c0;
  font-size: .92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { width: 196px; }
.footer-brand p { margin-top: 16px; max-width: 24em; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: #c9d4e4; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact span { color: #d9c29a; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem;
}

/* Reveal on scroll */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */

@media (max-width: 980px) {
  .hero-inner,
  .feature,
  .perf-grid,
  .download-inner,
  .apply-inner { grid-template-columns: 1fr; }

  .feature-reverse .feature-visual { order: 0; }

  .perf-env .test-env { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-visual { max-width: 420px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(2, 22, 50, .35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 16px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { width: 160px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div,
  .hero-facts div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero-chip { padding: 9px 13px; }
  .hero-chip-a { left: 0; }
  .hero-chip-b { right: 0; }
  .hero-chip-c { bottom: 0; left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  /* Phone: each component becomes its own block (name, then minimum, then recommended)
     instead of a table that scrolls the recommended column out of view. */
  .spec-table { min-width: 0; font-size: .82rem; }
  .spec-table thead { display: none; }
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td { display: block; width: auto; }
  .spec-table tr { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .spec-table tbody tr:first-child { border-top: 0; }
  .spec-table th,
  .spec-table td { padding: 0; border: 0; white-space: normal; }
  .spec-table tbody th { margin-bottom: 8px; color: #e7edf6; }
  .spec-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #8fa3c0;
  }
  .spec-table td + td { margin-top: 8px; }
  .spec-table td.spec-recommended { padding: 8px 10px; border-radius: 8px; box-shadow: inset 2px 0 0 #d9c29a; }
  .spec-table td.spec-recommended::before { color: #d9c29a; }
  .test-env,
  .perf-env .test-env { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn,
  .download-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
