*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

/* --- NAV --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #1A5276;
    height: 70px; display: flex; align-items: center;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner {
    width: 100%; padding: 0 30px;
    display: flex; align-items: center;
}
.nav-left { display: flex; align-items: center; }
.nav-logo {
    display: flex; align-items: center; text-decoration: none;
    background: #fff; padding: 6px 14px; border-radius: 4px;
}
.nav-logo-icon { height: 48px; }
.nav-links {
    display: flex; list-style: none; gap: 0; align-items: center;
    margin-left: auto;
}
.nav-links li a {
    color: rgba(255,255,255,0.85); text-decoration: none;
    font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
    padding: 10px 22px; transition: color 0.3s;
}
.nav-links li a:hover, .nav-links li a.active { color: #fff; }
.nav-right {
    display: flex; align-items: center; gap: 8px;
    margin-left: 20px;
}

/* --- HAMBURGER --- */
.nav-burger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 8px;
}
.nav-burger span {
    display: block; width: 24px; height: 2px; background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- LANG SWITCHER --- */
.lang-switcher {
    display: flex; align-items: center; gap: 6px;
}
.lang-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600;
    font-family: 'Barlow', sans-serif; letter-spacing: 1px;
    padding: 4px 6px; transition: color 0.3s;
}
.lang-btn:hover { color: rgba(255,255,255,0.85); }
.lang-btn.active { color: #fff; }
.lang-sep { color: rgba(255,255,255,0.3); font-size: 13px; }

/* --- HERO + FEATURES WRAPPER --- */
.hero-features-wrapper {
    position: relative; overflow: hidden;
    min-height: 100vh;
    display: flex; flex-direction: column;
}
.hero-bg-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center bottom;
}
.hero-bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(230,230,235,0.35);
}
.hero-features-content {
    position: relative; z-index: 2;
    flex: 1; display: flex; flex-direction: column;
    justify-content: center;
}

/* --- HERO --- */
.hero-title {
    text-align: center;
    padding: 80px 20px 40px;
}
.hero-title h1 {
    font-family: 'Barlow', sans-serif; font-weight: 300;
    font-size: 58px; color: #fff;
    letter-spacing: 0.3em;
    line-height: 1.3;
}

/* --- FEATURES CARDS --- */
.features-section {
    max-width: 980px; margin: 0 auto;
    padding: 0 20px 80px;
}
.features-cards {
    display: grid; grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}
