/* RecoverMill — recovermill.com */
:root {
  --bg-deep: #0a0e17;
  --bg-elevated: #111827;
  --bg-card: #151d2e;
  --border: rgba(148, 163, 184, 0.12);
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --accent-2: #38bdf8;
  --success: #34d399;
  --warning: #fbbf24;
  --radius: 14px;
  --font-sans: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  --max-w: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(56, 189, 248, 0.08), transparent);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--accent-2);
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  max-width: 7.5rem;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--accent);
  outline: none;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.25rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  color: #0a0e17;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(34, 211, 238, 0.45);
  color: #0a0e17;
}

.btn-ghost {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.btn-ghost:hover {
  background: rgba(34, 211, 238, 0.22);
  color: var(--accent-2);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta span::before {
  content: "✓ ";
  color: var(--success);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.hero-glow {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 2.5rem;
}

.bg-elevated {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Editions */
.editions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.edition-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.edition-card.featured {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.edition-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.edition-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.edition-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.edition-list li {
  padding: 0.45rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.edition-list li:last-child {
  border-bottom: none;
}

.edition-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Download block */
.download-box {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.download-box .version {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.download-notes {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
  max-width: 560px;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Legal pages */
.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.prose {
  max-width: 42rem;
  color: var(--text-muted);
}

.prose h2 {
  color: var(--text);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  font-size: 0.95rem;
}

.prose ul {
  padding-left: 1.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .header-actions .btn-ghost.hide-mobile {
    display: none;
  }
}
