/* Dane — dane.surf
   Palette from the official Dane app icon (GreatDANE art, patches 0011/0012):
   navy #13254A, deep #0A1631, line #22345C, mist #DCE4F2, link #9CC4FF, blue #2A5BB8
*/
:root {
  --navy: #13254A;
  --deep: #0A1631;
  --line: #22345C;
  --mist: #DCE4F2;
  --link: #9CC4FF;
  --blue: #2A5BB8;
  --blue-deep: #1E4A9A;
  --ink: #0A1631;
  --paper: #F3F5F9;
  --white: #FFFFFF;
  --mute-dark: #8FA3C4;
  --mute-light: #5C6B86;
  --hairline-dark: rgba(220, 228, 242, 0.14);
  --hairline-light: rgba(19, 37, 74, 0.12);
  --max: 980px;
  --wide: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--deep);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { min-height: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, .mono { font-family: var(--mono); font-size: 0.86em; font-variant-ligatures: none; }
code.sha { word-break: break-all; user-select: all; }
.warn-block code { white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; user-select: all; }
::selection { background: rgba(42, 91, 184, 0.28); }

/* ----- nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 52px;
  display: flex;
  align-items: center;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(10, 22, 49, 0.72);
  border-bottom: 1px solid var(--hairline-dark);
}
.nav-inner {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 980px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a.nav-cta {
  margin-left: 6px;
  background: #fff;
  color: var(--deep);
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--mist); color: var(--deep); }

/* ----- typography helpers ----- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}
.kicker {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--link);
  margin: 0 0 16px;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.lead, .sub {
  margin: 18px auto 0;
  max-width: 22em;
  font-size: 21px;
  line-height: 1.47;
  font-weight: 400;
}
.center { text-align: center; }
.center .lead, .center .sub { margin-left: auto; margin-right: auto; }

/* ----- buttons ----- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: center;
  margin-top: 32px;
}
.hero .actions { margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:focus-visible, .nav-links a:focus-visible, .brand:focus-visible, .text-link:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
.btn-primary { background: #fff; color: var(--deep); }
.btn-primary:hover { background: var(--mist); }
.btn-secondary {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(220, 228, 242, 0.42);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.on-light .btn-primary { background: var(--blue); color: #fff; }
.on-light .btn-primary:hover { background: var(--blue-deep); }
.on-light .btn-secondary {
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(19, 37, 74, 0.28);
}
.on-light .btn-secondary:hover { background: rgba(19, 37, 74, 0.05); }

/* ----- hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 100px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(42, 91, 184, 0.28), transparent 60%),
    linear-gradient(180deg, #13254A 0%, #0A1631 100%);
  color: #fff;
  text-align: center;
}
.hero h1 {
  font-size: clamp(64px, 12vw, 112px);
  letter-spacing: -0.045em;
  margin: 0;
}
.hero .tagline {
  margin: 10px auto 0;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--mist);
  max-width: 16em;
}
.hero .lead {
  color: var(--mute-dark);
  font-size: 21px;
  max-width: 24em;
}
.hero-stage {
  position: relative;
  width: min(420px, 72vw);
  height: min(380px, 68vw);
  margin: 48px auto 0;
  display: grid;
  place-items: center;
}
.hero-glow {
  position: absolute;
  inset: 8% 6% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(156, 196, 255, 0.4), rgba(42, 91, 184, 0.08) 42%, transparent 70%);
  pointer-events: none;
}
.hero-icon {
  width: min(280px, 58vw);
  height: auto;
  border-radius: 22.5%;
  position: relative;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.45));
}
.hero .fine {
  margin-top: 22px;
  font-size: 14px;
  color: var(--mute-dark);
}
.hero .fine a { color: var(--link); text-decoration: none; }
.hero .fine a:hover { text-decoration: underline; }
.win-note {
  max-width: 36em;
  margin: 28px auto 0;
  padding: 18px 22px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mist);
  background: rgba(10, 22, 49, 0.45);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
}
.win-note strong { color: #fff; font-weight: 600; }
.win-note code { color: #fff; user-select: all; }

/* ----- sections ----- */
.section {
  padding: 140px 0;
}
.section h2 {
  font-size: clamp(40px, 7vw, 72px);
}
.section .sub { margin-top: 22px; }
.theme-dark {
  background: var(--deep);
  color: #fff;
}
.theme-dark .sub, .theme-dark .lead { color: var(--mute-dark); }
.theme-dark .text-link { color: var(--link); text-decoration: none; }
.theme-dark .text-link:hover { text-decoration: underline; }
.theme-navy {
  background: linear-gradient(180deg, #13254A 0%, #0E1C3C 100%);
  color: #fff;
}
.theme-navy .sub, .theme-navy .lead { color: var(--mute-dark); }
.theme-navy .text-link { color: var(--link); text-decoration: none; }
.theme-navy .text-link:hover { text-decoration: underline; }
.theme-light {
  background: var(--paper);
  color: var(--ink);
}
.theme-light .sub, .theme-light .lead { color: var(--mute-light); }
.theme-light .text-link { color: var(--blue); text-decoration: none; }
.theme-light .text-link:hover { text-decoration: underline; }
.theme-white {
  background: var(--white);
  color: var(--ink);
}
.theme-white .sub, .theme-white .lead { color: var(--mute-light); }
.theme-white .text-link { color: var(--blue); text-decoration: none; }
.theme-white .text-link:hover { text-decoration: underline; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px;
}
.split .copy { text-align: left; }
.split .copy .sub, .split .copy .lead { margin-left: 0; max-width: 22em; }

.names {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.name-pill {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(19, 37, 74, 0.04), 0 18px 40px rgba(10, 22, 49, 0.06);
}
.name-pill .tld {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.name-pill .hint {
  font-size: 15px;
  color: var(--mute-light);
  text-align: right;
}

.art {
  display: grid;
  place-items: center;
}
.sad-dane {
  width: min(320px, 70vw);
  height: auto;
  color: var(--navy);
  opacity: 0.92;
}

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
}
.points h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.points p {
  margin: 0;
  font-size: 16px;
  color: var(--mute-light);
}

/* ----- download page ----- */
.page-hero {
  padding: 96px 0 48px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(52px, 10vw, 88px);
  letter-spacing: -0.045em;
}
.page-hero .lead { color: var(--mute-dark); }
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px 80px;
}
.card {
  border-radius: 28px;
  padding: 40px 36px 36px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(19, 37, 74, 0.04), 0 20px 50px rgba(10, 22, 49, 0.07);
  text-align: left;
}
.card h2 {
  font-size: 40px;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}
.card .meta {
  margin: 0 0 24px;
  color: var(--mute-light);
  font-size: 16px;
}
.card .actions { justify-content: flex-start; margin-top: 0; margin-bottom: 22px; }
.hashes {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mute-light);
}
.hashes code { color: var(--navy); user-select: all; }
.hashes a { color: var(--blue); text-decoration: none; }
.hashes a:hover { text-decoration: underline; }
.linux-note {
  text-align: center;
  padding: 0 22px 100px;
  color: var(--mute-dark);
  font-size: 17px;
}
.theme-light .linux-note, .theme-white .linux-note { color: var(--mute-light); }
.warn-block {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #F4F6FB;
  border: 1px solid var(--hairline-light);
  font-size: 14px;
  line-height: 1.55;
  color: #31415C;
}
.warn-block strong { color: var(--ink); }

/* ----- support ----- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px 120px;
}
.prose h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin: 64px 0 16px;
  letter-spacing: -0.03em;
}
.prose ol, .prose ul { padding-left: 1.15em; margin: 0 0 8px; }
.prose li { margin: 0 0 10px; color: var(--mute-light); }
.prose p { margin: 0 0 14px; color: var(--mute-light); font-size: 18px; }
.theme-dark .prose p, .theme-dark .prose li { color: var(--mute-dark); }
.prose a { color: var(--blue); text-decoration: none; }
.theme-dark .prose a, .theme-navy .prose a { color: var(--link); }
.prose a:hover { text-decoration: underline; }

/* ----- footer ----- */
.footer {
  border-top: 1px solid var(--hairline-dark);
  background: #070E1F;
  color: var(--mute-dark);
  font-size: 13px;
  padding: 28px 0 40px;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  align-items: center;
}
.footer a { color: var(--mist); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ----- reveal ----- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ----- mobile ----- */
@media (max-width: 800px) {
  .hero { padding: 56px 0 80px; }
  .section { padding: 88px 0; }
  .split, .cards, .points { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .name-pill { flex-direction: column; align-items: flex-start; padding: 22px 22px; }
  .name-pill .hint { text-align: left; }
  .page-hero { padding: 64px 0 32px; }
  .card { padding: 28px 22px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .lead, .sub, .hero .lead { font-size: 19px; }
  .hero-stage { margin-top: 36px; }
}
@media (max-width: 420px) {
  .nav-inner { padding: 0 14px; }
  .btn { width: 100%; }
  .actions { width: 100%; }
  .hero .actions { padding: 0 22px; }
  .card .actions { width: 100%; }
}
