/* ========================================
   DTNR Tool – Daymar Sand & Dust Theme
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette – warm desert tones */
  --sand: #d4a954;
  --sand-dim: #b8923e;
  --sand-glow: rgba(212, 169, 84, 0.15);
  --sand-glow-strong: rgba(212, 169, 84, 0.3);

  --dust-dark: #1a1510;
  --dust-bg: #0f0d09;
  --dust-deep: #0a0907;
  --dust-card: rgba(26, 21, 16, 0.88);
  --dust-card-border: rgba(212, 169, 84, 0.1);

  /* Accents */
  --amber: #e8a020;
  --rust: #c05a30;
  --terracotta: #b8603a;
  --sky-pale: #8ca0b8;

  /* Neutrals */
  --white: #ece4d4;
  --white-dim: #b0a48e;
  --white-muted: #9e9688;
  --dark-border: rgba(212, 169, 84, 0.06);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  /* Sizes */
  --nav-height: 70px;
  --container-max: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  background: var(--dust-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sand);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Dust Canvas --- */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 9, 7, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--dust-card-border), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  display: flex;
  gap: 2px;
  margin-right: auto;
}

.logo-bracket {
  color: var(--sand);
  opacity: 0.5;
}

.logo-text {
  color: var(--white);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0 auto;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sand), var(--rust));
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--sand);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
}

.lang-flag {
  width: 28px;
  height: 20px;
  border: 1px solid rgba(212, 169, 84, 0.2);
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s, border-color 0.3s, transform 0.2s;
  padding: 0;
  background: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-flag:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.lang-flag.lang-active {
  opacity: 1;
  border-color: var(--sand);
  box-shadow: 0 0 6px rgba(212, 169, 84, 0.25);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
  z-index: 1;
}

/* Desert horizon gradient */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(180, 120, 40, 0.06) 0%,
    rgba(140, 80, 20, 0.03) 30%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(212, 169, 84, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 169, 84, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 45% at 50% 55%, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 60% 45% at 50% 55%, black 20%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  /* Dark backdrop behind text for readability */
  padding: 48px 52px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(6, 5, 4, 0.55) 0%,
    rgba(6, 5, 4, 0.3) 60%,
    transparent 100%
  );
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--sand);
  letter-spacing: 0.35em;
  padding: 8px 20px;
  border: 1px solid rgba(212, 169, 84, 0.25);
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(6, 5, 4, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 28px;
}

.title-line {
  display: block;
}

.title-line-1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--white-dim);
  animation: fadeInUp 0.8s ease-out 0.15s both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

.title-line-2 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 0, 0, 0.5), 0 0 80px var(--sand-glow);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.title-line-3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  background: linear-gradient(135deg, var(--sand), var(--rust));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--white-dim);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.7;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out 0.75s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sand), var(--rust));
  color: var(--dust-deep);
  border-color: var(--sand);
  box-shadow: 0 0 20px var(--sand-glow), 0 0 60px rgba(212, 169, 84, 0.06);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e0b85e, #d06838);
  color: var(--dust-deep);
  box-shadow: 0 0 30px var(--sand-glow-strong), 0 0 80px rgba(212, 169, 84, 0.12);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--sand);
  border-color: var(--dust-card-border);
}

.btn-secondary:hover {
  background: var(--sand-glow);
  border-color: var(--sand-dim);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1.05rem;
  padding: 18px 40px;
}

.btn-icon {
  font-size: 0.8em;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sand);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--dust-card-border);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--sand-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--sand);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--white-dim);
  max-width: 550px;
  margin: 0 auto;
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Extra bottom space so cards extend into parallax divider fade zone */
.features {
  padding-bottom: 160px;
}

.feature-card {
  position: relative;
  background: var(--dust-card);
  border: 1px solid var(--dust-card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sand-dim), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 169, 84, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--sand-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 169, 84, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--sand);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--sand-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--dust-card-border);
  border-radius: 100px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--white-dim);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.card-features li {
  font-size: 0.88rem;
  color: var(--white-dim);
  padding-left: 20px;
  position: relative;
}

.card-features li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--sand);
  font-size: 0.55em;
  top: 0.45em;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--sand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: letter-spacing 0.3s, color 0.3s;
}

.card-link:hover {
  letter-spacing: 0.2em;
  color: var(--white);
}

