/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #0a0a0a;
    --grey-900: #1a1a1a;
    --grey-800: #2a2a2a;
    --grey-700: #3a3a3a;
    --grey-600: #555;
    --grey-500: #777;
    --grey-400: #999;
    --grey-300: #bbb;
    --grey-200: #e0e0e0;
    --grey-100: #f2f2f2;
    --grey-50: #f8f8f8;
    --white: #fff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.10);
    --ease: cubic-bezier(.4,0,.2,1);
    --transition: .3s var(--ease);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--grey-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ===== PAGE TRANSITION OVERLAY ===== */
.page-transition {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    opacity: 1;
    transition: opacity .5s var(--ease);
    pointer-events: none;
}
.page-transition.hide { opacity: 0; }
.page-transition .loader-mark-img {
    width: 52px; height: 52px;
    object-fit: contain;
    animation: pulse-icon 1.2s var(--ease) infinite;
}
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .6; }
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--black); }
h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--black); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--grey-900); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-label {
    font-size: .78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .16em; color: var(--grey-500); margin-bottom: 12px;
    display: inline-block;
}
.section-desc { color: var(--grey-600); margin-top: 16px; font-size: 1.05rem; }

/* ===== SCROLL TEXT REVEAL (grey → black) ===== */
.reveal-text {
    color: var(--grey-300);
    transition: color .8s var(--ease);
}
.reveal-text.revealed { color: var(--black); }

/* ===== LETTER-BY-LETTER INTRO ===== */
.letter-anim span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterIn .5s var(--ease) forwards;
}
@keyframes letterIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== WORD-BY-WORD REVEAL ===== */
.word-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.word-reveal.visible .word { opacity: 1; transform: translateY(0); }

/* ===== FADE / SLIDE ANIMATIONS ===== */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
    opacity: 0;
    transition: opacity .7s var(--ease);
}
.fade-in.visible { opacity: 1; }

.slide-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
    opacity: 0; transform: scale(.92);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: .1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: .2s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: .3s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: .4s; }
.stagger-children .fade-up:nth-child(6) { transition-delay: .5s; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; font-size: .95rem; font-weight: 600;
    font-family: var(--font); border-radius: 50px; border: none;
    cursor: pointer; transition: var(--transition); gap: 8px;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--grey-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--black); border: 1.5px solid var(--grey-300); }
.btn-outline:hover { border-color: var(--black); background: var(--grey-50); }
.btn-full { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 16px 0; transition: var(--transition); background: transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 10px 0; box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; z-index: 1001; }
.logo-icon {
    width: 36px; height: 36px; object-fit: contain; border-radius: 8px;
}
.logo-text { color: var(--black); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links li a {
    padding: 8px 16px; font-size: .9rem; font-weight: 500;
    color: var(--grey-600); border-radius: 50px; transition: var(--transition);
}
.nav-links li a:hover, .nav-links li a.active { color: var(--black); background: var(--grey-100); }

.nav-cta { background: var(--black) !important; color: var(--white) !important; padding: 10px 24px !important; }
.nav-cta:hover { background: var(--grey-800) !important; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; z-index: 1001; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; overflow: hidden;
}
.hero-grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--grey-500); margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: var(--grey-600); margin-top: 20px; max-width: 520px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--grey-200); }
.stat-number { display: block; font-size: 1.6rem; font-weight: 800; color: var(--black); }
.stat-label { font-size: .82rem; color: var(--grey-500); font-weight: 500; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-image-wrap { position: relative; width: 100%; max-width: 500px; }
.hero-image-wrap img { border-radius: var(--radius-lg); width: 100%; }

/* Hero Carousel */
.hero-carousel { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-lg); }
.hero-carousel-track { display: flex; transition: transform .6s var(--ease); }
.hero-carousel-track .carousel-slide { min-width: 100%; position: relative; }
.hero-carousel-track .carousel-slide img { width: 100%; display: block; border-radius: var(--radius-lg); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--grey-300);
    background: transparent; cursor: pointer; transition: var(--transition); padding: 0;
}
.carousel-dot.active { background: var(--black); border-color: var(--black); }
.carousel-label {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,.88); backdrop-filter: blur(8px);
    padding: 6px 18px; border-radius: 50px; font-size: .78rem; font-weight: 600;
    color: var(--grey-800); white-space: nowrap;
}

