/* AI Quick Translate — site styles */

/* Accessibility: skip link for keyboard / screen readers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; text-decoration: none; }

:root {
  --primary: #ff6600;
  --primary-dark: #e85a00;
  --primary-light: #ff8533;
  --gradient: linear-gradient(135deg, #ff6600 0%, #ff8533 50%, #ffaa66 100%);
  --bg: #ffffff;
  --bg-soft: #fff7f0;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-light: #888;
  --border: #f0e6dc;
  --shadow-sm: 0 2px 8px rgba(255, 102, 0, 0.08);
  --shadow: 0 8px 24px rgba(255, 102, 0, 0.12);
  --shadow-lg: 0 20px 48px rgba(255, 102, 0, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand span { font-size: 16px; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links .btn-cta { color: white; }

@media (max-width: 640px) {
  .nav-links a:not(.btn-cta) { display: none; }
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow);
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); color: white; text-decoration: none; }

.btn-ghost {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 102, 0, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 133, 51, 0.10) 0%, transparent 45%),
    var(--bg);
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #1a1a1a 0%, #404040 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 34px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }

.play-badge img { height: 56px; }
.play-badge:hover { text-decoration: none; }

.hero .micro {
  margin-top: 16px;
  color: var(--text-light);
  font-size: 13px;
}

/* ── Sections ───────────────────────────────────────── */
section { padding: 80px 0; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ── Features grid ──────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 102, 0, 0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

/* ── Screenshots ────────────────────────────────────── */
.screenshots { background: var(--bg-soft); }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.shot-frame {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  padding: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shot-frame:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot-frame img { border-radius: 18px; }
.shot-caption { margin-top: 16px; font-weight: 600; color: var(--text); }

/* ── Languages ──────────────────────────────────────── */
.languages { text-align: center; }
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  max-width: 800px;
  margin: 0 auto;
}
.lang-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
  transition: all 0.15s ease;
}
.lang-pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ── CTA strip ──────────────────────────────────────── */
.cta-strip {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius-lg);
  margin: 40px auto;
  max-width: 1080px;
  box-shadow: var(--shadow-lg);
}
.cta-strip h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
}
.cta-strip p { font-size: 17px; opacity: 0.95; margin-bottom: 26px; }
.cta-strip .btn-ghost { background: white; color: var(--primary-dark); border: none; }
.cta-strip .btn-ghost:hover { color: var(--primary-dark); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: #1a1a1a;
  color: #b8b8b8;
  padding: 56px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: white; font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-grid a { color: #b8b8b8; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--primary-light); }
.footer-brand p { margin-top: 12px; max-width: 400px; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #888;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 40px; }
}

/* ── Legal page (privacy / terms) ───────────────────── */
.legal-page {
  padding: 56px 0 80px;
  background: var(--bg);
}
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal .legal-meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 8px;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.legal h1 + .legal-meta { margin-bottom: 32px; }
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal p { margin-bottom: 14px; color: #2a2a2a; }
.legal ul, .legal ol { margin: 0 0 14px 24px; }
.legal ul li, .legal ol li { margin-bottom: 6px; color: #2a2a2a; }
.legal strong { color: var(--text); }
.legal .toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 36px;
}
.legal .toc h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.legal .toc ol { margin: 0 0 0 22px; }
.legal .toc li { margin-bottom: 4px; }
.legal .toc a { color: var(--text); }
.legal .toc a:hover { color: var(--primary); }

/* ── Use cases grid ─────────────────────────────────── */
.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.use-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.use-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 102, 0, 0.3);
}
.use-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.use-card p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ── FAQ ────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(255, 102, 0, 0.4);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 48px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--primary); }
.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 404 page ───────────────────────────────────────── */
.not-found {
  min-height: calc(100vh - 64px - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 102, 0, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 133, 51, 0.10) 0%, transparent 50%),
    var(--bg);
}
.not-found .nf-inner { max-width: 540px; }
.not-found .nf-code {
  font-size: clamp(80px, 14vw, 140px);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
.not-found h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.not-found p { color: var(--text-muted); font-size: 17px; margin-bottom: 28px; }
.not-found .nf-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
