/* ────────────────────────────────────────────────────────────────
   FileUpGo Data Recovery landing page — dark navy + serif headlines, mirroring the
   reference layout. Zero external assets (no font CDN) for SEO speed.
   ──────────────────────────────────────────────────────────────── */

:root {
  --bg-deep: #061427;
  --bg-overlay: #0A1E3B;
  --bg-card: #0E2748;
  --bg-card-2: rgba(20, 49, 90, 0.55);
  --border-soft: rgba(94, 200, 255, 0.18);
  --border-strong: rgba(94, 200, 255, 0.42);
  --text-primary: #EAF6FF;
  --text-secondary: #A9C5E0;
  --text-muted: #6F8EAE;
  --accent: #5EC8FF;
  --accent-strong: #2D8DFF;
  --accent-pressed: #1F6FCF;
  --shadow: 0 18px 60px rgba(0, 12, 35, 0.55);

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
          'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(94, 200, 255, 0.07) 1px, transparent 1.5px);
  background-size: 28px 28px;
  background-attachment: fixed;
  overflow-x: hidden;
}

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

code {
  font-family: 'Cascadia Mono', 'Consolas', 'SF Mono', Menlo, monospace;
  font-size: 0.92em;
  color: var(--accent);
  background: rgba(94, 200, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Header ───────────────────────────────────────────────────── */
.site-header {
  padding: 28px 0 0;
}
.header-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  width: 56px; height: 56px;
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(45, 141, 255, 0.35);
}
.brand-mark.small {
  width: 36px; height: 36px;
  border-radius: 9px;
}
.brand-meta { display: flex; min-width: 0; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.1;
  letter-spacing: 0.4px;
}
.brand-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 250px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  font-size: 14px;
  min-width: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: 8px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  padding: .4em 2em .4em .8em;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: inherit;
  background-color: rgba(255, 255, 255, .06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7em center;
  font: inherit;
  font-size: .9rem;
  line-height: 1.2;
  cursor: pointer;
  min-width: 150px;
  max-width: 100%;
}

.lang-select:hover { background-color: rgba(255, 255, 255, .12); }
.lang-select option { color: #111; }

html[dir="rtl"] .lang-select {
  padding: .4em .8em .4em 2em;
  background-position: left .7em center;
}

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}
.btn-icon { font-size: 16px; line-height: 1; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-strong);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(45, 141, 255, 0.35);
}
.btn-primary:hover {
  background: #3F9AFF;
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(94, 200, 255, 0.08);
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero { padding: 18px 0 25px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 24px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 26px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  hyphens: auto;
}
h1 .accent {
  font-style: italic;
  color: var(--accent);
}

.lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 0 36px;
}
.lead strong { color: var(--text-primary); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.cta-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Stats card ───────────────────────────────────────────────── */
.stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 36px 30px 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stats-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(94, 200, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.stats-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 24px;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
}
.stat {
  background: var(--bg-card-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px 22px;
}
.stat-value {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.35;
}

/* ─── Section base ─────────────────────────────────────────────── */
/* Compact shared spacing: adjacent section content stays about 45px apart. */
section { padding: 22.5px 0; }
section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 56px;
  max-width: 760px;
}

/* ─── Feature grid ─────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.2s, border-color 0.2s;
  min-width: 0;
  overflow-wrap: anywhere;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5EC8FF 0%, #2D8DFF 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-icon::before {
  content: attr(data-glyph);
}
.feature-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ─── Steps ────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 28px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5EC8FF 0%, #2D8DFF 80%);
  color: #061427;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.steps h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 8px;
}
.steps p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ─── FAQ ──────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.faq-grid details {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 0;
  overflow-wrap: anywhere;
}
.faq-grid details[open] { border-color: var(--border-strong); }
.faq-grid summary {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text-primary);
  outline: none;
  list-style: none;
  padding-right: 28px;
  position: relative;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-grid details[open] summary::after { content: '−'; }
.faq-grid p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 14px 0 0;
  line-height: 1.6;
}
html[dir="rtl"] .faq-grid summary { padding-right: 0; padding-left: 28px; }
html[dir="rtl"] .faq-grid summary::after { right: auto; left: 0; }

/* ─── Bottom CTA ───────────────────────────────────────────────── */
.bottom-cta {
  padding: 25px 0 30px;
  text-align: center;
}
.bottom-cta h2 {
  margin: 0 auto 14px;
}
.bottom-cta p {
  color: var(--text-secondary);
  margin: 0 0 30px;
  font-size: 17px;
}
.bottom-cta .cta-meta { margin-top: 14px; }

/* ─── Footer ───────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
  background: rgba(6, 20, 39, 0.7);
}
.footer-grid {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Dodo checkout */
.pricing-section { padding: 78px 0; background: rgba(9, 27, 64, 0.72); }
.pricing-lead { max-width: 760px; color: var(--text-secondary); }
.checkout-email-label { display: block; margin: 24px 0 8px; font-weight: 700; }
.checkout-email {
  width: min(460px, 100%);
  height: 46px;
  padding: 0 14px;
  color: #fff;
  background: #123d72;
  border: 1px solid #5ec8ff;
  border-radius: 8px;
  font: inherit;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.pricing-card { min-width: 0; padding: 24px; border: 1px solid rgba(94, 200, 255, .5); border-radius: 14px; background: #0b234a; overflow-wrap: anywhere; }
.pricing-card.featured { border-color: #5ec8ff; box-shadow: 0 0 0 2px rgba(94, 200, 255, .15); }
.pricing-card h3 { margin-top: 0; }
.pricing-price { color: #fff; font-size: 34px; font-weight: 800; }
.pricing-card .checkout-button { width: 100%; margin-top: 10px; white-space: normal; }
.checkout-message { min-height: 24px; color: #ffd37a; }
.pricing-note { color: var(--text-secondary); font-size: 13px; }

.payment-result-page {
  min-height: calc(100vh - 216px);
  display: grid;
  place-items: center;
  padding: 36px 32px 60px;
}

.payment-result-card {
  width: min(620px, 100%);
  padding: 28px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--bg-card);
  overflow-wrap: anywhere;
}

.payment-result-card h1 {
  margin-bottom: 18px;
  font-size: 36px;
}

.payment-result-card a { color: #bfe7ff; }

.payment-result-status {
  padding: 12px 14px;
  border: 1px solid rgba(94, 200, 255, .32);
  border-radius: 10px;
  color: var(--text-secondary);
  background: rgba(94, 200, 255, .07);
}

.payment-result-status[data-state="success"] {
  border-color: rgba(92, 230, 167, .55);
  color: #a9f5cf;
  background: rgba(92, 230, 167, .08);
}

.payment-result-status[data-state="error"] {
  border-color: rgba(255, 143, 163, .55);
  color: #ffb5c2;
  background: rgba(255, 143, 163, .08);
}

.payment-result-license-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}

.payment-result-license-row[hidden] { display: none; }

.payment-result-license {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(169, 245, 207, .45);
  border-radius: 8px;
  color: #fff;
  background: rgba(3, 24, 54, .55);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.5;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  overflow-wrap: anywhere;
  user-select: all;
}

.payment-result-copy {
  flex: 0 0 auto;
  min-width: 92px;
  padding-inline: 18px;
}

.payment-result-copy-feedback {
  display: block;
  margin-top: 8px;
  color: #ffd37a;
}

.payment-result-copy-feedback[hidden] { display: none; }

.payment-result-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.payment-result-actions .btn[hidden] { display: none; }

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats-card { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  section { padding: 20px 0; }
  .nav-cta { display: none; }
  .header-grid { align-items: flex-start; gap: 14px; flex-wrap: wrap; }
  .brand { flex: 1 1 190px; }
  .header-actions { flex: 1 1 100%; }
  .lang-select { width: min(220px, 100%); }
  .payment-result-page { padding: 24px 22px 42px; }
  .payment-result-card { padding: 22px; }
  .payment-result-card h1 { font-size: 30px; }
  .payment-result-license-row { align-items: stretch; flex-direction: column; }
  .payment-result-copy { width: 100%; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links { margin: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
}
