:root {
  --bg-color: #FBF9F8;
  --text-primary: #2C2C2C;
  --text-secondary: #5A5A5A;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: #E2E2E2;
  --accent-1: #F36F21;
  --accent-2: #FF8A45;
  --accent-3: #D95A10;
  --accent-4: #F36F21;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

body, html {
    font-family: 'Sora', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.material-symbols-outlined {
    vertical-align: middle;
}

/* Background effects to simulate Brainwave */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(243, 111, 33, 0.08), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(243, 111, 33, 0.05), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 6rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.hero-image {
    flex: 1.6;
    position: relative;
    padding: 1rem;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(243, 111, 33, 0.15) 0%, rgba(243, 111, 33, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
}

.hero-slider {
    position: relative;
    width: 100%;
    animation: float 8s ease-in-out infinite;
}

.hero-slider .slide {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.05);
}

.hero-slider .slide-1 {
    position: relative;
    display: block;
    animation: crossfade1 10s infinite;
}

.hero-slider .slide-2 {
    position: absolute;
    top: 0;
    left: 0;
    animation: crossfade2 10s infinite;
    opacity: 0;
}

@keyframes crossfade1 {
    0%, 40% { opacity: 1; visibility: visible; }
    50%, 90% { opacity: 0; visibility: hidden; }
    100% { opacity: 1; visibility: visible; }
}

@keyframes crossfade2 {
    0%, 40% { opacity: 0; visibility: hidden; }
    50%, 90% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

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

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
}

/* Grid Layout for Features */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Glassmorphism Cards */
.feature-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 200ms var(--ease-out), 
                border-color 200ms var(--ease-out), 
                box-shadow 200ms var(--ease-out);
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Top accent border line on cards */
.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    opacity: 0;
    transition: opacity 200ms var(--ease-out);
}

/* Dynamic Hover Effects */
@media (hover: hover) and (pointer: fine) {
    .feature-item:hover {
        transform: translateY(-8px);
        border-color: var(--accent-1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 
                    inset 0 0 20px rgba(255, 255, 255, 0.5);
    }

    .feature-item:hover::before {
        opacity: 1;
    }
}

/* Icon / Heading */
.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Different gradient text colors for different feature icons */
.feature-item:nth-child(1) h3 { color: var(--accent-1); }
.feature-item:nth-child(2) h3 { color: var(--accent-2); }
.feature-item:nth-child(3) h3 { color: var(--accent-3); }
.feature-item:nth-child(4) h3 { color: var(--accent-4); }
.feature-item:nth-child(5) h3 { color: var(--accent-2); }
.feature-item:nth-child(6) h3 { color: var(--accent-1); }

.feature-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    background: rgba(251, 249, 248, 0.85);
    backdrop-filter: blur(10px);
    margin-top: auto;
}

/* Showcase Section */
.showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.showcase-img-container {
    flex: 1.2;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--card-border);
}

.showcase-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .showcase-img-container:hover .showcase-img {
        transform: scale(1.02);
    }
}

.showcase-text {
    flex: 1;
}

.showcase-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.showcase-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Enterprise Features */
.enterprise-features {
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 5rem 2rem;
    margin: 2rem 0 4rem;
}

.enterprise-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.enterprise-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.enterprise-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
    display: flex;
    flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    }
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-1);
    margin-bottom: 1.5rem;
}

.pricing-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card.premium {
    border-color: var(--accent-1);
    box-shadow: 0 10px 30px rgba(243, 111, 33, 0.1);
    position: relative;
}

.pricing-card.premium::before {
    content: 'Suurematele tiimidele';
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: white;
    padding: 0.35rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem 2rem 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background-color: var(--accent-1);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 3rem;
    transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out);
    box-shadow: 0 10px 20px rgba(243, 111, 33, 0.2);
}

.cta-button:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .cta-button:hover {
        transform: translateY(-3px);
        background-color: var(--accent-2);
        box-shadow: 0 15px 25px rgba(243, 111, 33, 0.3);
    }
}

.cta-button-secondary {
    display: inline-block;
    padding: 1.25rem 3rem;
    background-color: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--card-border);
    border-radius: 3rem;
    transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.cta-button-secondary:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .cta-button-secondary:hover {
        transform: translateY(-3px);
        border-color: var(--accent-1);
        color: var(--accent-1);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .showcase-item {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 4rem 1.5rem 3rem;
        text-align: left;
        gap: 3rem;
    }
    .hero-text h1 {
        font-size: 2.75rem;
    }
    .hero-text p {
        font-size: 1.1rem;
    }
    .hero-image img {
        transform: none;
    }
    .features h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    .feature-item {
        padding: 2rem 1.5rem;
    }
    .showcase-text h3 {
        font-size: 1.5rem;
    }
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 250ms var(--ease-out);
    cursor: zoom-out;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 250ms var(--ease-out);
    object-fit: contain;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
    z-index: 1001;
}

.close-modal:active {
    transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
    .close-modal:hover {
        color: var(--accent-1);
    }
}
