/* Base Styles and Variables */
:root {
    --primary: #0057B7;
    --primary-dark: #003A78;
    --primary-light: #00A3E0;
    --secondary: #333;
    --accent: #00BFFF;
    --bg-color: #fff;
    --bg-alt: #F0F6FF;
    --text-color: #333;
    --text-light: #777;
    --border-radius: 0px; /* Sharp edges for Nordic design */
    --box-shadow: 0 4px 10px rgba(0, 87, 183, 0.1);
    --transition: all 0.3s ease;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
}

.section-title span {
    color: var(--primary);
    position: relative;
}

.section-title span::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-light);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    margin-right: 10px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav ul li {
    margin-left: 30px;
}

.desktop-nav ul li a {
    color: white;
    font-weight: 500;
    position: relative;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    transition: var(--transition);
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 69px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 20px;
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 999;
    box-sizing: border-box;
    opacity: 0;
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav ul li {
    margin: 15px 0;
}

.mobile-nav ul li a {
    color: white;
    font-size: 1.2rem;
    display: block;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--bg-alt), #fff);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

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

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 87, 183, 0.2);
    color: white;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.cta-button:hover::before {
    left: 100%;
    transition: 0.7s;
}

.hero-graphic {
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Mountain Divider */
.mountain-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, transparent 49.9%, var(--bg-color) 50%),
                linear-gradient(45deg, var(--bg-color) 49.9%, transparent 50%),
                linear-gradient(-45deg, var(--bg-color) 49.9%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 50px 50px;
    background-position: 0 0, 0 0, 25px 0;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 87, 183, 0.15);
}

.feature-icon {
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-10deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-alt);
    position: relative;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(var(--primary), var(--primary-light));
    z-index: 0;
}

.step {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.step-number {
    margin-right: 30px;
    position: relative;
}

.step-content {
    padding: 20px;
    background: white;
    flex: 1;
    box-shadow: var(--box-shadow);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: white;
    box-shadow: var(--box-shadow);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--bg-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 98% 100%, 0 100%);
}

.question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.question h3 {
    margin: 0;
    font-size: 1.2rem;
    transition: var(--transition);
}

.toggle-icon {
    transition: var(--transition);
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-item.active .vertical {
    display: none;
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.answer p {
    padding-bottom: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, transparent 49.9%, var(--primary-dark) 50%),
                linear-gradient(45deg, var(--primary-dark) 49.9%, transparent 50%),
                linear-gradient(-45deg, var(--primary-dark) 49.9%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 50px 50px;
    background-position: 0 0, 0 0, 25px 0;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-brand {
    flex: 1;
    max-width: 300px;
    margin-right: 50px;
}

.footer-brand h3 {
    margin: 20px 0 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
}

.footer-links-column {
    margin-right: 60px;
    min-width: 120px;
}

.footer-links-column h4 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links-column h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-graphic {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero-graphic {
        margin-top: 40px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-brand {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .footer-links {
        justify-content: space-around;
        width: 100%;
    }
}

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

    .mobile-nav-toggle {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .steps-container::before {
        left: 20px;
    }

    .step-number {
        margin-right: 15px;
    }

    .step-content {
        padding: 15px;
    }

    .footer-links-column {
        margin-right: 30px;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links-column {
        margin-bottom: 30px;
    }
}
