/* DRAXO website: one stylesheet for every page. */

@font-face { font-family: Inter; src: url("/assets/site/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/site/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0d0c10;
  --card: #16151b;
  --card-2: #1c1b22;
  --line: #ffffff14;
  --line-2: #ffffff22;
  --text: #f3f2f7;
  --muted: #a19dae;
  --faint: #6f6b7b;
  --accent: #8b6cff;
  --accent-2: #b37bff;
  --accent-soft: #8b6cff1f;
  --ok: #4ade9b;
  --bad: #f07a7a;
  --radius: 18px;
  --wrap: 1160px;
  --cyan: var(--accent); /* name used by the account page */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; hyphens: auto; overflow-wrap: break-word; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---- header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #0d0c10d9;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--muted);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid var(--line-2);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: "";
}
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu nav {
  position: absolute; right: 0; top: 54px; min-width: 200px;
  display: grid; padding: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
}
.menu nav a { padding: 12px 14px; border-radius: 9px; text-decoration: none; font-weight: 700; }
.menu nav a:hover { background: var(--card-2); }

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 12px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font: 700 16px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -12px #8b6cffaa;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 34px -12px #8b6cffcc; }
.btn.small { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn.ghost { background: transparent; box-shadow: none; border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--card-2); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--text); }
.text-link::after { content: "→"; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

/* ---- hero ---------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, #8b6cff33, transparent 62%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 76px); max-height: 900px; padding-block: 56px;
}
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, #e0b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 26px; max-width: 520px; font-size: 19px; color: var(--muted); }
.hero .actions { margin-top: 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero .note { margin-top: 22px; font-size: 14px; color: var(--faint); }
.emblem { justify-self: center; width: min(460px, 100%); height: auto; filter: drop-shadow(0 0 60px #8b6cff55); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }

/* ---- sections ------------------------------------------------------------ */

.section { padding-block: 110px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Big feature card with the module list illustration */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 28px; overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 85% 20%, #b37bff44, transparent 55%),
    linear-gradient(140deg, #3a2a8a, #24185a 55%, #1a1240);
  border: 1px solid #ffffff1c;
}
.showcase h3 { font-size: clamp(30px, 3.6vw, 44px); }
.showcase p { margin-top: 18px; color: #d9d3f2; font-size: 17px; max-width: 440px; }
.showcase .btn { margin-top: 34px; background: #0d0c10; box-shadow: none; }
.showcase .btn:hover { background: #18161f; }

.panel {
  background: #121117ee; border: 1px solid #ffffff1f; border-radius: 16px; padding: 10px;
  box-shadow: 0 30px 60px -20px #000c; max-width: 380px; justify-self: center; width: 100%;
}
.panel-title { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 12px; color: var(--muted); font-size: 14px; font-weight: 700; }
.panel-title b { color: var(--text); }
.module { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; color: #cfcbdb; font-size: 15px; }
.module kbd { font: 700 12px/1 Inter, sans-serif; min-width: 26px; padding: 6px 7px; text-align: center; border-radius: 7px; background: #ffffff10; color: var(--muted); }
.module.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; transform: scale(1.04); box-shadow: 0 12px 30px -12px #8b6cffcc; }
.module.on kbd { background: #ffffff33; color: #fff; }

/* Two cards with check lists */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.card h3 { font-size: 26px; }
.card .sub { margin-top: 8px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: #d6d3e0; }
.checks li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) 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='%23b37bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

/* Small feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: #8b6cff55; transform: translateY(-2px); }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 22px; }
.tile .icon svg { width: 22px; height: 22px; stroke: var(--accent-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 20px; letter-spacing: -0.01em; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.versions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.chip { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; }
.chip.muted { color: var(--faint); border-style: dashed; font-weight: 400; }

/* Closing call to action */
.cta { text-align: center; padding: clamp(48px, 7vw, 90px) 24px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 0%, #8b6cff30, transparent 60%), var(--card); }
.cta h2 { font-size: clamp(36px, 5vw, 60px); }
.cta p { margin: 18px auto 0; color: var(--muted); max-width: 520px; font-size: 18px; }
.cta .actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- inner pages --------------------------------------------------------- */

.page { padding-block: 72px 110px; }
.page-head { max-width: 720px; margin-bottom: 48px; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); }
.page-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }

.download-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.download-card img { width: 72px; height: 72px; }
.download-card h2 { font-size: 26px; }
.download-card .meta { margin-top: 6px; color: var(--muted); font-size: 15px; }
.hash { margin-top: 14px; font-size: 13px; color: var(--faint); word-break: break-all; }
.hash code { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; margin-bottom: 18px; }
.steps li b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.fact { padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.fact span { display: block; color: var(--faint); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fact b { display: block; margin-top: 8px; font-size: 16px; }

h2.block { font-size: 28px; margin-top: 72px; }
.fine { font-size: 14px; color: var(--faint); }

table.compat { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.compat th, .compat td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.compat th { color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.compat td.yes { color: var(--ok); }
.compat td.exp { color: #e6c46e; }
.compat td.no { color: var(--faint); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq details[open] { border-color: #8b6cff44; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 22px; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); }
.faq details p + p { margin-top: -10px; }

/* Status */
.status-list { display: grid; gap: 12px; max-width: 720px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.status-row b { font-weight: 700; }
.dot { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.dot.up::before { background: var(--ok); box-shadow: 0 0 12px #4ade9b88; }
.dot.down::before { background: var(--bad); }

/* Text pages (legal) and the account page */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 28px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose li, .prose address { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose address { font-style: normal; margin: 14px 0; }
.prose a { color: var(--accent-2); text-underline-offset: 3px; }
.prose a.button, .prose a.btn { color: #fff; text-decoration: none; }
.prose ul { padding-left: 20px; }
.prose code { font-size: 13px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; text-decoration: none; }
.warning { padding: 16px; border: 1px solid #e6c46e55; border-radius: 12px; color: #e6d3a0; }

/* ---- footer -------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; margin-top: 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.site-footer .logo img { height: 22px; }
.site-footer .about { margin-top: 18px; color: var(--faint); font-size: 14px; max-width: 360px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-links h4 { margin: 0 0 14px; font-size: 13px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.copyright { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; text-align: left; padding-block: 48px 72px; }
  .emblem { width: min(300px, 70%); order: -1; justify-self: start; }
  .showcase { grid-template-columns: 1fr; }
  .grid, .steps, .facts { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; margin-left: auto; }
  .site-header .btn { display: none; }
  .section { padding-block: 72px; }
  .duo, .grid, .steps, .facts { grid-template-columns: 1fr; }
  .card, .tile { padding: 26px; }
  .download-card { grid-template-columns: 1fr; }
  .download-card img { width: 56px; height: 56px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .hero .lead { font-size: 17px; }
  .hero .wrap { padding-block: 28px 64px; gap: 20px; }
  .emblem { width: 128px; animation: none; }
}

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