@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #3ca8a0;
    --primary-light: #52c4bc;
    --primary-dark: #2e867f;
    --accent: #1d4553;
    --bg-light: #f8f9fb;
    --text-main: #283034;
    --text-muted: #6c757d;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-dark {
    filter: invert(1) hue-rotate(180deg);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    line-height: 1.2;
}

section {
    padding: 100px 5%;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.text-center { text-align: center; }
.v-stack { display: flex; flex-direction: column; gap: 1rem; }
.h-stack { display: flex; align-items: center; gap: 1.5rem; }

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-icon {
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Hero --- */
.hero {
    min-height: 85vh;
    display: flex;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(60, 168, 160, 0.08) 0%, rgba(29, 69, 83, 0.05) 100%);
}

.hero-text-side {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 140px 5% 80px;
}

.hero-text-side .container {
    max-width: 600px;
    margin-right: 0;
    margin-left: auto;
    padding-right: 4rem;
}

.hero-image-side {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 1;
}

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

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent);
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    line-height: 1.8;
}

.promise-section {
    padding: 120px 5%;
    background: var(--white);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.promise-card {
    position: relative;
    padding: 4rem 3rem;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(60, 168, 160, 0.04) 0%, rgba(29, 69, 83, 0.02) 100%);
    border: 1px solid rgba(60, 168, 160, 0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.promise-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.promise-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 2.5rem auto;
    border-radius: 2px;
}

.promise-text {
    font-size: 1.35rem;
    color: var(--text-main);
    line-height: 1.8;
    max-width: 780px;
    margin: 0 auto;
    font-weight: 500;
}

/* --- Buttons --- */
.btn-modern {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(60, 168, 160, 0.3);
}

.btn-modern:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(60, 168, 160, 0.4);
}

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

/* --- Course Stages --- */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stage-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.stage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.stage-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.stage-body {
    padding: 2rem;
    flex-grow: 1;
}

.stage-number {
    display: inline-block;
    padding: 0.2rem 1rem;
    background: rgba(60, 168, 160, 0.1);
    color: var(--primary);
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.stage-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.stage-card li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.stage-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* --- Who is it for --- */
.who-section {
    background: var(--accent);
    color: var(--white);
}

.who-section h2 { color: var(--white); }

.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.who-list-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.who-list-card h3 {
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.who-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.who-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

/* --- Testimonials --- */
.testimonials-section {
    background: var(--white);
    padding: 100px 0;
}

.swiper {
    width: 100%;
    padding-bottom: 50px !important;
}

.testimonial-slide {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-slide p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

/* --- Newsletter Popup --- */
.newsletter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 69, 83, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: var(--transition);
}

.newsletter-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter-content input {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(60, 168, 160, 0.3);
    margin: 2rem 0 1rem;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: #fff;
}

.newsletter-content input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(60, 168, 160, 0.1);
}

.newsletter-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* --- Contact --- */
.contact-section {
    background: var(--white);
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* --- Footer --- */
footer {
    padding: 80px 5% 40px;
    background: var(--accent);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: block;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .hero { flex-direction: column; min-height: auto; padding-top: 100px; }
    .hero-text-side { padding: 40px 5%; text-align: center; }
    .hero-text-side .container { margin: 0 auto; padding-right: 0; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero h1 { font-size: 3rem; }
    .hero-image-side { height: 500px; width: 100%; }
    .stages-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .footer-top { grid-template-columns: 1fr; gap: 3rem; }
    .h-stack { justify-content: center; }
}

@media (max-width: 768px) {
    .stages-grid, .who-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .hero-image-side { height: 400px; }
    .who-list-card { padding: 2rem; }
    .testimonial-slide { padding: 2rem; }
    .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero { padding-top: 80px; }
    .header nav a { display: none; }
    .header nav .btn-modern { font-size: 0.8rem; padding: 0.5rem 1rem; }
    .hero-image-side { height: 350px; }
}
