/* Swedish Design - Clean, Minimal, Functional */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Swedish Color Palette - Muted, Natural */
    --primary: #2C3E50;
    --primary-light: #34495E;
    --accent: #3498DB;
    --accent-hover: #2980B9;
    --success: #27AE60;
    --warning: #F39C12;
    --error: #E74C3C;
    
    /* Neutral Grays */
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    /* Spacing - Swedish generous whitespace */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows - Subtle, Swedish style */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation - Minimalist Swedish Style */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: 0.3s;
}

/* Buttons - Clean Swedish Design */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Hero Section - Generous Whitespace */
.hero {
    padding: calc(70px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
    background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Styling */
section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
}

/* Problem Section */
.problem {
    background: #fff;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.problem-card {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-card .icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.problem-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.problem-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Features - Three Tier Showcase */
.features {
    background: var(--gray-50);
}

.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-tier {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.feature-tier.highlighted {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.tier-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gray-200);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.feature-tier.highlighted .tier-badge {
    background: var(--accent);
    color: white;
}

.feature-tier h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.tier-desc {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* Technology Section */
.technology {
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.tech-card {
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.tech-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.tech-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.tech-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.3rem 0.8rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* Demo Site Section - Hero Style */
.demo-site {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}


.demo-site .section-header h2,
.demo-site .section-header p {
    color: white;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.demo-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.demo-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.demo-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: var(--space-xl);
}

.demo-specs {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.spec {
    display: flex;
    gap: var(--space-md);
    align-items: start;
}

.spec-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.spec-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.spec-detail {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Infrastructure Diagram */
.infrastructure-diagram {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
}

.infra-layer {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid rgba(255,255,255,0.3);
}

.infra-layer.highlighted {
    background: rgba(255,255,255,0.15);
    border-left-color: rgba(255,255,255,0.8);
}

.layer-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.layer-content {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Use Cases */
.use-cases {
    background: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.use-case {
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.use-case h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.use-case p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.use-case ul {
    list-style: none;
}

.use-case li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    padding-left: 1.5rem;
    position: relative;
}

.use-case li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Pricing */
.pricing {
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.pricing-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    position: relative;
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card.special {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary);
}

.popular-badge, .special-badge {
    position: absolute;
    top: -12px;
    right: var(--space-md);
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.special-badge {
    background: var(--warning);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.pricing-card.special h3 {
    color: white;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.pricing-card.special .price {
    color: white;
}

.pricing-desc {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.pricing-card.special .pricing-desc {
    border-color: rgba(255,255,255,0.2);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.pricing-features li {
    padding: 0.6rem 0;
    color: var(--gray-700);
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.pricing-card.special .pricing-features li {
    color: rgba(255,255,255,0.95);
}

.pricing-card.special .pricing-features li::before {
    color: white;
}

.pricing-note {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
}

.pricing-note p {
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.cta-contact {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.cta-contact p {
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr minmax(120px, 0.9fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.footer-col p {
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}


.footer-qr img {
    display: block;
    width: 112px;
    height: 112px;
    padding: 0.35rem;
    background: white;
    border-radius: 0.5rem;
}

.footer-qr {
    max-width: 120px;
}

.footer-qr a:first-of-type {
    display: block;
    width: 72px;
    padding: 0;
}

.footer-qr img {
    width: 72px !important;
    height: 72px !important;
    max-width: none;
}


.footer-qr p {
    margin: 0.6rem 0;
    font-size: 0.85rem;
}

.footer-qr a:last-child {
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .demo-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Hardware Documentation Page Styles */
.pricing-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pricing-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-table tbody tr:hover {
    background: #f5f5f5;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.category-header {
    background: #f0f0f0 !important;
    font-weight: 600;
    color: #333;
}

.subtotal-row {
    background: #fafafa !important;
    font-weight: 600;
    border-top: 2px solid #ddd !important;
}

.total-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-size: 1.1rem;
    font-weight: 700;
}

.power-calc {
    background: linear-gradient(135deg, #2c5f8d 0%, #1a3a52 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.power-calc h3 {
    margin-top: 0;
    color: white;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.calc-item {
    background: rgba(255,255,255,0.15);
    padding: 1rem;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.calc-item strong {
    display: block;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.energy-source {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.energy-source h3 {
    margin-top: 0;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge-recommended {
    background: #4CAF50;
    color: white;
}

.badge-optional {
    background: #FF9800;
    color: white;
}

.badge-premium {
    background: #9C27B0;
    color: white;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.spec-item {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.spec-label {
    font-size: 0.875rem;
    color: #f5f5f5;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.note {
    background: #f8f8d9;
    border-left: 4px solid #FBC02D;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.deployment-tier {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    background: white;
}

.deployment-tier h2 {
    margin-top: 0;
    color: #667eea;
}

.tier-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
}