/* Desktop: contents mode so top/bottom participate in the parent grid */
.feature-card { display: contents; }
.feature-card-top {
    grid-row: 1;
    text-align: center; padding: 24px 14px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    border-radius: 6px 6px 0 0;
    flex: 1;
}
.feature-card-top h3 {
    color: #fff; font-size: 14px; font-weight: 700;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.4; min-height: 40px;
    display: flex; align-items: center; justify-content: center;
}
.feature-card-top img { width: 80px; height: 80px; }
.feature-card-top img.feature-icon-white { filter: brightness(0) invert(1); }
.feature-card-bottom {
    grid-row: 2;
    text-align: center; padding: 20px 14px 24px;
    border-radius: 0 0 6px 6px;
}
.feature-card-bottom p {
    color: #fff; font-size: 12.5px;
    line-height: 1.5; margin-bottom: 0;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.feature-card-bottom p:last-child { border-bottom: none; }
.fc-blue > .feature-card-top, .fc-blue > .feature-card-bottom { background: #4A90B8; }
.fc-teal > .feature-card-top, .fc-teal > .feature-card-bottom { background: #2AAC6E; }
.fc-orange > .feature-card-top, .fc-orange > .feature-card-bottom { background: #E89A3A; }
.fc-purple > .feature-card-top, .fc-purple > .feature-card-bottom { background: #8E5BA5; }
.fc-red > .feature-card-top, .fc-red > .feature-card-bottom { background: #C0392B; }

/* --- VIDEO SECTION --- */
.video-section {
    background: #0a0a0a; padding: 0; position: relative;
}
.video-wrapper {
    max-width: 980px; margin: 0 auto;
    position: relative; padding-bottom: 41.8%;
}
.video-wrapper iframe,
.video-wrapper .video-cover {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.video-cover {
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.video-cover-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.35);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
}
.video-cover-title {
    color: #fff; font-size: 58px; font-weight: 400;
    font-family: 'Barlow', sans-serif; margin-bottom: 10px;
}
.play-btn {
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.3s;
}
.play-btn:hover { background: rgba(255,255,255,0.4); }
.play-btn svg { width: 24px; height: 24px; fill: #fff; margin-left: 4px; }

/* --- SLIDESHOW / ABOUT SECTIONS --- */
.section { padding: 80px 20px; }
.section-dark { background: #1A5276; color: #fff; }
.section-light { background: #f5f5f5; }
.section-white { background: #fff; }
.container { max-width: 980px; margin: 0 auto; }

.section-title {
    font-family: 'Barlow', sans-serif; font-weight: 200;
    font-size: 40px; text-align: center; margin-bottom: 15px;
    line-height: 1.3;
}
.section-subtitle {
    font-family: 'Barlow', sans-serif; font-weight: 400;
    font-size: 20px; text-align: center; margin-bottom: 40px;
    color: #333;
}

/* --- ABOUT GRID --- */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
}
.about-text h2 {
    font-family: 'Barlow', sans-serif; font-weight: 300;
    font-size: 28px; color: #1A5276; margin-bottom: 20px;
}
.about-text p {
    font-size: 16px; color: #555; line-height: 1.8; margin-bottom: 15px;
}
.about-problems { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.problem-item { display: flex; gap: 15px; align-items: flex-start; }
.problem-item img { width: 50px; height: 50px; flex-shrink: 0; }
.problem-item strong { display: block; color: #1A5276; font-size: 15px; margin-bottom: 4px; }
.problem-item p { font-size: 14px; color: #666; line-height: 1.6; margin: 0; }

.solution-card {
    background: #fff; border-radius: 4px; padding: 20px;
    border-left: 3px solid #1A5276; margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.solution-card h4 { font-size: 15px; color: #1A5276; margin-bottom: 6px; }
.solution-card p { font-size: 14px; color: #666; line-height: 1.6; margin: 0; }

/* --- STATS --- */
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    text-align: center;
}
.stat-item h3 {
    font-family: 'Barlow', sans-serif; font-weight: 300;
    font-size: 48px; color: #1A5276;
}
.stat-item p { font-size: 15px; color: #666; margin-top: 5px; }

/* --- CONTACT --- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.contact-info h2 {
    font-family: 'Barlow', sans-serif; font-weight: 300;
    font-size: 28px; margin-bottom: 15px;
}
.contact-info p { font-size: 16px; line-height: 1.8; margin-bottom: 20px; }

.contact-form { background: rgba(255,255,255,0.1); border-radius: 4px; padding: 30px; }
.contact-form h3 { font-size: 20px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px; font-family: inherit; font-size: 14px;
    background: rgba(255,255,255,0.05); color: #fff; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: rgba(255,255,255,0.6);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
    padding: 12px 40px; background: #fff; color: #1A5276; border: none;
    border-radius: 3px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.form-submit:hover { background: #e0e0e0; }

/* --- FOOTER --- */
.footer {
    background: #111; padding: 30px 20px; text-align: center;
    color: rgba(255,255,255,0.4); font-size: 13px;
}
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer a:hover { color: #fff; }

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
    .hero-title h1 { font-size: 42px; letter-spacing: 0.2em; }
    .features-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet: 2 or 3 columns for cards, hamburger menu for touch tablets */
@media (max-width: 768px) {
    .nav-burger { display: flex; }
    .nav-right { margin-left: auto; z-index: 2; }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 70px; left: 0; right: 0; z-index: 1;
        background: #1A5276; padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .nav-links.open { display: flex; }
    .nav-links li a { padding: 12px 30px; display: block; }

    .hero-title h1 { font-size: 28px; letter-spacing: 0.1em; }
    .hero-title { padding: 100px 20px 30px; }
    .features-section { max-width: 100%; }
    .features-cards { grid-template-columns: repeat(3, 1fr); }
    .feature-card { display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; }
    .feature-card-top { grid-row: auto; border-radius: 0; }
    .feature-card-bottom { grid-row: auto; border-radius: 0; flex: 1; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .section-title { font-size: 28px; }
    .stat-item h3 { font-size: 36px; }
}

/* Small phones: single column */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title h1 { font-size: 22px; letter-spacing: 0.05em; }
    .features-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* --- TOUCH DEVICES: only hamburger menu (not full mobile layout) --- */
@media (hover: none) and (pointer: coarse) {
    .nav-burger { display: flex; }
    .nav-right { margin-left: auto; z-index: 2; }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 70px; left: 0; right: 0; z-index: 1;
        background: #1A5276; padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .nav-links.open { display: flex; }
    .nav-links li a { padding: 12px 30px; display: block; }
}

/* --- TOUCH DEVICES + small screen: full mobile layout --- */
@media (hover: none) and (pointer: coarse) and (max-width: 480px) {
    .hero-title h1 { font-size: 22px; letter-spacing: 0.05em; }
    .hero-title { padding: 100px 20px 30px; }
    .features-section { max-width: 100%; }
    .features-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .feature-card { display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; }
    .feature-card-top { grid-row: auto; border-radius: 0; }
    .feature-card-bottom { grid-row: auto; border-radius: 0; flex: 1; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section-title { font-size: 28px; }
    .stat-item h3 { font-size: 36px; }
}
