@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0b10;
  --bg-2: #0f1119;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.09);
  --accent: #6c8cff;
  --accent-2: #a78bfa;
  --accent-grad: linear-gradient(135deg, #6c8cff, #a78bfa);
  --text: #f3f4f8;
  --text-muted: #9299ab;
  --text-faint: #565c6c;
  --danger: #ff6b6b;
  --gold: #f5c451;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(ellipse 700px 500px at 10% -5%, rgba(108, 140, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(167, 139, 250, 0.10), transparent 60%),
    radial-gradient(ellipse 900px 600px at 50% 110%, rgba(108, 140, 255, 0.08), transparent 60%);
  background-attachment: fixed;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mono { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select {
  font-family: inherit; font-size: 0.95rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.06); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }

label.checkbox { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--text-muted); cursor: pointer; padding: 0.5rem 0; }
label.checkbox input { width: auto; accent-color: var(--accent); }

#app { min-height: 100vh; display: flex; flex-direction: column; animation: fade-in 0.35s var(--ease); }

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glow-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.glass { background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid var(--glass-border); }

/* ---------- Topbar ---------- */

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(10, 11, 16, 0.72); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--glass-border); padding: 0 2rem; }
.topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; height: 66px; }
.brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; cursor: pointer; transition: opacity 0.15s ease; }
.brand:hover { opacity: 0.8; }

.tabs { display: flex; gap: 0.3rem; flex: 1; overflow-x: auto; }
.tab { position: relative; padding: 0.5rem 0.9rem; font-size: 0.87rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; border-radius: var(--radius-sm); transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.tab:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.tab.active { color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: -1px; height: 2px; background: var(--accent-grad); border-radius: 2px; animation: fade 0.2s ease; }

.topbar-actions { display: flex; align-items: center; gap: 0.7rem; }

.list-switcher { position: relative; }
.list-switcher-btn { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--text); padding: 0.42rem 0.85rem; border: 1px solid var(--glass-border); border-radius: 20px; background: var(--glass); transition: border-color 0.2s ease, background 0.2s ease; }
.list-switcher-btn:hover { border-color: rgba(255,255,255,0.2); background: var(--glass-strong); }
.list-dropdown { position: absolute; right: 0; top: calc(100% + 10px); background: rgba(20, 22, 30, 0.88); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border: 1px solid var(--glass-border); border-radius: var(--radius); min-width: 230px; box-shadow: var(--shadow); overflow: hidden; z-index: 30; animation: pop 0.16s var(--ease); }
.list-dropdown-item { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem; font-size: 0.85rem; border-bottom: 1px solid var(--glass-border); transition: background 0.15s ease; }
.list-dropdown-item:hover { background: rgba(255,255,255,0.05); }
.list-dropdown-item.active { color: var(--accent-2); font-weight: 700; }
.list-dropdown-footer { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.list-dropdown-footer button { font-size: 0.8rem; text-align: left; padding: 0.55rem 0.65rem; border-radius: var(--radius-sm); color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; transition: background 0.15s ease, color 0.15s ease; }
.list-dropdown-footer button:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.user-chip { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); }
.user-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: glow-pulse 2.4s ease infinite; }
.icon-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-muted); transition: background 0.2s ease, color 0.2s ease; }
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }

main { flex: 1; max-width: 1280px; margin: 0 auto; width: 100%; padding: 2.2rem 2rem 5rem; animation: fade-in 0.3s var(--ease); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.9rem; flex-wrap: wrap; }
.page-head h1 { font-size: 2rem; margin: 0 0 0.3rem; }
.page-head p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.page-actions { display: flex; gap: 0.6rem; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; transition: transform 0.15s var(--ease), box-shadow 0.2s ease, background 0.2s ease, opacity 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 20px rgba(108,140,255,0.25); }
.btn-primary:hover { box-shadow: 0 6px 26px rgba(108,140,255,0.4); transform: translateY(-1px); }
.btn-ghost { background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); }
.btn-ghost:hover { background: var(--glass-strong); }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(255,107,107,0.4); }
.btn-danger:hover { background: rgba(255,107,107,0.1); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.search-row { position: relative; max-width: 420px; }
.search-row input { padding-left: 2.4rem; }
.search-row svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--text-faint); }

