/**
 * Sell2Win — Startsidan CSS
 * v1.0 — 2026-03-17
 * Mörkt tema, grön (#AAEF7A) + lila (#9B7BFF) accenter.
 * Portad från Loveable React-app.
 */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
    --bg:          #0D0D0D;
    --bg-card:     #161616;
    --bg-surface:  #1E1E1E;
    --border:      rgba(255,255,255,0.08);

    --green:       #AAEF7A;
    --green-dim:   rgba(170,239,122,0.15);
    --green-glow:  rgba(170,239,122,0.25);
    --purple:      #9B7BFF;
    --purple-dim:  rgba(155,123,255,0.15);
    --purple-glow: rgba(155,123,255,0.25);
    --red:         #FF3A3A;
    --red-dim:     rgba(255,58,58,0.15);

    --text-1:      #F0F0F0;
    --text-2:      #C0C0C0;
    --text-3:      #707070;

    --font:        'Inter', ui-sans-serif, system-ui, sans-serif;
    --radius:      16px;
    --radius-sm:   10px;

    --container:   1200px;
    --sp:          8px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.s2w-landing {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-1);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
em { font-style: italic; }

/* ============================================================
   LAYOUT
   ============================================================ */
.s2w-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 calc(var(--sp) * 3);
}

.s2w-section {
    padding: calc(var(--sp) * 12) 0;
}

.s2w-bg-card { background: var(--bg-card); }

.s2w-section-header { margin-bottom: calc(var(--sp) * 10); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.s2w-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: calc(var(--sp) * 2);
}

.s2w-h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-1);
    margin-bottom: calc(var(--sp) * 3);
}

.s2w-h2--center { text-align: center; }

.s2w-accent-green { color: var(--green); }
.s2w-accent-purple { color: var(--purple); }

.s2w-body-lg {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-2);
    max-width: 680px;
    margin-bottom: calc(var(--sp) * 6);
}
.s2w-body-lg--narrow { max-width: 560px; }
.s2w-body-lg--center { text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================================
   HEADER
   ============================================================ */
.s2w-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(13,13,13,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.s2w-header.scrolled {
    background: rgba(13,13,13,0.95);
}

.s2w-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 calc(var(--sp) * 3);
    height: 72px;
    display: flex;
    align-items: center;
    gap: calc(var(--sp) * 3);
}

.s2w-logo { display: flex; align-items: center; }
.s2w-logo-img { height: 28px; }
.s2w-logo-text {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.s2w-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 8px;
    margin-left: auto;
}

.s2w-nav-link {
    font-size: 13px;
    color: var(--text-2);
    padding: 6px 16px;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
}
.s2w-nav-link:hover {
    color: var(--text-1);
    background: rgba(255,255,255,0.06);
}

.s2w-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.s2w-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: all 0.25s;
}

.s2w-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
}
.s2w-mobile-link {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
}
.s2w-mobile-link:hover { color: var(--text-1); }
.s2w-mobile-menu.open { display: flex; }

/* ============================================================
   BUTTONS
   ============================================================ */
.s2w-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    border: none;
}
.s2w-btn--sm    { font-size: 13px; padding: 8px 18px; }
.s2w-btn--cta   { font-size: 15px; padding: 14px 28px; }
.s2w-btn--lg    { font-size: 16px; padding: 16px 36px; }

.s2w-btn--primary {
    background: var(--green);
    color: #0D0D0D;
}
.s2w-btn--primary:hover {
    background: #c0f590;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--green-glow);
}

.s2w-btn--outline {
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--green);
}
.s2w-btn--outline:hover {
    background: var(--green);
    color: #0D0D0D;
}

.s2w-btn--ghost {
    background: transparent;
    color: var(--purple);
    border: 1.5px solid rgba(155,123,255,0.4);
}
.s2w-btn--ghost:hover {
    background: var(--purple-dim);
    border-color: var(--purple);
}

/* Pulse ring */
.s2w-btn--pulse { position: relative; }
.s2w-btn--pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid rgba(170,239,122,0.5);
    animation: s2w-pulse-ring 2s ease-out infinite;
    pointer-events: none;
}
@keyframes s2w-pulse-ring {
    0%   { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================================
   BADGES
   ============================================================ */
.s2w-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(170,239,122,0.3);
    background: rgba(170,239,122,0.08);
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    margin-bottom: calc(var(--sp) * 4);
}
.s2w-badge--glow {
    animation: s2w-badge-glow 3s ease-in-out infinite;
}
@keyframes s2w-badge-glow {
    0%, 100% { box-shadow: 0 0 8px var(--green-glow); }
    50%      { box-shadow: 0 0 20px rgba(170,239,122,0.4); }
}
.s2w-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: s2w-dot-ping 1.5s ease-in-out infinite;
}
@keyframes s2w-dot-ping {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.3); }
}

