/* Mano.ai — human-centered AI guide
   Theme via [data-theme] on <html>. Light default, dark toggle. */

:root,
html[data-theme="light"] {
  --bg: #faf8f4;
  --bg-alt: #f1ece3;
  --surface: #ffffff;
  --text: #1c1a17;
  --text-muted: #6b655c;
  --border: #e5ddd0;
  --accent: #5b4fd6;
  --accent-soft: #efecff;
  --accent-text: #ffffff;
  --warm: #c2691d;
  --warm-soft: #fdf1e3;
  --green: #1e7f4f;
  --green-soft: #e6f4ec;
  --blue: #1d5fc2;
  --blue-soft: #e8f0fd;
  --rose: #b23a6b;
  --rose-soft: #fbe9f1;
  --shadow: 0 2px 16px rgba(28, 26, 23, 0.07);
  --shadow-hover: 0 8px 28px rgba(28, 26, 23, 0.12);
  --header-bg: rgba(250, 248, 244, 0.88);
  --gradient-from: #5b4fd6;
  --gradient-to: #c2691d;
}

html[data-theme="dark"] {
  --bg: #141210;
  --bg-alt: #1d1a17;
  --surface: #221e1a;
  --text: #f0ebe3;
  --text-muted: #a89e90;
  --border: #37312b;
  --accent: #8f84ff;
  --accent-soft: #2b2860;
  --accent-text: #141210;
  --warm: #e89a4b;
  --warm-soft: #3a2a18;
  --green: #5cc98d;
  --green-soft: #173626;
  --blue: #6fa0f0;
  --blue-soft: #1a2a4a;
  --rose: #e57ba4;
  --rose-soft: #3d1f2c;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(20, 18, 16, 0.88);
  --gradient-from: #8f84ff;
  --gradient-to: #e89a4b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3,
.site-nav a, .btn, .brand-name,
.filter-btn, .card-tag {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.12; margin: 0 0 1.2rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 0.8rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 0.6rem 0 0.5rem; }

p { margin: 0 0 1rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 760px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--accent); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0.5rem; z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 0.85rem; padding-bottom: 0.85rem;
}

.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); }
.brand-mark { font-size: 1.5rem; color: var(--accent); }
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-dot { color: var(--accent); }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.site-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--accent-text) !important;
  padding: 0.5rem 1.1rem; border-radius: 999px;
}
html[data-theme="light"] .nav-cta { color: #fff !important; }
.nav-cta:hover { opacity: 0.9; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 50%;
  width: 2.4rem; height: 2.4rem; cursor: pointer;
  font-size: 1.1rem; display: grid; place-items: center;
  transition: transform 0.2s;
}
.theme-toggle:hover { transform: rotate(18deg); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 15% 10%, var(--accent-soft), transparent 70%),
              radial-gradient(500px 300px at 85% 20%, var(--warm-soft), transparent 70%);
  opacity: 0.7; pointer-events: none;
}
.hero-inner { position: relative; }

.eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(100deg, var(--gradient-from), var(--gradient-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; }

.hero-actions { display: flex; gap: 1rem; margin: 1.8rem 0 2.5rem; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.85rem 1.7rem; border-radius: 999px; font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  border: none; cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
html[data-theme="dark"] .btn-primary { color: #141210; }
.btn-primary:hover { box-shadow: var(--shadow-hover); opacity: 0.94; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.7rem; color: var(--accent); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-intro { color: var(--text-muted); max-width: 680px; font-size: 1.08rem; }

.disclaimer { font-size: 0.85rem; color: var(--text-muted); margin-top: 1.8rem; font-style: italic; }

/* ---------- Cards ---------- */
.cards-grid {
  display: grid; gap: 1.4rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.1rem; padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.25s, opacity 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card .best-for { font-size: 0.88rem; margin-bottom: 0; }
.card .best-for strong { color: var(--text); }

.card-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.28rem 0.75rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 0.4rem;
}
.card-tag.trend { background: var(--blue-soft); color: var(--blue); }
.card-tag.human { background: var(--rose-soft); color: var(--rose); }

.meta { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* Tool filter */
.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.8rem 0 0.4rem; }
.filter-btn {
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.55rem 1.15rem; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .filter-btn.active { color: #141210; }

.tool-card.hidden { display: none; }
.tool-card { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Essays ---------- */
.essay {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.1rem; padding: 2.2rem; margin-top: 1.8rem;
  box-shadow: var(--shadow);
}
.essay h3 { font-size: 1.45rem; margin-top: 0; }
.essay p { font-size: 1.06rem; }
.essay p:last-child { margin-bottom: 0; }

.pull-quote {
  margin: 3rem auto 0; max-width: 680px; text-align: center;
  font-size: 1.35rem; font-style: italic; color: var(--text);
  border: none; padding: 0 1rem;
}
.pull-quote em { color: var(--accent); font-style: italic; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.4rem; padding: 3rem; text-align: center;
  box-shadow: var(--shadow);
}
.newsletter-box h2 { margin-bottom: 0.6rem; }
.newsletter-box p { color: var(--text-muted); }
.newsletter-form { display: flex; gap: 0.7rem; margin-top: 1.6rem; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1 1 240px; max-width: 340px;
  padding: 0.85rem 1.2rem; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 1rem; font-family: inherit;
}
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-note { min-height: 1.4rem; font-size: 0.92rem; margin-top: 0.8rem; }
.form-note.success { color: var(--green); }
.form-note.error { color: var(--rose); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 420px; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--header-bg); backdrop-filter: blur(12px);
    flex-direction: column; align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem; gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  .hero { padding: 3.2rem 0 2.8rem; }
  .section { padding: 3rem 0; }
  .essay { padding: 1.5rem; }
  .newsletter-box { padding: 2rem 1.4rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { max-width: none; }
  .newsletter-form .btn { width: 100%; }
  .hero-stats { gap: 1.4rem; }
}
