/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #333333;
    background-color: #F2F0ED;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --bg-light: #F2F0ED;
    --bg-white: #FFFFFF;
    --bg-dark: #171D2A;
    --text-dark: #333333;
    --text-light: #E8E6E3;
    --text-muted-light: #B0ACA6;
    --accent: #6EB32E;
    --accent-hover: #5CA924;
    --accent-muted: rgba(110, 179, 46, 0.07);
    --ci-red: #E60000;
    --grey-warm: #8B8178;
    --border-light: #E0DDD9;
    --border-input: #D1CEC9;
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.06);
    --font-heading: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --nav-height: 70px;
    --max-width: 1140px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: inherit;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ============================================
   UTILITY
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.ci-i {
    color: var(--ci-red);
    text-transform: lowercase;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.section-label--light {
    color: var(--text-muted-light);
}

.section-label--light::before {
    background: var(--text-muted-light);
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
}

::selection {
    background: var(--accent);
    color: #FFFFFF;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__logo img {
    height: 36px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav__links > li {
    position: relative;
}

.nav__links > li > a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0 1rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav__links > li > a:hover,
.nav__links > li > a.active {
    color: var(--accent);
}

.nav__links > li > a.active {
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* Dropdown arrow */
.nav__links > li > a .nav__arrow {
    margin-left: 5px;
    width: 8px;
    height: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav__links > li > a .nav__arrow svg {
    transition: transform 0.2s ease;
}

.nav__links > li:hover > a .nav__arrow svg {
    transform: rotate(180deg);
}

/* Desktop dropdown */
.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 200;
}

.nav__links > li:hover > .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 1.07rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid var(--border-light);
}

.nav__dropdown li:last-child a {
    border-bottom: none;
}

.nav__dropdown li a:hover {
    background: var(--accent-muted);
    color: var(--accent);
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav__mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    z-index: 99;
    overflow-y: auto;
}

.nav__mobile.open {
    display: block;
}

.nav__mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav__mobile > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 24px;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
}

.nav__mobile > ul > li > a:hover {
    color: var(--accent);
    background: var(--bg-light);
}

.nav__mobile > ul > li > a.active {
    color: var(--accent);
}

.nav__mobile-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.nav__mobile-arrow.open {
    transform: rotate(180deg);
}

.nav__mobile-sub {
    display: none;
    list-style: none;
    background: var(--bg-light);
}

.nav__mobile-sub.open {
    display: block;
}

.nav__mobile-sub li a {
    display: block;
    padding: 0.6rem 24px 0.6rem 40px;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--grey-warm);
    text-decoration: none;
}

.nav__mobile-sub li a:hover {
    color: var(--accent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 15px 32px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease, color 0.25s ease;
    position: relative;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    z-index: -1;
    transition: top 0.2s ease, left 0.2s ease;
}

.btn--primary:hover {
    background: #FFFFFF;
    color: var(--bg-dark);
    transform: translate(-2px, -2px);
}

.btn--primary:hover::after {
    top: 5px;
    left: 5px;
}

.btn--outline {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--outline-dark {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.btn--outline-dark:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--outline-light {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline-light:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   PAGE HERO (not fullscreen)
   ============================================ */
.page-hero {
    margin-top: var(--nav-height);
    background: var(--bg-dark);
    padding: 6rem 0;
}

.page-hero__overline {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.3s;
}

.page-hero__overline::before {
    content: '//';
    color: var(--accent);
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.5s;
}

.page-hero__subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 400;
    color: var(--text-muted-light);
    max-width: 600px;
    line-height: 1.85;
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.7s;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    background: var(--bg-dark);
    padding: 4rem 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.stat__label {
    font-size: 1.08rem;
    color: var(--text-muted-light);
    line-height: 1.4;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.0rem;
    padding: 10px 14px;
    border: 1px solid var(--border-input);
    border-radius: 2px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--border-input);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-section__inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-section__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Light variant */
.cta-section--light {
    background: var(--bg-white);
}

.cta-section--light p {
    color: var(--grey-warm);
}

/* Dark variant */
.cta-section--dark {
    background: var(--bg-dark);
}

.cta-section--dark h2 {
    color: #FFFFFF;
}

.cta-section--dark p {
    color: var(--text-muted-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    padding-top: 0;
}

.footer__accent-line {
    height: 3px;
    background: var(--accent);
}

.footer__content {
    padding: 3.5rem 0 1.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__heading {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
}

.footer__text {
    font-size: 1.08rem;
    color: var(--text-muted-light);
    line-height: 1.65;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__links a {
    font-size: 1.08rem;
    color: var(--text-muted-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: #FFFFFF;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copyright {
    font-size: 1.02rem;
    color: var(--text-muted-light);
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
}

.footer__legal a {
    font-size: 1.02rem;
    color: var(--text-muted-light);
    text-decoration: none;
}

.footer__legal a:hover {
    color: #FFFFFF;
}

.footer__meta {
    margin-top: 1.2rem;
    font-size: 0.98rem;
    color: rgba(176, 172, 166, 0.6);
    line-height: 1.7;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE -- 1024px
   ============================================ */
@media (max-width: 1024px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ============================================
   RESPONSIVE -- 768px
   ============================================ */
@media (max-width: 768px) {
    h2 { font-size: 1.5rem; }

    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .stats {
        padding: 3rem 0;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat__number {
        font-size: 2.2rem;
    }

    .cta-section {
        padding: 3.5rem 0;
    }

    .cta-section__buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-hero {
        padding: 4rem 0;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}