.hero-float-card {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
    padding: 12px 18px; border-radius: 50px; font-size: .82rem; font-weight: 600;
    color: var(--grey-800); box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,.06);
}
.card-top { top: 20%; right: -20px; }
.card-bottom { bottom: 20%; left: -20px; }

/* ===== PAGE HERO (internal pages) ===== */
.page-hero {
    padding: 160px 0 80px; text-align: center;
    position: relative; overflow: hidden;
    background: var(--grey-50);
}
.page-hero .hero-grid-bg { opacity: .5; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--grey-600); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-lead { font-size: 1.2rem; font-weight: 500; color: var(--grey-900); line-height: 1.7; margin-bottom: 16px; }
.about-main p { color: var(--grey-600); }
.about-cards { display: flex; flex-direction: column; gap: 24px; }
.about-card {
    padding: 28px; background: var(--grey-50); border-radius: var(--radius);
    border: 1px solid var(--grey-100); transition: var(--transition);
}
.about-card:hover { border-color: var(--grey-200); box-shadow: var(--shadow-sm); }
.about-card-icon {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: var(--white); border-radius: 10px; margin-bottom: 16px;
    border: 1px solid var(--grey-200); color: var(--grey-700);
}
.about-card h3 { margin-bottom: 8px; }
.about-card p { font-size: .92rem; color: var(--grey-600); }

/* Big text block */
.big-text-block { padding: 80px 0; }
.big-text {
    font-size: clamp(1.4rem,3vw,2.2rem); font-weight: 500; line-height: 1.6;
    color: var(--grey-300); max-width: 900px; margin: 0 auto; text-align: center;
}

/* ===== VALUES STRIP ===== */
.values-strip { padding: 80px 0; background: var(--black); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.value-item h3 { color: var(--white); margin-bottom: 8px; font-size: 1.1rem; }
.value-item p { color: var(--grey-400); font-size: .9rem; }
.value-number { font-size: 3rem; font-weight: 800; color: var(--grey-700); margin-bottom: 12px; display: block; }

/* ===== SOLUTIONS ===== */
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.solution-card {
    padding: 40px; background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--grey-100); transition: var(--transition);
}
.solution-card:hover { border-color: var(--grey-300); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.solution-icon {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: var(--grey-50); border-radius: 14px; margin-bottom: 20px;
    color: var(--grey-700); border: 1px solid var(--grey-200);
}
.solution-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.solution-card > p { color: var(--grey-600); font-size: .95rem; margin-bottom: 20px; }
.solution-features { display: flex; flex-direction: column; gap: 8px; }
.solution-features li {
    font-size: .85rem; color: var(--grey-500); padding-left: 20px; position: relative;
}
.solution-features li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--grey-300);
}

/* Full-width solution showcase */
.solution-showcase {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; padding: 80px 0;
    border-bottom: 1px solid var(--grey-100);
}
.solution-showcase:last-child { border-bottom: none; }
.solution-showcase.reverse { direction: rtl; }
.solution-showcase.reverse > * { direction: ltr; }
.solution-showcase-img { border-radius: var(--radius-lg); overflow: hidden; }
.solution-showcase-img img { width: 100%; border-radius: var(--radius-lg); }
.solution-showcase-text h3 { font-size: 1.5rem; margin-bottom: 12px; }
.solution-showcase-text p { color: var(--grey-600); margin-bottom: 20px; }
.solution-showcase-text .solution-features li { font-size: .9rem; }

