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

:root {
    --red-primary: #bf3a2a;
    --red-dark: #9c2e22;
    --red-light: #d9564a;
    --red-glow: rgba(191, 58, 42, 0.25);

    --bg-body: #faf9f7;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --bg-section-alt: #f2f0ec;

    --text-dark: #1a1a1a;
    --text-body: #4a4a4a;
    --text-muted: #888888;
    --text-white: #ffffff;

    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-red: 0 12px 40px rgba(191, 58, 42, 0.2);

    --radius: 16px;
    --radius-lg: 24px;
    --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* ─── Reset ───────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ─── Utilities ───────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-section-alt);
}

.label {
    display: inline-block;
    color: var(--red-primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
}

/* ─── Navbar ──────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.35s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
}

.nav-logo span {
    color: var(--red-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color 0.2s;
    line-height: 1;
    padding: 10px 0;
}

.nav-links a:hover {
    color: var(--red-primary);
}

.nav-cta {
    padding: 14px 32px !important;
    background: var(--red-primary);
    color: var(--text-white) !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(191, 58, 42, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 540px;
}

.hero-text .label {
    font-size: 0.8rem;
}

.hero-text h1 {
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero-text h1 em {
    font-style: normal;
    color: var(--red-primary);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--red-primary);
    color: var(--text-white);
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 50px rgba(191, 58, 42, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-dark);
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    position: relative;
}

.hv-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hv-dot.r {
    background: #ff5f57;
}

.hv-dot.y {
    background: #febc2e;
}

.hv-dot.g {
    background: #28c840;
}

.hv-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hv-metric {
    text-align: center;
    flex: 1;
}

.hv-metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

.hv-metric-value.red {
    color: var(--red-primary);
}

.hv-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hv-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hv-row {
    height: 12px;
    border-radius: 6px;
    background: var(--bg-section-alt);
    position: relative;
    overflow: hidden;
}

.hv-row-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 6px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hv-row-fill.f1 {
    width: 82%;
    background: var(--red-primary);
}

.hv-row-fill.f2 {
    width: 65%;
    background: var(--red-light);
}

.hv-row-fill.f3 {
    width: 90%;
    background: var(--red-dark);
}

.hv-row-fill.f4 {
    width: 45%;
    background: var(--red-primary);
    opacity: 0.7;
}

.hv-floating-tag {
    position: absolute;
    padding: 10px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    animation: float 4s ease-in-out infinite alternate;
}

.hv-floating-tag.t1 {
    top: -20px;
    right: -30px;
    animation-delay: 0s;
}

.hv-floating-tag.t2 {
    bottom: 40px;
    left: -40px;
    animation-delay: 1.5s;
}

.hv-floating-tag .tag-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 1rem;
}

@keyframes float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-12px);
    }
}

/* ─── Statistics ──────────────────────────────────────── */
.stats {
    padding: 60px 0;
    background: var(--bg-dark);
    color: var(--text-white);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red-light);
}

.stat-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ─── Modules Grid ────────────────────────────────────── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.module-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--red-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(191, 58, 42, 0.08);
    color: var(--red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.module-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.module-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

.module-tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--red-primary);
    background: rgba(191, 58, 42, 0.06);
    padding: 4px 12px;
    border-radius: 6px;
}

/* ─── Alternating Feature Rows ────────────────────────── */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row.reverse .feature-content {
    order: 2;
}

.feature-row.reverse .feature-media {
    order: 1;
}

.feature-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-content p {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.75;
}

.feature-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-body);
}

.feature-list li .fl-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(191, 58, 42, 0.1);
    color: var(--red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}

.feature-media {
    background: linear-gradient(145deg, rgba(191, 58, 42, 0.04), rgba(191, 58, 42, 0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-media .media-icon {
    font-size: 5rem;
    color: rgba(191, 58, 42, 0.12);
}

/* ─── Architecture ────────────────────────────────────── */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.arch-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: box-shadow 0.3s;
}

.arch-card:hover {
    box-shadow: var(--shadow-md);
}

.arch-num {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(191, 58, 42, 0.15);
    line-height: 1;
}

.arch-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.arch-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.65;
}

/* ─── CTA Section ─────────────────────────────────────── */
.cta-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(191, 58, 42, 0.2), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 36px;
    position: relative;
}

.cta-section .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--red-primary);
    color: var(--text-white);
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 12px 40px rgba(191, 58, 42, 0.35);
    position: relative;
}

.cta-section .btn-cta:hover {
    background: var(--red-light);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(191, 58, 42, 0.45);
}

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
    padding: 48px 0;
    background: #111;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--red-light);
    font-weight: 600;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--red-primary);
}

.footer-sep {
    width: 40px;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
    margin: 16px auto;
}

/* ─── Scroll Animations ──────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Hamburger Button ────────────────────────────────── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

body.menu-open {
    overflow: hidden;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 105;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-dark);
        padding: 20px 0;
    }

    .nav-links .nav-cta {
        margin-top: 16px;
        padding: 14px 36px;
        font-size: 1.1rem;
    }

    .hero {
        padding-top: 100px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-row,
    .feature-row.reverse .feature-content,
    .feature-row.reverse .feature-media {
        grid-template-columns: 1fr;
    }

    .feature-row {
        gap: 40px;
    }

    .feature-row.reverse .feature-content,
    .feature-row.reverse .feature-media {
        order: unset;
    }

    .arch-grid {
        grid-template-columns: 1fr;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 90px;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .stats .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-visual-card {
        padding: 24px;
    }

    .section {
        padding: 64px 0;
    }

    .hv-floating-tag {
        display: none;
    }
}