.card-note {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(212, 169, 84, 0.6);
  letter-spacing: 0.05em;
}

.card-note--link {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.2s;
}
.card-note--link:hover {
  color: var(--accent-light, #e8c96d);
}

.dl-lock {
  font-size: 0.8em;
  vertical-align: baseline;
}

/* --- Detail Sections --- */
.detail-section {
  border-top: 1px solid var(--dark-border);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.detail-card {
  background: var(--dust-card);
  border: 1px solid var(--dust-card-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}

.detail-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.detail-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 169, 84, 0.2);
}

.detail-card:hover::after {
  opacity: 0.5;
}

.detail-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(180deg, var(--sand), rgba(212, 169, 84, 0.15));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.detail-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* --- Tech Grid --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--dust-card);
  border: 1px solid var(--dust-card-border);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}

.tech-item:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 169, 84, 0.2);
}

.tech-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dust-card-border);
  border-radius: 12px;
  background: rgba(212, 169, 84, 0.04);
  position: relative;
}

.tech-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 169, 84, 0.15), transparent 50%);
  z-index: -1;
}

.tech-icon {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sand);
}

.tech-item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.tech-item p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.5;
}

/* --- Community Globe + Graph Section --- */
.community-section {
  padding-bottom: 60px;
  overflow: hidden;
}

.community-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
}

.community-stat {
  text-align: center;
}

.community-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.community-stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(212, 169, 84, 0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.community-globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}

.community-globe-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 169, 84, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.community-globe {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.community-globe canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.community-graph-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 420px;
}

.community-graph-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 800px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
  .community-globe-wrap {
    max-width: 320px;
  }
  .community-stats {
    gap: 24px;
  }
}

/* --- Download Section --- */
.download-section {
  padding-bottom: 80px;
}

.download-box {
  position: relative;
  background: var(--dust-card);
  border: 1px solid var(--dust-card-border);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
}

/* Desert horizon glow */
.download-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(212, 169, 84, 0.08) 0%,
    rgba(192, 90, 48, 0.04) 40%,
    transparent 60%
  );
  pointer-events: none;
}

.download-actions {
  margin-bottom: 32px;
}

.download-note {
  font-size: 0.85rem;
  color: var(--white-muted);
  margin-top: 16px;
}

.download-modules {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-module {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--white-dim);
}

.module-check {
  color: var(--sand);
  font-size: 1.1rem;
}

.download-license-hint {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--white-dim);
  opacity: 0.75;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--dark-border);
  padding: 60px 0 32px;
  background: rgba(10, 9, 7, 0.7);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 260px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.footer-tagline {
  color: var(--white-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--white-muted);
}

.footer-links a:hover {
  color: var(--sand);
}

/* Donate */
.footer-donate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-donate h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(192, 90, 48, 0.45);
  border-radius: 6px;
  background: rgba(192, 90, 48, 0.08);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.donate-btn:hover {
  background: rgba(192, 90, 48, 0.2);
  border-color: rgba(192, 90, 48, 0.7);
  color: var(--white);
}
.donate-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.donate-subtitle {
  font-size: 0.72rem;
  color: var(--white-muted);
  opacity: 0.55;
}

/* Contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-contact-link:hover {
  color: var(--sand);
}
.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.footer-contact-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--white-muted);
}

.footer-disclaimer {
  margin-top: 6px;
  font-size: 0.72rem !important;
  opacity: 0.6;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 9, 7, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s, opacity 0.4s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 1.05rem;
  }

  .lang-switcher {
    position: fixed;
    top: 18px;
    right: 56px;
    margin-left: 0;
    z-index: 1001;
    gap: 4px;
  }

  .section {
    padding: 80px 0;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .detail-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .download-box {
    padding: 48px 24px;
  }

  .download-modules {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title .title-line-2 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   ATMOSPHERIC HERO SCENE
   ======================================== */

/* Hero Scene Canvas */
#hero-scene {
  display: none;
}

/* ---- Hero Background Image ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* Slow Ken Burns: gentle zoom pulsing */
  animation: kenBurns 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.0) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1%, 1%);
  }
  100% {
    transform: scale(1.04) translate(0.5%, -0.5%);
  }
}