/* ============================================================
   HERO
   ============================================================ */
.s2w-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.s2w-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    pointer-events: none;
}

.s2w-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,13,13,0.88) 40%, rgba(13,13,13,0.5) 70%, rgba(13,13,13,0.2) 100%);
    pointer-events: none;
}

.s2w-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(155,123,255,0.2), rgba(170,239,122,0.1), transparent 70%);
    animation: s2w-glow-breathe 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes s2w-glow-breathe {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.05); }
}

.s2w-hero-content {
    position: relative;
    z-index: 2;
    padding: calc(var(--sp) * 10) calc(var(--sp) * 3);
}

.s2w-hero-inner { max-width: 640px; }

.s2w-hero-h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--text-1);
    margin-bottom: calc(var(--sp) * 4);
}

.s2w-hero-body {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: calc(var(--sp) * 5);
}

.s2w-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: calc(var(--sp) * 4);
}

.s2w-hero-footnote {
    font-size: 13px;
    color: var(--text-3);
}

/* ============================================================
   PARTICLES
   ============================================================ */
.s2w-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.s2w-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--green);
    opacity: 0;
    animation: s2w-float var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes s2w-float {
    0%   { opacity: 0; transform: translateY(0) translateX(0) scale(1); }
    20%  { opacity: 0.4; }
    50%  { opacity: 0.2; transform: translateY(-60px) translateX(var(--dx, 10px)) scale(0.8); }
    80%  { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-120px) translateX(var(--dx2, -5px)) scale(0.6); }
}

/* ============================================================
   PROBLEM
   ============================================================ */
.s2w-problem-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--sp) * 6);
    align-items: center;
    margin-bottom: calc(var(--sp) * 6);
}

.s2w-problem-img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.s2w-problem-img { width: 100%; height: auto; display: block; }
.s2w-problem-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,22,22,0.5), transparent);
}

/* Stat box */
.s2w-stat-box {
    display: inline-block;
    padding: calc(var(--sp) * 4) calc(var(--sp) * 4);
    border-radius: var(--radius);
    border: 1px solid rgba(170,239,122,0.3);
    background: rgba(170,239,122,0.05);
    margin-bottom: calc(var(--sp) * 6);
    position: relative;
    overflow: hidden;
    min-width: 260px;
}
.s2w-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 4px;
}
.s2w-stat-text { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }

/* XP bar */
.s2w-xp-bar-wrap {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    position: absolute;
    bottom: 0; left: 0; right: 0;
}
.s2w-xp-bar-wrap--sm {
    position: relative;
    flex: 1;
    height: 4px;
}
.s2w-xp-bar {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(to right, var(--green), var(--purple));
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ============================================================
   CARDS GRID (shared)
   ============================================================ */
.s2w-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--sp) * 3);
    margin-top: calc(var(--sp) * 4);
}

.s2w-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--sp) * 3);
    margin-top: calc(var(--sp) * 4);
}

/* Game card */
.s2w-game-card {
    position: relative;
    padding: calc(var(--sp) * 4);
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}
.s2w-game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.35s ease;
    pointer-events: none;
}
.s2w-game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px -15px var(--green-glow);
    border-color: rgba(170,239,122,0.2);
}
.s2w-game-card:hover::before {
    background: linear-gradient(135deg, rgba(170,239,122,0.4), rgba(155,123,255,0.2));
}

/* Pain card */
.s2w-pain-card {
    padding: calc(var(--sp) * 4);
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.s2w-pain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(255,58,58,0.15);
    border-color: rgba(255,58,58,0.3);
}

/* Testimonial card */
.s2w-testimonial-card {
    padding: calc(var(--sp) * 4);
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: calc(var(--sp) * 2);
}

/* Card parts */
.s2w-card-icon-wrap {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(var(--sp) * 2);
    font-size: 18px;
    transition: border-color 0.2s;
}
.s2w-game-card:hover .s2w-card-icon-wrap { border-color: rgba(170,239,122,0.4); }
.s2w-card-icon-wrap--red { border-color: rgba(255,58,58,0.3); }

.s2w-card-num {
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    color: var(--text-3);
}

.s2w-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: calc(var(--sp) * 1);
    line-height: 1.4;
}
.s2w-card-body {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
}

/* Step number */
.s2w-step-num {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    animation: s2w-rank-glow 3s ease-in-out infinite;
}
@keyframes s2w-rank-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(170,239,122,0.15); }
    50%      { text-shadow: 0 0 25px rgba(170,239,122,0.3); }
}