/* ---------- Grid + glass cards ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }

.card { position: relative; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease; animation: rise 0.45s var(--ease) backwards; }
.card:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow); border-color: rgba(108,140,255,0.35); }
.card-poster { aspect-ratio: 2 / 3; background: var(--bg-2); position: relative; overflow: hidden; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.card:hover .card-poster img { transform: scale(1.06); }
.card-poster.no-image { display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.2rem; }

.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,14,0.94) 0%, rgba(8,9,14,0.35) 45%, transparent 68%); display: flex; flex-direction: column; justify-content: flex-end; padding: 0.75rem 0.7rem; opacity: 0; transition: opacity 0.25s ease; }
.card:hover .card-overlay { opacity: 1; }
.card-rating { position: absolute; top: 0.55rem; right: 0.55rem; background: rgba(10,11,16,0.7); backdrop-filter: blur(6px); color: var(--gold); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.42rem; border-radius: 6px; border: 1px solid rgba(245,196,81,0.3); }
.card-badge { position: absolute; top: 0.55rem; left: 0.55rem; background: rgba(108,140,255,0.9); backdrop-filter: blur(6px); color: #fff; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.22rem 0.45rem; border-radius: 6px; }

.card-actions { position: absolute; bottom: 0.6rem; left: 0.6rem; display: flex; gap: 0.35rem; opacity: 0; transition: opacity 0.2s ease; z-index: 2; }
.card:hover .card-actions { opacity: 1; }
.card-action-btn { width: 27px; height: 27px; border-radius: 50%; background: rgba(10,11,16,0.75); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: var(--text); transition: background 0.15s ease, transform 0.15s ease; }
.card-action-btn:hover { background: var(--accent); transform: scale(1.12); }
.card-action-btn.danger:hover { background: var(--danger); }

.card-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.87rem; line-height: 1.25; margin: 0 0 0.2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 0.72rem; color: var(--text-muted); }

.empty-state { text-align: center; padding: 5rem 1rem; color: var(--text-muted); }
.empty-state .display { font-size: 1.5rem; color: var(--text); margin-bottom: 0.5rem; }

/* ---------- Modal ---------- */

.modal-backdrop { position: fixed; inset: 0; background: rgba(5,6,10,0.75); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1.25rem; animation: fade 0.18s ease; }
.modal { background: rgba(18, 20, 28, 0.85); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%); border: 1px solid var(--glass-border); border-radius: 16px; width: 100%; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; animation: pop 0.2s var(--ease); }
.modal-sm { max-width: 400px; }
.modal-md { max-width: 540px; }
.modal-lg { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--glass-border); }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: 1.6rem; }
.modal-foot { padding: 1.1rem 1.6rem; border-top: 1px solid var(--glass-border); display: flex; justify-content: flex-end; gap: 0.6rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.76rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.form-error { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.4); color: #ffb3b3; font-size: 0.85rem; padding: 0.65rem 0.9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }

.auth-tabs { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); }
.auth-tab { padding-bottom: 0.7rem; font-size: 0.88rem; font-weight: 700; color: var(--text-faint); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s ease, border-color 0.2s ease; }
.auth-tab.active { color: var(--accent-2); border-color: var(--accent); }

/* ---------- Search results ---------- */

