:root {
  --bg-primary: #0f0f11;
  --bg-secondary: #18181b;
  --bg-tertiary: #1f1f22;
  --bg-card: #18181b;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border: #333333;
  --accent: #3a8fff;
  --accent-soft: rgba(58, 143, 255, 0.1);
  --header-height: 56px;
  --max-width: 1120px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  margin-bottom: -1px;
}

.brand:hover {
  text-decoration: none;
}

.brand-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-bottom-color: var(--bg-secondary);
  border-radius: 10px 10px 0 0;
}

.brand-tab-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
}

.brand-tab-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.download-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-bottom: 0.55rem;
}

.download-btn {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.download-btn:hover {
  text-decoration: none;
  color: var(--text-primary);
  border-color: #444;
  background: var(--bg-secondary);
}

.download-btn.placeholder {
  cursor: default;
}

.download-toggle {
  display: none;
  align-items: center;
  padding: 0.45rem 0.9rem;
  margin-bottom: 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.download-menu {
  display: none;
  position: absolute;
  top: calc(var(--header-height) - 4px);
  right: 1rem;
  min-width: 200px;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.download-menu.open {
  display: grid;
  gap: 0.35rem;
}

.download-menu .download-btn {
  width: 100%;
}

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

  .download-toggle {
    display: inline-flex;
  }

  .header-actions {
    position: relative;
  }
}

/* Hero (A+D editorial) */
.hero {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 1.75rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 320px;
  background: radial-gradient(ellipse at 50% 0%, rgba(58, 143, 255, 0.07), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.anchor-line {
  margin: 0 0 1rem;
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-tagline {
  margin: 0 0 0.85rem;
  font-size: clamp(2.35rem, 8vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
}

.accent-word {
  color: var(--accent);
}

.hero-sub {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Community callout */
.community-callout {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.callout-box {
  border: 1px solid rgba(58, 143, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  background: var(--accent-soft);
}

.callout-box h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.callout-box p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Screenshots */
.shots {
  padding-bottom: 3rem;
}

.shots-lead {
  margin: -0.5rem 0 1.75rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.shots-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.58fr);
  align-items: center;
  gap: 1rem;
}

.shot-frame {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.shot-media {
  background: var(--bg-tertiary);
  line-height: 0;
}

.shot-media--wide {
  aspect-ratio: 16 / 9;
}

.shot-media--mobile {
  aspect-ratio: 3 / 4;
}

.shot-media picture,
.shot-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.shot-media img {
  object-fit: cover;
}

@media (max-width: 850px) {
  .shots-grid {
    grid-template-columns: 1fr;
  }

  .shot-media--mobile {
    max-width: 360px;
    margin-inline: auto;
  }
}

/* USPs */
.usps {
  padding-bottom: 3rem;
}

.section-label {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.usp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
}

.usp-index {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.usp-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.usp-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 850px) {
  .usp-grid {
    grid-template-columns: 1fr;
  }
}

/* Download section */
.download-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  text-align: center;
}

.download-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.download-section > .container > p {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-width: 640px;
  margin-inline: auto;
}

.download-platform {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: inherit;
  text-decoration: none;
}

.download-platform:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.download-platform.placeholder {
  cursor: default;
}

.download-platform .name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.download-platform .action {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
}

/* Legal pages */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content {
  max-width: 720px;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-callout {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  background: var(--bg-secondary);
  margin: 1rem 0;
}

.legal-callout p {
  margin: 0;
}

.intro-lead {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  max-width: 52rem;
}

.feature-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.feature-block:last-of-type {
  border-bottom: 0;
}

.feature-block h2 {
  margin-top: 0;
}

.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h2 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  margin-right: auto;
  margin-left: 1.5rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }
}

.lang-switch {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.lang-switch a {
  color: var(--text-secondary);
  text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--text-primary);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: var(--accent);
}

.lang-switch span {
  color: var(--text-muted);
}

@media (min-width: 720px) {
  .lang-switch {
    display: flex;
  }
}

.wow-nav .lang-switch {
  display: inline-flex;
  margin-left: 0.15rem;
  margin-right: 0;
  font-size: 0.68rem;
  gap: 0.15rem;
}

.wow-nav .lang-switch a {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #8f98ab;
}

.wow-nav .lang-switch a[aria-current="true"] {
  color: #dce6ff;
  background: rgba(255, 255, 255, 0.08);
}

.wow-nav .lang-switch span {
  color: #4a5160;
  padding: 0;
}
