/* Hero-critical — homepage above-the-fold.
   Speglar .com:s "hero-mesh" approach (radial spotlights, ljus bakgrund, asymmetrisk grid). */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(circle at 18% 20%, rgba(39, 94, 156, 0.16) 0%, rgba(39, 94, 156, 0) 44%),
        radial-gradient(circle at 84% 78%, rgba(227, 196, 57, 0.18) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(128deg, #f9fafb 0%, #f1f3f6 52%, #e9eef5 100%);
    border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(77, 159, 255, 0.18) 0%, rgba(77, 159, 255, 0) 44%),
        radial-gradient(circle at 84% 78%, rgba(227, 196, 57, 0.10) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(128deg, #14181d 0%, #181c22 60%, #1a1f26 100%);
}

.hero__spotlights {
    position: absolute; inset: 0; pointer-events: none; z-index: -1;
}
.hero__spotlight {
    position: absolute; border-radius: 999px; filter: blur(74px); opacity: .42;
}
.hero__spotlight--1 { width: 360px; height: 360px; top: -84px; left: -56px; background: rgba(47, 119, 200, .26); }
.hero__spotlight--2 { width: 280px; height: 280px; top: 16%; right: -44px; background: rgba(227, 196, 57, .28); }
.hero__spotlight--3 { width: 300px; height: 300px; bottom: -92px; left: 36%; background: rgba(39, 94, 156, .20); }

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.74fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    min-height: 480px;
}

.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .35rem .85rem .35rem .4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: .82rem;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 500;
}
.hero__eyebrow::before {
    content: ""; width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    box-shadow: 0 0 0 3px var(--surface);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.6vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text);
}
.hero__title .accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 60%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-soft);
    max-width: 56ch;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__trust {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    align-items: center;
    font-size: .85rem; color: var(--text-muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust svg { color: var(--accent); flex: 0 0 auto; }

/* CTA buttons (minimal i critical, full styling i main.css) */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .85rem 1.4rem;
    border-radius: var(--radius-pill);
    font-weight: 600; font-size: .96rem;
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-muted); border-color: var(--text-muted); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn .arrow { transition: transform var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero side panel — produktöversikt-kort istället för terminal */
.hero__panel {
    position: relative;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.hero__panel-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.hero__panel-head h3 {
    font-size: .95rem; font-weight: 600; color: var(--text);
    letter-spacing: -.005em;
}
.hero__panel-head small {
    font-size: .78rem; color: var(--text-muted);
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 500;
}
.hero__panel-head small::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .2);
    animation: wfc-pulse 2s ease-in-out infinite;
}
@keyframes wfc-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
    50%      { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}

.hero__panel-list { display: flex; flex-direction: column; gap: .5rem; }
.hero__panel-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .65rem .8rem;
    border-radius: var(--radius-sm);
    transition: background var(--ease);
}
.hero__panel-item:hover { background: var(--surface-muted); }
.hero__panel-icon {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
}
.hero__panel-name { font-weight: 600; font-size: .92rem; color: var(--text); }
.hero__panel-name span { display: block; font-size: .78rem; font-weight: 400; color: var(--text-muted); margin-top: 1px; }
.hero__panel-status {
    font-size: .72rem; font-weight: 600;
    color: #16a34a;
    padding: .2rem .55rem;
    border-radius: var(--radius-pill);
    background: rgba(22, 163, 74, .1);
    letter-spacing: .04em; text-transform: uppercase;
}

@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; min-height: 0; }
}
