/* AHDicom website — self-contained, no external fonts or resources. Colours follow the app's dark theme and logo. */
:root {
  --bg: #070d1a;
  --bg2: #0d1628;
  --card: #111c31;
  --line: #22314d;
  --text: #e8eef7;
  --muted: #9fb0c6;
  --accent: #2dd4bf;
  --accent2: #3b82f6;
  --warn-bg: #2a2412;
  --warn-line: #8a6d1f;
  --warn-text: #f3dc9b;
  --radius: 14px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #0b1a33 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.6 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

a {
  color: var(--accent);
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- header */
.top,
.doc-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: rgba(7, 13, 26, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand-small {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-small img {
  border-radius: 6px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

nav a:hover {
  color: var(--text);
}

/* Support button in the header (always visible, also on phones). */
nav a.nav-support {
  display: inline-flex;
  padding: 5px 12px;
  font-size: 14px;
  color: #111;
}

nav a.nav-support:hover {
  color: #111;
  border-color: #fff;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------------------------------------------------------------- sections */
main > section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin: 24px 0 12px;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 20px;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.hero {
  text-align: center;
  padding-top: 64px;
}

.hero-logo {
  border-radius: 18px;
  width: min(720px, 100%);
}

.lead {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 18px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent);
}

.btn.primary {
  background: linear-gradient(135deg, #0ea5a0, #2563eb);
  border-color: transparent;
  color: #fff;
}

.btn.coffee {
  background: #ffdd00;
  border-color: #ffdd00;
  color: #111;
}

.btn.small {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
}

.warn {
  display: inline-block;
  margin-top: 26px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-text);
  font-size: 14px;
}

.video video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.grid article,
.dl {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.grid p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.download {
  text-align: center;
}

.version {
  margin: -10px 0 24px;
  color: var(--muted);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  text-align: left;
  margin-bottom: 20px;
}

.dl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.dl.mine {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.dl details {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.dl summary {
  cursor: pointer;
  color: var(--text);
}

.support {
  text-align: center;
}

.support p {
  color: var(--muted);
}

.legal p {
  color: var(--muted);
}

.legal strong {
  color: var(--warn-text);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.foot {
  padding: 28px 16px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot p {
  margin: 4px 0;
}

/* ---------------------------------------------------------------- license page */
.doc-body {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.doc-body h1 {
  font-size: 28px;
}

.doc-body h2 {
  font-size: 19px;
  margin: 28px 0 8px;
}

.doc-body p {
  color: #cdd8e6;
}

.doc-body .intro {
  color: var(--muted);
}

/* Language: only the chosen language's blocks on the license page. */
html[lang='en'] [data-lang='tr'],
html[lang='tr'] [data-lang='en'] {
  display: none;
}

@media (max-width: 640px) {
  nav a:not(.nav-support) {
    display: none;
  }
}

/* Coffee cup icon of the support buttons (inline SVG, drawn in the button's text colour). */
.btn .cup {
  flex: none;
  width: 22px;
  height: 22px;
}

nav a.nav-support .cup {
  width: 19px;
  height: 19px;
}

/* Windows only for now (user decision 2026-11-24): one download card, Microsoft Store. */
.dl-single {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.dl-single .dl {
  width: min(520px, 100%);
}

.btn.store[aria-disabled='true'] {
  cursor: default;
  opacity: 0.75;
}

.only-windows {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}
