/* ============================================
   DESIGN INSPIRERAD AV APPHUSET.SE
   Modern, ren och professionell
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Färger - Professionell palett */
    --primary: #1a1a1a;
    --primary-dark: #000000;
    --accent: #0066ff;
    --accent-light: #3385ff;
    --accent-dark: #0052cc;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --success: #00c853;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 7rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   NAVIGATION - Ren och enkel
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 2rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION - Stor och imponerande
   ============================================ */

main {
    margin-top: 70px;
}

.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero .lead {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BUTTONS - Moderna och tydliga
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--accent);
    color: white;
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--accent);
    color: white;
}

.btn-secondary:hover {
    background: var(--accent-dark);
}

/* ============================================
   FEATURES SECTION - Snygg och modern
   ============================================ */

.features {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -1.5px;
    position: relative;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: var(--space-xl);
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: 3rem 2.5rem;
    background: var(--bg);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.feature-card:nth-child(1) {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.feature-card:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 100%);
}

.feature-card:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
}

.feature-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.2);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.3);
}

.feature-card:nth-child(2) .feature-icon-wrapper {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 8px 24px rgba(118, 75, 162, 0.2);
}

.feature-card:nth-child(2):hover .feature-icon-wrapper {
    box-shadow: 0 12px 32px rgba(118, 75, 162, 0.3);
}

.feature-card:nth-child(3) .feature-icon-wrapper {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 24px rgba(240, 147, 251, 0.2);
}

.feature-card:nth-child(3):hover .feature-icon-wrapper {
    box-shadow: 0 12px 32px rgba(240, 147, 251, 0.3);
}

.feature-icon {
    font-size: 3rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.0625rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   PAGE HEADER - Enkel och tydlig
   ============================================ */

.page-header {
    padding: var(--space-xl) 0 var(--space-lg);
    text-align: center;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ============================================
   PRICING - Moderna kort
   ============================================ */

.pricing {
    padding: var(--space-2xl) 0;
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--space-lg);
}

.pricing-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
    line-height: 1;
    letter-spacing: -1px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
}

.price-features li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-top: var(--space-lg);
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

/* ============================================
   SERVICES - Stor och luftig
   ============================================ */

.services {
    padding: var(--space-2xl) 0;
    background: var(--bg);
}

.service-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg) 0;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item.reverse {
    grid-template-columns: auto 1fr;
}

.service-item.reverse .service-content {
    order: 2;
}

.service-item.reverse .service-icon {
    order: 1;
}

.service-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1.2;
}

.service-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-content ul {
    list-style: none;
}

.service-content li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text);
    font-size: 1rem;
}

.service-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.25rem;
}

.service-icon {
    font-size: 6rem;
    opacity: 0.7;
}

/* ============================================
   PROJECTS - Modern grid
   ============================================ */

.projects {
    padding: var(--space-2xl) 0;
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: var(--space-lg);
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.project-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.project-placeholder {
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.project-category {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: block;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-light);
    color: var(--text);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.tech-tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.projects-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

.projects-cta p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ============================================
   CTA SECTION - Tydlig call-to-action
   ============================================ */

.cta {
    padding: var(--space-2xl) 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta .btn {
    background: white;
    color: var(--primary);
}

.cta .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER - Enkel och ren
   ============================================ */

footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: var(--space-lg);
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transition: left 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

    .features,
    .pricing,
    .services,
    .projects,
    .cta {
        padding: var(--space-xl) 0;
    }

    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .service-item.reverse .service-content,
    .service-item.reverse .service-icon {
        order: initial;
    }

    .service-icon {
        font-size: 4rem;
    }

    .feature-grid,
    .pricing-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
}
