@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg:           #eef1f4;
  --panel:        #ffffff;
  --panel-soft:   #f6f9f7;
  --border:       #dde3db;
  --border-green: #b2d4b8;
  --text:         #1a2318;
  --muted:        #546358;
  --green:        #2f7d3a;
  --green-dark:   #245f2c;
  --green-light:  #4a9e57;
  --green-pale:   #e8f4ea;
  --green-mist:   #f3faf4;
  --blue:         #2c3e50;
  --amber:        #92600a;
  --amber-bg:     #fffbf0;
  --amber-border: #e8c97a;
  --shadow-sm:    0 2px 8px rgba(20,45,25,0.06);
  --shadow-md:    0 8px 24px rgba(20,45,25,0.08);
  --shadow-lg:    0 16px 40px rgba(20,45,25,0.10);
  --max:          1060px;
  --radius:       16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 500px at 100% 0%, #ddeee1 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at 0% 100%, #e2ecdd 0%, transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ───────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-green);
  background: #fff;
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; gap: 0; }
.brand      { font-size: 15px; font-weight: 800; color: var(--green); letter-spacing: -0.2px; }
.subtitle   { font-size: 11px; color: var(--muted); font-weight: 500; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 14px;
  transition: background 150ms, border-color 150ms, color 150ms;
  background: transparent;
}

.nav-links a:hover {
  background: var(--green-pale);
  border-color: var(--border-green);
  color: var(--green);
}

.nav-links a.active {
  background: var(--green-pale);
  border-color: var(--border-green);
  color: var(--green-dark);
}

/* ── PAGE WRAPPER ─────────────────────────────────────── */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.surface {
  display: grid;
  gap: 18px;
}

.surface.route-enter > * {
  animation: fade-up 280ms ease both;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  padding: 44px 44px 36px;
  position: relative;
  z-index: 1;
}

/* subtle radial glow top-right */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 380px;
  background: radial-gradient(ellipse, #c8eacf55 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  border: 1px solid var(--border-green);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 20px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.3; }
}

.hero-headline {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 640px;
  letter-spacing: -0.5px;
}

.hero-headline em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 32px;
  font-weight: 400;
}

/* ── FEATURE PILLS ────────────────────────────────────── */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 150ms, box-shadow 150ms, transform 120ms;
  cursor: default;
}

.pill:hover {
  border-color: var(--border-green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.pill-icon { font-size: 14px; line-height: 1; }

/* ── FEATURE CARDS ────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.feat-card {
  background: var(--green-mist);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 150ms, transform 120ms;
}

.feat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feat-card-icon  { font-size: 20px; margin-bottom: 10px; }
.feat-card-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 7px;
}
.feat-card-desc  { font-size: 13px; line-height: 1.6; color: var(--muted); flex: 1; }

.feat-tags {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.feat-tag {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-green);
  color: var(--green);
  border-radius: 6px;
  padding: 3px 9px;
}

/* ── INSTALL ROW ──────────────────────────────────────── */
.install-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.install-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.browser-card {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px 9px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  transition: transform 140ms, box-shadow 140ms, border-color 140ms;
}

.browser-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-green);
  box-shadow: var(--shadow-md);
}

.browser-card img {
  width: 26px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* ── DISCLAIMER ───────────────────────────────────────── */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--amber);
}

.notice-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.notice strong { font-weight: 700; }

/* ── DOC CARDS GRID ───────────────────────────────────── */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 140ms, box-shadow 140ms, border-color 140ms;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-green);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 36px; height: 36px;
  background: var(--green-pale);
  border: 1px solid var(--border-green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
}

.card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  margin-top: 16px;
  white-space: nowrap;
  align-self: flex-start;
  transition: border-color 140ms, color 140ms;
}

.card-link:hover { border-color: var(--green); color: var(--green-dark); }
.card-link::after { content: '→'; font-size: 12px; }

/* ── LEGAL ARTICLE ────────────────────────────────────── */
.article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.legal-rich h1,
.legal-rich h2,
.legal-rich h3 {
  line-height: 1.3;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.legal-rich h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--green-pale);
  padding-bottom: 10px;
}

.legal-rich h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  color: var(--green);
}

.legal-rich h3 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
  color: var(--blue);
}

.legal-rich p { color: #2a3528; margin-bottom: 14px; line-height: 1.75; }
.legal-rich em { color: var(--muted); font-style: italic; }
.legal-rich strong { color: var(--text); font-weight: 700; }

.legal-rich ul, .legal-rich ol {
  margin: 8px 0 16px;
  padding-left: 26px;
}

.legal-rich li {
  color: #2a3528;
  margin: 6px 0;
  line-height: 1.7;
}

.legal-rich li::marker { color: var(--green); }

.legal-rich code {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 12px;
  color: var(--green-dark);
}

.legal-rich blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--green-light);
  background: var(--green-mist);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-style: italic;
}

.legal-rich hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.legal-rich a { color: var(--green); font-weight: 600; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  color: var(--muted);
  text-align: center;
  font-size: 12.5px;
  padding: 18px 20px;
  font-weight: 500;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 860px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 32px 28px 28px; }
}

@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 24px 20px 20px; }
  .nav { flex-direction: column; align-items: flex-start; }
  .article { padding: 24px 20px; }
  .browser-card { width: 100%; justify-content: center; }
  .install-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .surface.route-enter > *, .pill, .card, .feat-card, .browser-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
