/* ============================================
   SCANDINAVIAN EDITORIAL
   Hurtigsider.dk — Clean. Confident. Danish.
   ============================================ */

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

:root {
    /* Dark Mode Palette */
    --color-bg: #0A0A0A;
    --color-text: #f0f0f5;
    --color-accent: #5DFEB0;
    --color-accent-hover: #3BCBA8;
    --color-secondary: #6B6B6B;
    --color-surface: #141414;
    --color-border: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 15vw, 160px);
    --container-padding: clamp(24px, 5vw, 48px);

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(36px, 7vw, 72px);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 64px;
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 16px;
}

p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-secondary);
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
    /* No transition initially - prevents flash on load */
}

.nav.nav-ready {
    /* Enable transitions only after initial render */
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    will-change: backdrop-filter; /* Performance optimization */
}

.nav:not(.scrolled) {
    /* Explicitly ensure transparent state */
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity var(--transition);
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo svg {
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* Mobile Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 18px;
    }
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--color-accent);
    color: #0A0A0A;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(74, 232, 196, 0.3);
    padding: 14px 28px;
    font-size: 15px;
}

.btn-primary:hover {
    background: #3DD4AD;
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 232, 196, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--color-text);
    background: var(--color-surface);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: var(--section-padding) 0;
}

.hero-bg {
    position: absolute;
    top: -80px; /* Extend behind nav */
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    will-change: transform, opacity;
}

.aurora-blob-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #4AE8C4 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: float1 12s ease-in-out infinite;
}

.aurora-blob-2 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, #3BCBA8 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    animation: float2 16s ease-in-out infinite;
}

.aurora-blob-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #5EEFD3 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    33% {
        transform: translate(150px, 100px) scale(1.2);
        opacity: 0.35;
    }
    66% {
        transform: translate(50px, -80px) scale(0.9);
        opacity: 0.2;
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    33% {
        transform: translate(-120px, -150px) scale(1.3);
        opacity: 0.3;
    }
    66% {
        transform: translate(-180px, 80px) scale(0.95);
        opacity: 0.2;
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) translate(100px, -100px) scale(1.4);
        opacity: 0.35;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(245, 245, 240, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(245, 245, 240, 0.6);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero .highlight {
    color: var(--color-accent);
}

.hero .price-old {
    text-decoration: line-through;
    opacity: 0.3;
    font-size: 0.85em;
}

.hero .subtitle {
    font-size: 20px;
    color: var(--color-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero .subtitle em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.hero .btn-primary {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(245, 245, 240, 0.4);
    animation: bounce 2s ease-in-out infinite;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards, bounce 2s ease-in-out 1.4s infinite;
}

.scroll-indicator svg {
    display: block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Examples Section */
.examples {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
    position: relative;
}

.examples-header {
    text-align: center;
    margin-bottom: 64px;
}

.examples-header h2 {
    margin-bottom: 12px;
}

.examples-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-secondary);
    font-weight: 400;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.example-card {
    position: relative;
    display: block;
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
    min-height: 240px;
}

.example-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.5;
    transition: all 0.6s ease;
}

.example-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.example-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: blur(1.5px) brightness(1.1);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.example-card:hover .example-bg {
    opacity: 0.6;
}

.example-card:hover .example-bg img {
    transform: scale(1.05);
    filter: blur(1px) brightness(1.2);
}

.example-card:nth-child(1) { animation-delay: 0.1s; }
.example-card:nth-child(2) { animation-delay: 0.2s; }
.example-card:nth-child(3) { animation-delay: 0.3s; }
.example-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.example-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.03);
}

/* Industry-specific accents */
.example-card[data-industry="cleaning"]:hover {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.1);
}

.example-card[data-industry="trades"]:hover {
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 8px 32px rgba(251, 146, 60, 0.1);
}

.example-card[data-industry="salon"]:hover {
    border-color: rgba(244, 114, 182, 0.5);
    box-shadow: 0 8px 32px rgba(244, 114, 182, 0.1);
}

.example-card[data-industry="food"]:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.1);
}

.example-content {
    position: relative;
    z-index: 3;
}

.example-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.example-badge {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.example-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.example-card:hover .example-arrow {
    background: rgba(93, 254, 176, 0.1);
    color: var(--color-accent);
    transform: translateX(4px);
}

.example-name {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.example-description {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.example-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.example-card[data-industry="cleaning"] .example-glow {
    background: radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
}

.example-card[data-industry="trades"] .example-glow {
    background: radial-gradient(circle at 50% 0%, rgba(251, 146, 60, 0.08) 0%, transparent 70%);
}

.example-card[data-industry="salon"] .example-glow {
    background: radial-gradient(circle at 50% 0%, rgba(244, 114, 182, 0.08) 0%, transparent 70%);
}

.example-card[data-industry="food"] .example-glow {
    background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
}

.example-card:hover .example-glow {
    opacity: 1;
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .example-card {
        padding: 24px;
    }

    .example-name {
        font-size: 20px;
    }

    .examples-header {
        margin-bottom: 48px;
    }
}

/* How It Works Section */
.how-it-works {
    padding: var(--section-padding) 0;
}

.how-it-works h2 {
    text-align: center;
}

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

.step {
    text-align: left;
}

.step-number {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 24px;
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    font-size: 16px;
    max-width: 280px;
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.pricing h2 {
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 32px;
}

.pricing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 48px;
    transition: all var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.featured {
    background: var(--color-surface);
    border-color: var(--color-accent);
}

.pricing-card .badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--color-accent);
    color: #0A0A0A;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card .price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-card .price-old {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: rgba(245, 245, 240, 0.4);
    text-decoration: line-through;
    line-height: 1;
}

.pricing-card .price {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 32px;
    color: var(--color-secondary);
}

.pricing-card .features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-card .features li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.pricing-card .features li:last-child {
    border-bottom: none;
}

.pricing-card .features li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 12px;
}

.pricing-card a {
    width: 100%;
    text-align: center;
}

.pricing-note {
    text-align: center;
    font-size: 16px;
    color: var(--color-secondary);
}

/* Contact Section */
.contact {
    padding: calc(var(--section-padding) * 1.2) 0;
    background: var(--color-accent);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    color: #0A0A0A;
    margin-bottom: 16px;
}

.contact-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 40px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0A0A0A;
    color: var(--color-accent);
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

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

.footer-main {
    font-size: 14px;
    color: var(--color-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

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

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
        margin-bottom: 48px;
    }

    .hero {
        min-height: 80vh;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-number {
        font-size: 56px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
