/* ============================================
   Template: business-bold  (DEMO skin — "Jerngården Trening")
   Fictional Codecraft Web demo. Dark, high-energy, single-page
   conversion layout. Theme via the :root palette below.
   ============================================ */

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #141416;
    --bg-card: #1a1a1d;
    --bg-card-hover: #202024;
    --border: #2a2a2f;
    --border-light: #3a3a41;
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8be;
    --text-muted: #7d7d86;
    --accent: #c6f24e;
    --accent-secondary: #f5f5f5;
    --accent-dark: #0a0a0b;
    --gradient-accent: linear-gradient(135deg, #c6f24e, #a3e635);
    --accent-glow: rgba(198, 242, 78, 0.14);
    --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.5);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Anton', 'Inter', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 40px; /* room for the fixed demo ribbon */
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---- Image placeholders ---- */
.img-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: var(--accent);
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(198, 242, 78, 0.12), transparent 55%),
        linear-gradient(160deg, #16160f 0%, #0d0d0e 55%, #101014 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.img-ph::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(198, 242, 78, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 242, 78, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    z-index: -1;
}

.img-ph svg {
    width: 46px;
    height: 46px;
    opacity: 0.55;
    stroke: var(--accent);
}

.img-ph-cap {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    max-width: 80%;
    line-height: 1.4;
}

/* ---- Navigation ---- */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 10, 11, 0.9);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 1001;
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-sub {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    color: var(--accent);
    margin-top: 3px;
}

.logo-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--gradient-accent);
    color: var(--accent-dark);
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-toggle:hover { border-color: var(--accent); color: var(--text-primary); }
.lang-toggle .lang-flag.active { color: var(--accent); }
.lang-divider { color: var(--border-light); font-weight: 300; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 26px; height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero ---- */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 130px 24px 90px;
    text-align: center;
}

.hero-ph {
    position: absolute;
    inset: 0;
    border: none;
    z-index: 0;
}

.hero-ph .img-ph-cap {
    position: absolute;
    bottom: 22px;
    right: 24px;
    max-width: 60%;
    text-align: right;
    color: var(--text-muted);
    opacity: 0.8;
}

.hero-ph svg { width: 120px; height: 120px; opacity: 0.14; }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(90% 70% at 50% 25%, rgba(198, 242, 78, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(10, 10, 11, 0.72) 0%, rgba(10, 10, 11, 0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 30px;
    background: var(--accent-glow);
}

.hero-headline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(4rem, 16vw, 11rem);
    line-height: 0.86;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-headline span { display: block; }

.hero-headline-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    animation: pulseFade 2.4s ease-in-out infinite;
}

@keyframes pulseFade { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-lg { padding: 18px 40px; font-size: 0.98rem; }

.btn-primary {
    background: var(--gradient-accent);
    color: var(--accent-dark);
    box-shadow: 0 6px 24px rgba(198, 242, 78, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 34px rgba(198, 242, 78, 0.42);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
    background: rgba(245, 245, 245, 0.05);
    color: var(--text-primary);
    border-color: rgba(245, 245, 245, 0.16);
}

.btn-ghost:hover {
    background: rgba(245, 245, 245, 0.1);
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

.btn-full { width: 100%; }

/* ---- Sections common ---- */
section { padding: 110px 0; }

.section-head { max-width: 720px; margin-bottom: 60px; }

.section-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.section-lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 620px;
    margin-top: 20px;
}

/* ---- Stats bar ---- */
#stats { padding: 0; }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.stat-block {
    padding: 40px 20px;
    text-align: center;
    color: var(--accent-dark);
    border-right: 1px solid rgba(10, 10, 11, 0.12);
}

.stat-block:last-child { border-right: none; }

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: 0.01em;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    opacity: 0.75;
}

/* ---- Membership tiers ---- */
#priser { background: var(--bg-primary); }

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.tier-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
}

.tier-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.tier-card-featured {
    background: linear-gradient(180deg, #1e1f14 0%, var(--bg-card) 60%);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 24px 60px rgba(198, 242, 78, 0.12);
}

.tier-flag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.tier-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

.tier-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
}

.tier-from { text-transform: uppercase; letter-spacing: 0.06em; }

.tier-amount {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.6rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    line-height: 1;
}

.tier-unit { color: var(--text-muted); }

.tier-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tier-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.tier-list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tier-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-glow);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c6f24e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

.tier-card .btn { margin-top: auto; }

.tier-todo {
    margin-top: 14px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.6;
}

/* ---- Classes ---- */
#timer { background: var(--bg-secondary); }

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.class-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.class-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.class-ph {
    aspect-ratio: 4 / 3;
    border: none;
    border-bottom: 1px solid var(--border);
}

.class-card:hover .class-ph svg { opacity: 0.8; transition: var(--transition); }

.class-body { padding: 28px 26px 32px; }

.class-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.class-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.class-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Coaches ---- */
#coacher { background: var(--bg-primary); }

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.coach-card { text-align: center; }

.coach-ph {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: var(--transition);
}

.coach-card:hover .coach-ph {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.coach-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.coach-role {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* ---- Closing CTA band ---- */
#start { background: var(--bg-secondary); }

.cta-band {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: clamp(60px, 9vw, 110px) clamp(24px, 6vw, 80px);
    text-align: center;
    isolation: isolate;
}

.cta-ph {
    position: absolute;
    inset: 0;
    border: none;
    z-index: -2;
    border-radius: var(--radius-lg);
}

.cta-ph svg { width: 140px; height: 140px; opacity: 0.12; }

.cta-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(198, 242, 78, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(10, 10, 11, 0.7), rgba(10, 10, 11, 0.86));
}

.cta-content { position: relative; max-width: 760px; margin: 0 auto; }

.cta-headline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 22px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.cta-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.cta-meta a { color: var(--text-secondary); transition: color var(--transition); }
.cta-meta a:hover { color: var(--accent); }
.cta-dot { margin: 0 12px; opacity: 0.5; }

/* ---- Footer ---- */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Demo ribbon ---- */
.demo-ribbon {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-dark);
    background: var(--gradient-accent);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.4);
}

.demo-ribbon a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.85;
}

.demo-ribbon a:hover { opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .coaches-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .tiers-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .tier-card-featured { order: -1; }
    .classes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }

    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 28px;
        border-left: 1px solid var(--border);
        transition: right var(--transition);
    }

    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.1rem; }

    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-block:nth-child(2) { border-right: none; }
    .stat-block:nth-child(1), .stat-block:nth-child(2) { border-bottom: 1px solid rgba(10, 10, 11, 0.12); }

    .hero-actions .btn, .cta-actions .btn { width: 100%; max-width: 320px; }
    .hero-ph .img-ph-cap { display: none; }

    .section-head { margin-bottom: 44px; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr; }
    .stat-block { border-right: none; border-bottom: 1px solid rgba(10, 10, 11, 0.12); }
    .stat-block:last-child { border-bottom: none; }
    .coaches-grid { grid-template-columns: 1fr; }
}
