/* Dragonbase site — tokens aligned with the desktop app */

:root {
  --bg-app: #121217;
  --bg-elevated: #1a1a21;
  --accent: #d63384;
  --accent-hover: #e84d9a;
  --text-primary: #f0f0f5;
  --text-secondary: #9090a8;
  --text-muted: #606078;
  --border: rgba(255, 255, 255, 0.06);
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition: 150ms ease;
  --max-width: 640px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 50% -10%, rgba(214, 51, 132, 0.1), transparent);
  pointer-events: none;
  z-index: -1;
}

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

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

.container--narrow {
  max-width: var(--max-width);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(18, 18, 23, 0.9);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: 11px;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a:not(.btn) {
  font-size: 14px;
  color: var(--text-secondary);
}

.site-nav a:not(.btn):hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform 80ms ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.btn--lg {
  padding: 12px 22px;
  font-size: 15px;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
}

.hero__intro {
  max-width: var(--max-width);
  margin-inline: auto;
  margin-bottom: 40px;
  text-align: center;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-hover);
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__version {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-screenshot {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section--alt {
  background: rgba(26, 26, 33, 0.45);
  border-block: 1px solid var(--border);
}

.section__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

.section__aside {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.simple-list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--text-secondary);
}

.simple-list li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.simple-list li::marker {
  color: var(--accent);
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Ads */
.ad-row {
  display: none;
  margin-bottom: 32px;
}

.ad-row.ad-row--visible {
  display: block;
}

.ad--bottom {
  padding: 0;
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 520px) {
  .site-nav a:not(.btn) {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