/* XP row */
.s2w-xp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: calc(var(--sp) * 3);
}
.s2w-xp-label {
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    color: var(--green);
    white-space: nowrap;
}

/* Step connector */
.s2w-step-line-wrap {
    position: relative;
    height: 16px;
    margin: calc(var(--sp) * 4) 0 calc(var(--sp) * 2);
    display: none;
}
@media (min-width: 768px) { .s2w-step-line-wrap { display: block; } }

.s2w-step-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, var(--green), var(--purple));
    border-radius: 1px;
    transition: width 1.2s ease;
}
.s2w-step-line.animated { width: 100%; }

.s2w-step-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--bg);
}
.s2w-step-dot--mid { background: var(--green); }
.s2w-step-dot--purple { background: var(--purple); box-shadow: 0 0 10px var(--purple-glow); }

/* ============================================================
   BRAND PORTAL CHECKLIST
   ============================================================ */
.s2w-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--sp) * 2);
    list-style: none;
    margin-top: calc(var(--sp) * 4);
}

.s2w-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-1);
}

.s2w-check-icon {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(170,239,122,0.4);
    background: rgba(170,239,122,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--green);
    margin-top: 1px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.s2w-stars {
    font-size: 14px;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.s2w-trophy { font-size: 18px; }
.s2w-quote {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-2);
    flex: 1;
}
.s2w-testimonial-footer { margin-top: auto; padding-top: calc(var(--sp) * 2); border-top: 1px solid var(--border); }
.s2w-testimonial-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.s2w-testimonial-role { font-size: 12px; color: var(--text-3); }
.s2w-testimonial-company { font-size: 12px; color: var(--green); margin-top: 2px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.s2w-final-cta { position: relative; overflow: hidden; }
.s2w-final-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.s2w-contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: calc(var(--sp) * 8);
    align-items: start;
}

.s2w-form { display: flex; flex-direction: column; gap: calc(var(--sp) * 3); }
.s2w-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--sp) * 3); }
.s2w-form-group { display: flex; flex-direction: column; gap: 6px; }

.s2w-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

.s2w-input {
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.15s;
    outline: none;
    width: 100%;
}
.s2w-input::placeholder { color: var(--text-3); }
.s2w-input:focus { border-color: var(--green); }
.s2w-textarea { resize: vertical; min-height: 100px; }

.s2w-form-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}
.s2w-form-msg--success { background: rgba(170,239,122,0.1); color: var(--green); border: 1px solid rgba(170,239,122,0.3); }
.s2w-form-msg--error   { background: rgba(255,58,58,0.1);    color: var(--red);   border: 1px solid rgba(255,58,58,0.3); }

/* ============================================================
   FOOTER
   ============================================================ */
.s2w-footer {
    padding: calc(var(--sp) * 6) 0;
    border-top: 1px solid var(--border);
}

.s2w-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.s2w-footer-brand { display: flex; align-items: center; gap: 10px; }
.s2w-footer-tagline { font-size: 12px; color: var(--text-3); }
.s2w-footer-email { font-size: 13px; color: var(--text-2); transition: color 0.15s; }
.s2w-footer-email:hover { color: var(--green); }
.s2w-footer-copy { font-size: 12px; color: var(--text-3); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.s2w-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition-delay: var(--delay, 0s);
}
.s2w-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   ANIMATED COUNTER
   ============================================================ */
.s2w-stat-shimmer {
    background: linear-gradient(90deg, #F0F0F0 0%, var(--green) 25%, var(--purple) 50%, var(--green) 75%, #F0F0F0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: s2w-shimmer 4s linear infinite;
}
@keyframes s2w-shimmer {
    from { background-position: -200% center; }
    to   { background-position:  200% center; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .s2w-nav { display: none; }
    .s2w-btn.s2w-btn--sm:not(.s2w-hamburger) { display: none; }
    .s2w-hamburger { display: flex; }
    .s2w-cards-grid,
    .s2w-features-grid { grid-template-columns: 1fr 1fr; }
    .s2w-problem-top { grid-template-columns: 1fr; }
    .s2w-contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .s2w-section { padding: calc(var(--sp) * 8) 0; }
    .s2w-cards-grid,
    .s2w-features-grid { grid-template-columns: 1fr; }
    .s2w-checklist { grid-template-columns: 1fr; }
    .s2w-form-row { grid-template-columns: 1fr; }
    .s2w-hero-actions { flex-direction: column; }
    .s2w-footer-inner { flex-direction: column; text-align: center; }
}

/* Icon image — SVG i kort v1.0 */
.s2w-card-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.s2w-card-icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: calc(var(--sp) * 2);
}