/* ====================================
   Magnus Bonnevier — Landing Page v1.0
   Mobile-first, modern, light, bold
   ==================================== */

:root {
  --bg:           #f8f9fc;
  --bg-alt:       #ffffff;
  --bg-card:      #ffffff;
  --bg-hover:     #f1f3f9;
  --text:         #0f172a;
  --text-dim:     #64748b;
  --text-muted:   #94a3b8;
  --accent:       #6366f1;
  --accent-2:     #ec4899;
  --accent-3:     #f59e0b;
  --accent-light: #eef2ff;
  --border:       #e2e8f0;
  --radius:       20px;
  --radius-sm:    14px;
  --max-width:    820px;
  --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md:    0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg:    0 12px 40px rgba(15, 23, 42, 0.08);
  --nav-bg:       rgba(248, 249, 252, 0.85);
  --hero-bg:      radial-gradient(ellipse at top, #eef2ff 0%, #f8f9fc 60%);
  --avatar-border: #0f172a;
  --badge-archived-bg:   #f1f5f9;
  --badge-archived-text: #94a3b8;
  --badge-update-bg:     #fef3c7;
  --badge-update-text:   #d97706;
  --badge-fix-bg:        #f0fdf4;
  --badge-fix-text:      #16a34a;
  --btn-primary-bg:      #0f172a;
  --btn-primary-text:    #ffffff;
}

/* DARK MODE — växlas via data-theme på <html> (toggle-knapp i nav) */
[data-theme="dark"] {
  --bg:           #0f172a;
  --bg-alt:       #1e293b;
  --bg-card:      #1e293b;
  --bg-hover:     #334155;
  --text:         #f1f5f9;
  --text-dim:     #cbd5e1;
  --text-muted:   #94a3b8;
  --accent:       #818cf8;
  --accent-2:     #f472b6;
  --accent-3:     #fbbf24;
  --accent-light: #312e81;
  --border:       #334155;
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 12px 40px rgba(0, 0, 0, 0.5);
  --nav-bg:       rgba(15, 23, 42, 0.85);
  --hero-bg:      radial-gradient(ellipse at top, #1e293b 0%, #0f172a 60%);
  --avatar-border: #f1f5f9;
  --badge-archived-bg:   #334155;
  --badge-archived-text: #94a3b8;
  --badge-update-bg:     #78350f;
  --badge-update-text:   #fbbf24;
  --badge-fix-bg:        #14532d;
  --badge-fix-text:      #4ade80;
  --btn-primary-bg:      #000000;
  --btn-primary-text:    #ffffff;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Allt innehåll efter top-heron — eget lager ovanför den (z-0) */
.page-content {
  position: relative;
  z-index: 1;
  /* Pushar innehållet ner så top-heron (fixed) syns — bara index.html har denna wrapper */
  padding-top: 100vh;
  /* Div:en sträcker sig över hela sidan inkl. hero-området — låt klick falla igenom där det är tomt */
  pointer-events: none;
}

.page-content * {
  pointer-events: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.nav-logo .dot {
  color: var(--accent);
}

.nav-links {
  display: none;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* THEME TOGGLE */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 6px 10px;
  color: var(--text);
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-drawer .theme-toggle {
  margin: 8px 16px;
  align-self: flex-start;
  font-size: 1.1rem;
  padding: 10px 14px;
}

/* HAMBURGER TOGGLE — visible on mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* MOBILE DRAWER */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 24px;
  gap: 8px;
  transition: right 0.3s ease;
}

.nav-drawer a {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-drawer a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-dim);
  padding: 8px;
  line-height: 1;
}

.nav-close:hover { color: var(--text); }

.nav-drawer-copyright {
  margin-top: auto;
  padding: 14px 16px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* OVERLAY */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 250;
  transition: opacity 0.3s ease;
}

/* OPEN STATE */
body.nav-open .nav-drawer {
  right: 0;
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.nav-links a:hover { color: var(--accent); }

/* HERO */
.hero {
  padding: 60px 0 72px;
  text-align: center;
  background: var(--hero-bg);
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #ddd;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

[data-theme="dark"] .hero-badge {
  background: #000000;
  color: #ffffff;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* TOP HERO BANNER (test) */
.top-hero {
  background-color: #000000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-optimized-valerialu-leaves-4621334.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.top-hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.top-hero-title {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  margin-bottom: 12px;
}

.top-hero-subtitle {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin: 0 0 32px;
}

.top-hero-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.top-hero-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.top-hero-credit {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease;
}

.top-hero-credit:hover {
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .top-hero-title { font-size: 3.5rem; }
  .top-hero-subtitle { font-size: 1.25rem; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--bg-hover);
}

/* HERO STATS */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* HERO AVATAR */
.hero-avatar {
  margin: 0 auto 24px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--avatar-border);
  box-shadow: var(--shadow-md);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* HERO BADGE */
.hero-agents {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-agents .agents-label:not(:first-child) {
  margin-top: 20px;
}

.agents-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.agents-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.agent-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.agent-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.agent-logo {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
}

/* CLEAN LIST — no bullets, inside position */
.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  position: relative;
  padding-left: 0;
}
.hero-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.hero-links-list .links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
}

.text-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* CHANGELOG */
.changelog {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.changelog-date {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 100px;
  padding-top: 2px;
}

.changelog-content {
  flex: 1;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.changelog-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

.changelog-badge-new {
  background: var(--accent-light);
  color: var(--accent);
}

.changelog-badge-archived {
  background: var(--badge-archived-bg);
  color: var(--badge-archived-text);
}

.changelog-badge-update {
  background: var(--badge-update-bg);
  color: var(--badge-update-text);
}

.changelog-badge-fix {
  background: var(--badge-fix-bg);
  color: var(--badge-fix-text);
}

/* SECTIONS */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 32px;
}

.section-tag {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

/* ABOUT + TIPS (shared text styling) */
.about-text,
.tips-text,
.about-text p,
.tips-text p,
.about-text p span,
.tips-text p span {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.7;
}

.about-text p,
.tips-text p {
  margin-bottom: 16px;
}

.about-text p:last-child,
.tips-text p:last-child {
  margin-bottom: 0;
}

/* BENTO GRID */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.bento-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.bento-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* CONTACT */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.contact-card:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  font-weight: 600;
  font-size: 1rem;
}

.contact-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all 0.2s;
}

.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* FOOTER */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* TABLET / DESKTOP */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none; }
  .nav-overlay { display: none; }
  .hero { padding: 80px 0 96px; }
  .hero-title { font-size: 3.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .section { padding: 80px 0; }
  .section-title { font-size: 2.25rem; }
  .about-text { font-size: 1.2rem; }

  .changelog-item {
    flex-direction: row;
    gap: 16px;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .bento-lg { grid-column: span 2; }
  .bento-wide { grid-column: span 2; }
}

/* LARGE DESKTOP */
@media (min-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .bento-lg { grid-column: span 1; grid-row: span 2; }
  .bento-wide { grid-column: span 2; }
}

/* MOTION PREFERENCE */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}