/* ---- Atmosphere Overlays ---- */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Vignette: darken edges for cinematic feel */
.hero-overlay-vignette {
  z-index: 1;
  background: radial-gradient(
    ellipse 65% 55% at 50% 45%,
    transparent 10%,
    rgba(4, 4, 10, 0.40) 100%
  );
}

/* Bottom gradient: blend into site background */
.hero-overlay-gradient {
  z-index: 2;
  background: linear-gradient(
    to top,
    var(--dust-deep) 0%,
    rgba(10, 9, 7, 0.88) 6%,
    rgba(10, 9, 7, 0.45) 18%,
    rgba(10, 9, 7, 0.12) 35%,
    transparent 55%
  );
}

/* Warm atmospheric color wash */
.hero-overlay-dust {
  z-index: 2;
  background:
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(180, 120, 40, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 30%, rgba(45, 65, 130, 0.04) 0%, transparent 60%);
}

/* Dust particle canvas overlay */
.hero-dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: block;
  pointer-events: none;
}

/* ========================================
   ATMOSPHERIC SECTION BACKGROUNDS
   ======================================== */

/* Features section – warm/cool nebula glow */
#features {
  background:
    radial-gradient(ellipse 50% 40% at 12% 25%, rgba(100, 60, 30, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 35% 45% at 88% 75%, rgba(45, 65, 110, 0.04) 0%, transparent 60%);
}

/* Nav Tool detail – warm horizon glow */
#nav-tool {
  background:
    radial-gradient(ellipse 70% 30% at 50% 100%, rgba(212, 169, 84, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 10% 40%, rgba(120, 75, 35, 0.03) 0%, transparent 55%);
}

/* Race Tool detail – dynamic warm tones */
#race-tool {
  background:
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(192, 90, 48, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 45% 30% at 20% 80%, rgba(80, 55, 30, 0.03) 0%, transparent 50%);
}

/* Tech section – cool accent */
#tech {
  background:
    radial-gradient(ellipse 55% 40% at 50% 20%, rgba(50, 70, 120, 0.035) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 75% 85%, rgba(140, 90, 40, 0.025) 0%, transparent 55%);
}

/* Section glow dividers */
.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 169, 84, 0.12), transparent);
  pointer-events: none;
}

/* Container z-index over section backgrounds */
.section .container {
  position: relative;
  z-index: 1;
}

/* ========================================
   ENHANCED CARD EFFECTS
   ======================================== */

/* Animated light sweep on feature cards */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 35%,
    rgba(212, 169, 84, 0.03) 50%,
    transparent 65%
  );
  background-size: 300% 300%;
  animation: cardSweep 10s ease-in-out infinite;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

@keyframes cardSweep {
  0%, 100% { background-position: 100% 100%; }
  50% { background-position: 0% 0%; }
}

/* Pulsing glow on card icons */
.card-icon {
  animation: iconPulse 4s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(212, 169, 84, 0.15));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(212, 169, 84, 0.35));
  }
}

/* Enhanced tech icon glow */
.tech-icon-wrapper {
  animation: techGlow 5s ease-in-out infinite;
}

@keyframes techGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(212, 169, 84, 0.05);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 169, 84, 0.12);
  }
}

/* Film grain overlay for cinematic feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Download section enhanced glow */
.download-box::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(212, 169, 84, 0.06) 0%,
    rgba(192, 90, 48, 0.03) 40%,
    transparent 65%
  );
  pointer-events: none;
}

/* ========================================
   PARALLAX IMAGE DIVIDERS
   ======================================== */
.parallax-divider {
  position: relative;
  height: 680px;
  margin-top: -380px;
  overflow: hidden;
  z-index: 0;
}

.parallax-img-wrap {
  position: absolute;
  inset: -220px 0;
  z-index: 0;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  will-change: transform;
  transform: translateY(0) scale(1.25);
}

/* Dark overlay with warm tint + non-linear top fade + subtle bottom fade */
.parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      transparent 78%,
      rgba(212, 169, 84, 0.06) 86%,
      rgba(10, 9, 7, 0.24) 93%,
      var(--dust-deep) 100%
    ),
    linear-gradient(
      to top,
      transparent 0%,
      transparent 20%,
      rgba(10, 9, 7, 0.08) 30%,
      rgba(10, 9, 7, 0.2) 40%,
      rgba(10, 9, 7, 0.4) 52%,
      rgba(10, 9, 7, 0.62) 64%,
      rgba(10, 9, 7, 0.78) 74%,
      rgba(10, 9, 7, 0.88) 82%,
      rgba(10, 9, 7, 0.94) 89%,
      rgba(10, 9, 7, 0.975) 95%,
      var(--dust-deep) 100%
    ),
    linear-gradient(to right, rgba(10, 9, 7, 0.2) 0%, transparent 20%, transparent 80%, rgba(10, 9, 7, 0.2) 100%),
    rgba(10, 9, 7, 0.1);
}

