/* Live Translator+ — ailivetranslator.app */

:root {
  --coral: #FF5D5D;
  --coral-soft: #FFECEC;
  --graphite: #26272B;
  --bg: #FFFFFF;
  --bg-alt: #F8F7F5;
  --surface: #FFFFFF;
  --text: #26272B;
  --text-muted: #6B6C72;
  --border: #ECEBE9;
  --shadow: 0 8px 30px rgba(38, 39, 43, 0.07);
  --radius: 24px;
}

:root[data-theme="dark"] {
  --coral-soft: rgba(255, 93, 93, 0.14);
  --bg: #1A1B1E;
  --bg-alt: #202124;
  --surface: #26272B;
  --text: #F4F4F5;
  --text-muted: #A5A6AC;
  --border: #35363B;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --coral-soft: rgba(255, 93, 93, 0.14);
    --bg: #1A1B1E;
    --bg-alt: #202124;
    --surface: #26272B;
    --text: #F4F4F5;
    --text-muted: #A5A6AC;
    --border: #35363B;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; }

h1, h2, h3 { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(255, 93, 93, 0.35); }

.btn-store {
  background: var(--graphite);
  color: #fff;
  font-weight: 500;
}
:root[data-theme="dark"] .btn-store { background: #fff; color: var(--graphite); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-store { background: #fff; color: var(--graphite); }
}
.btn-store:hover { box-shadow: var(--shadow); }

.btn-small { padding: 9px 20px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand img { border-radius: 9px; }

.site-nav { display: flex; gap: 22px; font-size: 0.92rem; color: var(--text-muted); }
.site-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--bg-alt); }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root:not([data-theme]) .icon-sun { display: none; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 72px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-icon { border-radius: 26px; box-shadow: 0 14px 40px rgba(255, 93, 93, 0.3); }
.hero-icon-small { border-radius: 18px; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); max-width: 760px; }
.hero-sub { font-size: 1.13rem; color: var(--text-muted); max-width: 620px; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 44px; }

.grid { display: grid; gap: 20px; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.quotes-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 1.5rem;
  margin-bottom: 16px;
  overflow: hidden;
}
.feature-icon svg { flex: 0 0 auto; }
.feature h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- steps ---------- */

.steps { list-style: none; display: grid; gap: 18px; max-width: 640px; margin: 0 auto; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
}
.step h3 { font-size: 1.04rem; margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- quotes ---------- */

.quote blockquote p { font-size: 0.98rem; }
.quote blockquote p::before { content: "“"; color: var(--coral); font-weight: 600; }
.quote blockquote p::after { content: "”"; color: var(--coral); font-weight: 600; }
.quote figcaption { margin-top: 16px; display: flex; flex-direction: column; }
.quote figcaption strong { font-weight: 500; }
.quote figcaption span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- faq ---------- */

.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 4px 22px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-inline-end: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--coral);
  font-size: 1.3rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 18px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); max-width: 680px; }

/* ---------- blog ---------- */

.blog-head { padding-bottom: 8px; text-align: center; }
.blog-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin-bottom: 12px; }

.post-list { display: grid; gap: 18px; }
.post-card { display: block; transition: transform 0.15s ease; }
.post-card:hover { transform: translateY(-3px); }
.post-card time { color: var(--text-muted); font-size: 0.82rem; }
.post-card h2 { font-size: 1.18rem; margin: 6px 0 8px; }
.post-card p { color: var(--text-muted); font-size: 0.95rem; }

.article h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); margin-bottom: 8px; }
.article-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 32px; }
.article-body h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.article-body h3 { font-size: 1.12rem; margin: 26px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-inline-start: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--coral); text-decoration: underline; }
.article-body code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--text); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 44px 0 56px; background: var(--bg-alt); }
.footer-inner { display: grid; gap: 20px; justify-items: start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; gap: 18px; font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-rights { font-size: 0.82rem; color: var(--text-muted); }

.lang-switcher { position: relative; font-size: 0.9rem; }
.lang-switcher summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher ul {
  list-style: none;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  max-width: 640px;
}
.lang-switcher li a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--text-muted); }
.lang-switcher li a:hover { background: var(--bg-alt); color: var(--text); }
.lang-switcher li.active a { color: var(--coral); font-weight: 500; }

/* ---------- language banner ---------- */

.lang-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 100;
  margin: 0 auto;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.lang-banner[hidden] { display: none; }
.lang-banner p { flex: 1 1 240px; font-size: 0.92rem; }
.lang-banner-actions { display: flex; gap: 10px; }
.lang-banner-actions .btn-small.btn-primary,
.lang-banner-actions a.btn-small { background: var(--coral); color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .site-nav { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
  .card { padding: 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-cta { display: none; }
  .store-buttons { flex-direction: column; align-items: stretch; }
  .btn-store { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post-card { transition: none; }
}