/* ===== TRAINING ===== */
.training-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.training-card {
    padding: 36px; background: var(--grey-50); border-radius: var(--radius-lg);
    border: 1px solid var(--grey-100); transition: var(--transition); position: relative; overflow: hidden;
}
.training-card:hover { border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
.training-number { font-size: 3.5rem; font-weight: 800; color: var(--grey-200); line-height: 1; margin-bottom: 16px; display: block; }
.training-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.training-card p { color: var(--grey-600); font-size: .95rem; margin-bottom: 20px; }
.training-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.training-tags span {
    padding: 5px 14px; background: var(--white); border: 1px solid var(--grey-200);
    border-radius: 50px; font-size: .78rem; font-weight: 500; color: var(--grey-600);
}

/* ===== WHY US ===== */
.why-us { background: var(--black); }
.why-us .section-label { color: var(--grey-400); }
.why-us h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
    padding: 32px 24px; background: rgba(255,255,255,.05);
    border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.08); transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.why-icon {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); border-radius: 14px; margin-bottom: 20px; color: var(--grey-300);
}
.why-card h3 { color: var(--white); margin-bottom: 10px; }
.why-card p { color: var(--grey-400); font-size: .92rem; }

/* ===== USE CASES ===== */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.usecase-card {
    border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
    border: 1px solid var(--grey-100); transition: var(--transition);
}
.usecase-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.usecase-img { overflow: hidden; height: 220px; }
.usecase-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.usecase-card:hover .usecase-img img { transform: scale(1.03); }
.usecase-content { padding: 28px; }
.usecase-content h3 { margin-bottom: 8px; }
.usecase-content p { color: var(--grey-600); font-size: .92rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--grey-600); margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--grey-600); }
.contact-item svg { color: var(--grey-400); flex-shrink: 0; }

.contact-form {
    padding: 40px; background: var(--grey-50); border-radius: var(--radius-lg); border: 1px solid var(--grey-100);
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--grey-700); margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; font-family: var(--font); font-size: .92rem;
    border: 1px solid var(--grey-200); border-radius: 10px; background: var(--white);
    color: var(--grey-900); transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--grey-400); box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== FOOTER ===== */
.footer { background: var(--grey-50); padding: 60px 0 0; border-top: 1px solid var(--grey-100); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--grey-500); font-size: .9rem; margin-top: 16px; max-width: 300px; }
.footer-links h3 { font-size: .9rem; font-weight: 600; color: var(--grey-900); margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li { font-size: .88rem; color: var(--grey-500); }
.footer-links li a:hover { color: var(--black); }
.footer-bottom { border-top: 1px solid var(--grey-200); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: .82rem; color: var(--grey-400); }

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 80px 0; text-align: center;
    background: var(--grey-50);
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { color: var(--grey-600); max-width: 500px; margin: 0 auto 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-sub { margin: 16px auto 0; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-image-wrap { max-width: 380px; }
    .card-top { right: 0; } .card-bottom { left: 0; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .solution-showcase { grid-template-columns: 1fr; gap: 32px; }
    .solution-showcase.reverse { direction: ltr; }
    .values-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .section-header { margin-bottom: 40px; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
        background: var(--white); flex-direction: column; align-items: flex-start;
        padding: 100px 32px 40px; gap: 4px;
        box-shadow: -4px 0 30px rgba(0,0,0,.1); transition: right .35s ease;
    }
    .nav-links.open { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links li a { display: block; padding: 12px 0; font-size: 1rem; border-radius: 0; }
    .nav-cta { margin-top: 16px; text-align: center !important; display: block !important; border-radius: 50px !important; padding: 14px 24px !important; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-stats { gap: 24px; }
    .page-hero { padding: 120px 0 60px; }
    .solutions-grid, .training-grid, .usecase-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-form { padding: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
    .hero-float-card { display: none; }
    .solution-card, .training-card { padding: 24px; }
}