/* No top accent line — blends smoothly into section above */
.parallax-divider::before {
  display: none;
}

/* Subtle gold accent line at bottom edge */
.parallax-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 169, 84, 0.15), transparent);
  z-index: 2;
}

@media (max-width: 768px) {
  .parallax-divider {
    height: 400px;
    margin-top: -140px;
  }
  .parallax-img-wrap {
    inset: -100px 0;
  }
}

/* ========================================
   SHOWCASE – Screenshot / Video Frames
   ======================================== */
.showcase {
  margin: 0 auto 3rem;
  max-width: 960px;
}

.showcase-compact {
  margin-bottom: 1.5rem;
}

.showcase-frame {
  position: relative;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  border: 1px solid rgba(212, 169, 84, 0.15);
  background: rgba(10, 9, 7, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 169, 84, 0.05),
    inset 0 1px 0 rgba(212, 169, 84, 0.08);
}

/* Faux window title bar */
.showcase-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(10, 9, 7, 0.85);
  border-bottom: 1px solid rgba(212, 169, 84, 0.1);
}

.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(212, 169, 84, 0.25);
}

.showcase-dot:first-child { background: rgba(192, 90, 48, 0.5); }
.showcase-dot:nth-child(2) { background: rgba(212, 169, 84, 0.4); }
.showcase-dot:nth-child(3) { background: rgba(120, 160, 80, 0.4); }

.showcase-bar-title {
  margin-left: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: rgba(212, 169, 84, 0.5);
  letter-spacing: 0.03em;
}

/* Image / Video container */
.showcase-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10, 9, 7, 0.9);
}

.showcase-img-wrap img,
.showcase-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-showcase-slider .nav-showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.nav-showcase-slider .nav-showcase-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .nav-showcase-slider .nav-showcase-slide {
    transition: none;
  }
}

/* Placeholder styling */
.showcase-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  padding: 2rem;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(212, 169, 84, 0.03) 20px,
      rgba(212, 169, 84, 0.03) 21px
    ),
    rgba(10, 9, 7, 0.95);
}

.showcase-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.6;
  filter: grayscale(0.5);
}

.showcase-placeholder-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sand, #d4a954);
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.showcase-placeholder-hint {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: rgba(212, 169, 84, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Video placeholder */
.showcase-placeholder-video .showcase-placeholder-icon {
  font-size: 3.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 169, 84, 0.08);
  border: 2px solid rgba(212, 169, 84, 0.2);
}

.showcase-video-frame {
  max-width: 100%;
}

/* Code placeholder */
.showcase-placeholder-code {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(212, 169, 84, 0.04) 28px,
      rgba(212, 169, 84, 0.04) 29px
    ),
    rgba(10, 9, 7, 0.98);
}

