/* Galvenie mainīgie un stila atiestatīšana */
:root {
    --color-primary: #5E35B1;
    --color-secondary: #FFC107;
    --color-dark: #2D2D2D;
    --color-light: #FFFFFF;
    --color-bg: #F9F7FF;
    --color-text: #333333;
    --gradient: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --shadow: 0 5px 20px rgba(94, 53, 177, 0.2);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Ģeometriskais fons */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(135deg, rgba(94, 53, 177, 0.02) 0%, rgba(94, 53, 177, 0) 70%),
        linear-gradient(225deg, rgba(255, 193, 7, 0.02) 10%, rgba(255, 193, 7, 0) 80%);
    pointer-events: none;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

/* Sekcijas */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-divider {
    height: 4px;
    width: 80px;
    margin: 15px auto;
    background: var(--gradient);
    border-radius: 2px;
}

/* Pogas */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(94, 53, 177, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Galvene un navigācija */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.navigation a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.navigation a:not(.nav-button):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: var(--transition);
}

.navigation a:not(.nav-button):hover:after {
    width: 100%;
}

.nav-button {
    background: var(--gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 53, 177, 0.3);
    color: white;
}

.menu-button {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1010;
}

.menu-button span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    left: 0;
    transition: var(--transition);
}

.menu-button span:nth-child(1) {
    top: 0;
}

.menu-button span:nth-child(2) {
    top: 8px;
}

.menu-button span:nth-child(3) {
    top: 16px;
}

.menu-button.active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

/* Hero sekcija */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    min-height: 400px;
    z-index: 1;
}

.geometric-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
}

.geo-shape {
    position: absolute;
    opacity: 0.8;
    animation: float 8s infinite ease-in-out;
}

.shape1 {
    width: 140px;
    height: 140px;
    top: 10%;
    left: 20%;
    background: var(--color-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.15;
    animation-delay: 0s;
}

.shape2 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    right: 20%;
    background: var(--color-secondary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.15;
    animation-delay: 2s;
}

.shape3 {
    width: 100px;
    height: 100px;
    bottom: 40%;
    left: 10%;
    background: var(--color-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.1;
    animation-delay: 1s;
}

.shape4 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 5%;
    background: var(--color-secondary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.1;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Funkcionalitātes sekcija */
.features {
    background-color: var(--color-light);
    position: relative;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(94, 53, 177, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

/* Kā tas strādā sekcija */
.how-it-works {
    background-color: var(--color-bg);
    position: relative;
}

.steps {
    max-width: 800px;
    margin: 0 auto 50px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 20px;
}

.step-number {
    background: var(--gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.step-number span {
    font-size: 1.5rem;
    font-weight: bold;
}

.step-content {
    padding-top: 5px;
}

.center-cta {
    text-align: center;
    margin-top: 40px;
}

/* Par mums sekcija */
.about {
    background-color: var(--color-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* CTA sekcija */
.cta-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: var(--gradient);
    color: white;
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(94, 53, 177, 0.3);
    position: relative;
    z-index: 1;
}

.cta-box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='50,10 80,30 80,70 50,90 20,70 20,30' stroke='%23FFFFFF' stroke-width='1' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.1;
}

.cta-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta-box .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Kājene */
footer {
    background-color: var(--color-dark);
    color: white;
    padding: 80px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Adaptīvais dizains */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        min-height: 300px;
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        padding: 100px 30px 30px;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .navigation.active {
        right: 0;
    }
    
    .navigation ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navigation li {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .navigation a.nav-button {
        width: 100%;
        text-align: center;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav {
        width: 100%;
        justify-content: space-around;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-col {
        width: 100%;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
