/* Aivaldi – grön profil ("Signatur grön"). Färger som variabler; byt här, inte i komponenterna. */
:root {
  --bg: #0A1F14;
  --bg-2: #0E2819;
  --surface: #11301F;
  --line: rgba(143, 227, 170, .16);
  --green: #5FD38A;
  --green-2: #3FBF73;
  --mint: #B7F0C6;
  --text: #EAF5EC;
  --muted: #A7C1AF;
  --ink: #07160D;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.noscript { padding: 40px 24px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--green); color: var(--ink); box-shadow: 0 0 0 0 rgba(95, 211, 138, 0); }
.btn-primary:hover { background: #7BE0A0; box-shadow: 0 6px 28px rgba(95, 211, 138, .35); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(234, 245, 236, .55); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); color: var(--mint); }
.btn-sm { min-height: 42px; padding: 0 22px; font-size: 15px; }

/* ---------- Sidhuvud ---------- */
.site-header { position: sticky; top: 0; z-index: 20; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.open { background: rgba(10, 31, 20, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { border-radius: 9px; }
.wordmark { font-family: var(--sans); font-weight: 600; font-size: 25px; letter-spacing: -.02em; color: var(--text); }
.wordmark .ai { color: var(--green); }
.nav { display: flex; align-items: center; gap: 34px; font-size: 15.5px; }
.nav a:not(.btn) { text-decoration: none; color: var(--text); opacity: .88; padding: 10px 0; }
.nav a:not(.btn):hover { opacity: 1; color: var(--mint); }
.menu-btn { display: none; background: none; border: 0; padding: 12px; margin-right: -12px; cursor: pointer; }
.menu-btn i { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.open .menu-btn i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.open .menu-btn i:nth-child(3) { opacity: 0; }
.open .menu-btn i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hjälte ---------- */
.hero {
  position: relative; overflow: hidden; padding: 40px 0 56px;
  background:
    radial-gradient(900px 600px at 78% 30%, rgba(63, 191, 115, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(63, 191, 115, .07), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 4.3vw, 64px); line-height: 1.04; margin-bottom: 26px; }
.h-line { display: block; }
@media (min-width: 961px) { .h-line { white-space: nowrap; } }
.h-strong { font-weight: 700; }
.h-accent { color: var(--green); font-weight: 500; }
.h-light { font-weight: 400; color: #D6E6DA; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual { position: relative; aspect-ratio: 600 / 560; width: 100%; max-width: 620px; justify-self: end; }
.hero-visual .net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.node { animation: twinkle 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.card {
  position: absolute; border-radius: 14px; padding: 12px 14px;
  background: linear-gradient(160deg, rgba(30, 64, 44, .78), rgba(14, 38, 24, .82));
  border: 1px solid rgba(143, 227, 170, .22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.card-chart { right: -5%; top: 1%; width: 31%; animation-delay: -2s; }
.card-mini { left: 6%; bottom: 14%; width: 20%; height: 18%; animation-delay: -4s; }
.card-ring { right: 2%; bottom: 8%; width: 32%; display: flex; gap: 12px; align-items: center; animation-delay: -1s; }
.card-dots { display: flex; gap: 4px; margin-bottom: 8px; }
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(234, 245, 236, .35); }
.card-lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-lines span { display: block; height: 5px; border-radius: 3px; background: rgba(183, 240, 198, .3); }
.card-chart .card-lines { margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6%; height: 84px; }
.card-mini .bars { height: 100%; }
.bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--mint), var(--green-2)); opacity: .9; }
.ring { width: 42px; height: 42px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(183, 240, 198, .2); stroke-width: 5; }
.ring .ring-val { stroke: var(--green); stroke-dasharray: 80 107; stroke-linecap: round; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.pillar {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; text-decoration: none;
  background: rgba(17, 48, 31, .6); border: 1px solid var(--line); transition: border-color .2s, background .2s;
}
.pillar:hover { border-color: rgba(95, 211, 138, .5); background: rgba(17, 48, 31, .9); }
.pillar .icon { width: 26px; height: 26px; color: var(--green); flex: none; margin-top: 2px; }
.pillar-body { display: flex; flex-direction: column; gap: 4px; }
.pillar-body strong { font-size: 17px; }
.pillar-body span { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Sektioner ---------- */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; margin-bottom: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.prose { display: flex; flex-direction: column; gap: 18px; color: #CFE0D4; font-size: 18px; }
.prose-lead { color: var(--muted); font-size: 18px; max-width: 620px; }

.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.model-card {
  display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.num { font-family: var(--serif); font-size: 20px; color: var(--green); }
.model-card h3 { font-size: 30px; }
.model-card p { color: var(--muted); }
.more { margin-top: auto; padding-top: 8px; color: var(--mint); font-weight: 600; text-decoration: none; }
.more:hover { color: var(--green); text-decoration: underline; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.checks svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

.story-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 56px; align-items: center; }
.story-fork { width: 120px; height: auto; justify-self: center; filter: drop-shadow(0 0 24px rgba(95, 211, 138, .35)); }

.contact { background: radial-gradient(700px 400px at 50% 0%, rgba(63, 191, 115, .18), transparent 70%), var(--bg-2); text-align: center; }
.contact-box { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.contact-box h2 { max-width: 760px; }
.contact-box .prose-lead { margin-bottom: 26px; }
.mail { margin-top: 16px; color: var(--muted); font-size: 15px; }
.mail:hover { color: var(--mint); }

/* ---------- Sidfot ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14.5px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer .wordmark { font-size: 21px; }
.site-footer .logo img { width: 30px; height: 30px; }
.powered { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Mobil / surfplatta ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 460px; margin-top: 8px; }
  .pillars, .model-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; background: rgba(10, 31, 20, .97); border-bottom: 1px solid var(--line);
  }
  .open .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 24px; }
  .lead, .prose, .prose-lead { font-size: 16.5px; }
  .actions .btn { flex: 1 1 auto; }
  .story-row { grid-template-columns: 1fr; gap: 24px; }
  .story-fork { width: 72px; justify-self: start; }
  .card-chart { width: 42%; }
  .card-ring { width: 40%; }
  .bars { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .node, .card { animation: none; }
}