.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.result-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s ease, transform 0.2s ease; animation: rise 0.4s var(--ease) backwards; }
.result-card:hover { border-color: rgba(108,140,255,0.3); transform: translateY(-2px); }
.result-poster { aspect-ratio: 2/3; background: var(--bg-2); }
.result-poster img { width: 100%; height: 100%; object-fit: cover; }
.result-body { padding: 0.6rem 0.65rem; flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.result-title { font-size: 0.82rem; font-weight: 700; line-height: 1.2; }
.result-year { font-size: 0.72rem; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }
.result-add-row { display: flex; gap: 0.35rem; margin-top: auto; }
.result-add { flex: 1; font-size: 0.66rem; font-weight: 700; padding: 0.42rem 0.2rem; border-radius: 6px; text-align: center; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); transition: all 0.15s ease; }
.result-add:hover { border-color: var(--accent); color: var(--accent-2); }
.result-add.primary { background: var(--accent-grad); border: none; color: #fff; }
.result-add.added { background: #2f7a52; border: none; color: #fff; }

/* ---------- Detail view ---------- */

.detail-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; }
@media (max-width: 560px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-poster { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); aspect-ratio: 2/3; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.detail-title { font-size: 1.5rem; margin: 0 0 0.3rem; }
.detail-owner { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.detail-notes { font-size: 0.92rem; line-height: 1.55; color: var(--text); white-space: pre-wrap; margin-bottom: 1.2rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.tag-pill { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; border: 1px solid var(--glass-border); color: var(--text-muted); padding: 0.25rem 0.55rem; border-radius: 20px; }

.status-toggle { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.status-btn { flex: 1; padding: 0.55rem; text-align: center; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; border: 1px solid var(--glass-border); color: var(--text-muted); transition: all 0.2s ease; }
.status-btn.active { background: var(--accent-grad); color: #fff; border-color: transparent; }

.rating-block { border-top: 1px solid var(--glass-border); padding-top: 1.2rem; margin-top: 1.2rem; }
.rating-avg { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.8rem; }
.rating-avg .num { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 2.1rem; color: var(--gold); }
.rating-avg .label { font-size: 0.78rem; color: var(--text-muted); }
.rating-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.rating-list .row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); }
.rating-list .row b { color: var(--text); font-weight: 600; }

.star-input { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.star-btn { width: 32px; height: 32px; border: 1px solid var(--glass-border); border-radius: var(--radius-sm); font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: all 0.15s var(--ease); }
.star-btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.star-btn.active { background: var(--accent-grad); border-color: transparent; color: #fff; font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem; margin-top: 1rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); }

.loader { display: flex; align-items: center; justify-content: center; padding: 3rem; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--glass-border); border-top-color: var(--accent); border-radius: 50%; margin-right: 0.6rem; animation: spin 0.7s linear infinite; }

.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: rgba(18,20,28,0.9); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); color: var(--text); padding: 0.75rem 1.3rem; border-radius: 999px; font-size: 0.85rem; box-shadow: var(--shadow); z-index: 200; animation: toast-in 0.25s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Auth screen ---------- */

.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-card { width: 100%; max-width: 380px; background: var(--glass); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border: 1px solid var(--glass-border); border-radius: 18px; padding: 2.3rem 2rem; box-shadow: var(--shadow); animation: pop 0.3s var(--ease); }
.auth-brand { text-align: center; margin-bottom: 1.8rem; }
.auth-brand .display { font-size: 1.9rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.3rem; }
.auth-brand .mono { font-size: 0.68rem; color: var(--text-faint); letter-spacing: 0.14em; text-transform: uppercase; }

.close-x { font-size: 1.3rem; line-height: 1; color: var(--text-muted); transition: color 0.15s ease, transform 0.15s ease; }
.close-x:hover { color: var(--text); transform: rotate(90deg); }

/* ---------- List picker screen ---------- */

.list-picker { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.list-picker-inner { width: 100%; max-width: 460px; animation: fade-in 0.35s var(--ease); }
.list-picker-inner .display { font-size: 1.8rem; text-align: center; margin-bottom: 0.4rem; }
.list-picker-inner p.sub { text-align: center; color: var(--text-muted); margin: 0 0 2rem; font-size: 0.9rem; }
.picker-card { background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1rem; }
.picker-card h3 { margin: 0 0 0.9rem; font-size: 1rem; }
.divider { text-align: center; color: var(--text-faint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 1.5rem 0; }

/* ---------- Todos ---------- */

.todo-list { display: flex; flex-direction: column; gap: 0.5rem; max-width: 640px; }
.todo-item { display: flex; align-items: center; gap: 0.8rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 0.8rem 1rem; transition: border-color 0.2s ease, transform 0.2s ease; animation: rise 0.3s var(--ease) backwards; }
.todo-item:hover { border-color: rgba(108,140,255,0.25); }
.todo-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--glass-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s var(--ease); }
.todo-check.done { background: var(--accent-grad); border-color: transparent; }
.todo-text { flex: 1; font-size: 0.92rem; }
.todo-text.done { color: var(--text-faint); text-decoration: line-through; }
.todo-del { color: var(--text-faint); font-size: 1.1rem; transition: color 0.15s ease; }
.todo-del:hover { color: var(--danger); }
.todo-add-row { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; max-width: 640px; }
.todo-add-row input { flex: 1; }

/* ---------- Settings modal ---------- */

.invite-box { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.04); border: 1px dashed var(--glass-border); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; margin-bottom: 1.1rem; }
.invite-code { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); }

/* ---------- Homepage ---------- */

.home-nav { position: sticky; top: 0; z-index: 20; background: rgba(10,11,16,0.6); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--glass-border); }
.home-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; height: 66px; display: flex; align-items: center; justify-content: space-between; }
.home-nav-links { display: flex; gap: 1.8rem; }
.home-nav-links a { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s ease; }
.home-nav-links a:hover { color: var(--text); }

.hero { max-width: 1100px; margin: 0 auto; padding: 7rem 2rem 6rem; text-align: center; position: relative; }
.hero .eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.2rem; animation: fade-in 0.5s var(--ease) backwards; animation-delay: 0.05s; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; margin: 0 0 1.3rem; animation: fade-in 0.6s var(--ease) backwards; animation-delay: 0.1s; }
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 2.2rem; line-height: 1.6; animation: fade-in 0.6s var(--ease) backwards; animation-delay: 0.18s; }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; animation: fade-in 0.6s var(--ease) backwards; animation-delay: 0.26s; }

.orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.35; pointer-events: none; z-index: -1; animation: float 8s ease-in-out infinite; }
.orb-1 { width: 380px; height: 380px; background: var(--accent); top: -100px; left: -100px; }
.orb-2 { width: 420px; height: 420px; background: var(--accent-2); bottom: -150px; right: -100px; animation-delay: -3s; }

.section { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
.section-head { margin-bottom: 2.2rem; }
.section-head .eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.6rem; }
.section-head h2 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.section-head p { color: var(--text-muted); margin: 0; font-size: 0.95rem; max-width: 560px; }

.project-card { background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1rem; transition: transform 0.25s var(--ease), border-color 0.25s ease; animation: rise 0.5s var(--ease) backwards; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(108,140,255,0.3); }
.project-status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-2); margin-bottom: 0.7rem; }
.project-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); animation: glow-pulse 2s ease infinite; }
.project-card h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.project-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.addon-card { background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.8rem; cursor: pointer; transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease; animation: rise 0.5s var(--ease) backwards; }
.addon-card:hover { transform: translateY(-5px); border-color: rgba(108,140,255,0.4); box-shadow: var(--shadow); }
.addon-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.addon-card h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.addon-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin: 0 0 1rem; }
.addon-card .link { font-size: 0.8rem; font-weight: 700; color: var(--accent-2); display: inline-flex; align-items: center; gap: 0.3rem; }

.footer { text-align: center; padding: 3rem 2rem; color: var(--text-faint); font-size: 0.82rem; border-top: 1px solid var(--glass-border); margin-top: 2rem; }