/* Caption */
.showcase-caption {
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: rgba(212, 169, 84, 0.4);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Wide tech item for code showcase */
.tech-item-wide {
  grid-column: 1 / -1;
}

/* Video section */
.video-section {
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .showcase {
    margin-bottom: 2rem;
  }
  .showcase-placeholder-icon {
    font-size: 2rem;
  }
  .showcase-placeholder-text {
    font-size: 0.85rem;
  }
}

/* ==========================================
   Auth – Login Button, Modals
   ========================================== */

/* Nav login button */
.nav-item-hidden {
  display: none;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.nav-login-btn {
  background: transparent;
  border: 1px solid var(--sand);
  color: var(--sand);
  padding: 6px 18px;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  margin-left: 0;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.nav-login-btn:hover {
  background: var(--sand);
  color: var(--dust-deep);
  transform: scale(1.03);
}
.nav-login-btn--user {
  background: rgba(212, 169, 84, 0.12);
  border-color: rgba(212, 169, 84, 0.5);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-login-btn--logout {
  border-color: rgba(192, 90, 48, 0.5);
  color: var(--terracotta);
}

.nav-login-btn--logout:hover {
  background: rgba(192, 90, 48, 0.15);
  color: var(--terracotta);
}

.nav-avatar-hidden {
  display: none;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid rgba(212, 169, 84, 0.5);
  background: rgba(212, 169, 84, 0.08);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.2s;
}
.nav-avatar:hover {
  border-color: rgba(212, 169, 84, 0.85);
  transform: scale(1.06);
}

/* Supporter badge star */
.nav-badge {
  font-size: 0.75rem;
  color: #d4a954;
  filter: drop-shadow(0 0 4px rgba(212, 169, 84, 0.6));
  transition: opacity 0.3s;
}
.nav-badge-hidden { display: none; }

/* Supporter golden avatar ring */
.nav-avatar--supporter {
  border: 2px solid rgba(212, 169, 84, 0.85);
  box-shadow: 0 0 8px rgba(212, 169, 84, 0.35);
}

/* Full-screen overlay */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9000;
}
.auth-overlay-open {
  display: block;
}

/* Modal base */
.auth-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 90%;
  max-width: 420px;
  background: var(--dust-deep);
  border: 1px solid rgba(212, 169, 84, 0.2);
  border-radius: 12px;
  padding: 40px 36px 32px;
  z-index: 9001;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.auth-modal-open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--sand-light);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  line-height: 1;
}
.auth-modal-close:hover {
  opacity: 1;
}

/* Title & description */
.auth-modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: var(--sand);
  margin: 0 0 8px;
  text-align: center;
}
.auth-modal-desc {
  text-align: center;
  color: var(--sand-light);
  font-size: 0.9rem;
  margin: 0 0 28px;
  opacity: 0.7;
}

/* Form fields */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.auth-field label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.auth-field input {
  background: rgba(212, 169, 84, 0.06);
  border: 1px solid rgba(212, 169, 84, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--sand-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--sand);
  box-shadow: 0 0 0 2px rgba(212, 169, 84, 0.15);
}

/* Error message */
.auth-error {
  display: none;
  color: var(--terracotta);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 12px;
  background: rgba(192, 90, 48, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(192, 90, 48, 0.2);
}

/* Submit button */
.auth-submit {
  background: var(--sand);
  color: var(--dust-deep);
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.auth-submit:hover {
  background: #e0b85e;
  transform: scale(1.02);
}
.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.auth-submit-secondary {
  background: transparent;
  color: var(--sand);
  border: 1px solid rgba(212, 169, 84, 0.3);
}
.auth-submit-secondary:hover {
  background: rgba(212, 169, 84, 0.1);
}

/* Switch link */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--sand-light);
  opacity: 0.7;
}
.auth-switch a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* Confirm icon */
.auth-confirm-icon {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.auth-profile-avatar-row {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.auth-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid rgba(212, 169, 84, 0.45);
  background: rgba(212, 169, 84, 0.08);
}

/* Newsletter checkbox row */
.auth-field-checkbox {
  margin-top: 2px;
  margin-bottom: 2px;
}
.auth-field-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--sand-light);
  cursor: pointer;
}
.auth-field-checkbox input[type="checkbox"] {
  accent-color: #d4a954;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Dark file input */
.auth-form input[type="file"] {
  background: rgba(212, 169, 84, 0.08);
  border: 1px solid rgba(212, 169, 84, 0.25);
  border-radius: 8px;
  color: var(--sand-light);
  padding: 8px 10px;
  font-size: 0.88rem;
  cursor: pointer;
}
.auth-form input[type="file"]::file-selector-button {
  background: rgba(212, 169, 84, 0.18);
  color: var(--sand);
  border: 1px solid rgba(212, 169, 84, 0.35);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-form input[type="file"]::file-selector-button:hover {
  background: rgba(212, 169, 84, 0.3);
}

/* --- Mobile auth ---  */
@media (max-width: 768px) {
  .nav-auth {
    position: fixed;
    top: 18px;
    right: 110px;
    z-index: 1001;
    gap: 6px;
  }
  .nav-login-btn {
    padding: 5px 12px;
    font-size: 0.85rem;
  }
  .nav-avatar {
    width: 32px;
    height: 32px;
  }
  .auth-modal {
    width: 94%;
    padding: 32px 24px 24px;
  }
}
