@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

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

html {
    scroll-behavior: smooth;
}

body {
    --bg-main: #070d18;
    --bg-soft: #0e1a2c;
    --surface: rgba(19, 30, 49, 0.78);
    --surface-strong: rgba(18, 28, 44, 0.94);
    --line: rgba(131, 173, 208, 0.2);
    --text: #ecf2ff;
    --text-soft: #9db3cc;
    --title: #f5f8ff;
    --brand: #00b4d8;
    --brand-soft: #0ec4b5;
    --accent: #f59e0b;
    --accent-soft: #f97316;
    font-family: "Space Grotesk", sans-serif;
    background:
        radial-gradient(circle at 8% 6%, rgba(0, 180, 216, 0.2), transparent 30%),
        radial-gradient(circle at 90% 84%, rgba(245, 158, 11, 0.16), transparent 36%),
        linear-gradient(145deg, #060b15, #081021 44%, #0c1629 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: linear-gradient(rgba(157, 179, 204, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 179, 204, 0.055) 1px, transparent 1px);
    background-size: 36px 36px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 14, 24, 0.88);
    border-bottom: 1px solid rgba(157, 179, 204, 0.12);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    background: rgba(5, 10, 18, 0.97);
    border-color: rgba(0, 180, 216, 0.28);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

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

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--title);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.03em;
}

.navbar .logo img {
    width: 40px;
    height: 40px;
}

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

.nav-link {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-soft));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: var(--title);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.btn-login {
    border: 1px solid rgba(0, 180, 216, 0.38);
    border-radius: 999px;
    padding: 10px 22px;
    text-decoration: none;
    color: var(--title);
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(120deg, rgba(0, 180, 216, 0.22), rgba(14, 196, 181, 0.24));
    box-shadow: 0 12px 26px rgba(0, 180, 216, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 180, 216, 0.62);
    box-shadow: 0 18px 30px rgba(0, 180, 216, 0.25);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    border-radius: 6px;
    background: var(--title);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 76px 0 auto 0;
    min-height: calc(100vh - 76px);
    background: rgba(7, 12, 20, 0.98);
    z-index: 998;
    padding: 28px 20px;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link,
.mobile-link-btn {
    border: 1px solid rgba(157, 179, 204, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.mobile-link {
    color: var(--text);
    background: rgba(20, 34, 56, 0.62);
}

.mobile-link-btn {
    color: var(--title);
    background: linear-gradient(120deg, rgba(0, 180, 216, 0.34), rgba(14, 196, 181, 0.3));
    border-color: rgba(0, 180, 216, 0.44);
    margin-top: 6px;
}

body.menu-open {
    overflow: hidden;
}

.hero {
    padding: 132px 20px 88px;
    min-height: min(980px, 100vh);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 18px;
    color: var(--title);
}

.highlight {
    background: linear-gradient(90deg, var(--brand), var(--brand-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.18rem);
    max-width: 56ch;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 26px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: #032531;
    background: linear-gradient(120deg, #15d7ff, #10c3b5);
    box-shadow: 0 16px 30px rgba(0, 180, 216, 0.3);
}

.btn-secondary {
    color: var(--title);
    background: rgba(20, 34, 56, 0.8);
    border-color: rgba(157, 179, 204, 0.34);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary:hover {
    border-color: rgba(0, 180, 216, 0.5);
}

.btn-large {
    padding: 16px 34px;
    font-size: 1rem;
}

.hero-metrics {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    border: 1px solid rgba(157, 179, 204, 0.2);
    border-radius: 12px;
    background: rgba(13, 21, 35, 0.84);
    padding: 12px;
    display: grid;
    gap: 3px;
}

.metric-value {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.1rem;
    color: #8be9fd;
    font-weight: 700;
}

.metric-label {
    color: var(--text-soft);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.code-preview {
    background: linear-gradient(160deg, rgba(14, 22, 37, 0.95), rgba(10, 18, 31, 0.96));
    border-radius: 20px;
    border: 1px solid rgba(0, 180, 216, 0.26);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.code-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(157, 179, 204, 0.18);
    display: flex;
    align-items: center;
    gap: 7px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-title {
    margin-left: auto;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-soft);
}

.code-content {
    padding: 18px;
}

.code-content pre {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(0.72rem, 1.3vw, 0.9rem);
    line-height: 1.8;
    color: #d6e6ff;
}

.keyword { color: #f9a8d4; }
.function { color: #67e8f9; }
.string { color: #fcd34d; }
.comment { color: #7ea1c8; }
.output { color: #86efac; }

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.9rem);
    text-align: center;
    line-height: 1.15;
    color: var(--title);
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-soft);
    font-size: clamp(0.94rem, 1.8vw, 1.12rem);
    max-width: 68ch;
    margin: 0 auto 46px;
}

.about,
.features,
.modules,
.credits,
.cta {
    padding: 88px 20px;
    position: relative;
}

.about {
    background: linear-gradient(180deg, rgba(9, 16, 28, 0), rgba(16, 27, 44, 0.52));
}

.about-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 180, 216, 0.5);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.about-card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
    color: var(--title);
}

.about-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    background: rgba(14, 22, 36, 0.84);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.44);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--title);
}

.feature-item p {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.modules {
    background: linear-gradient(180deg, rgba(15, 23, 36, 0.82), rgba(7, 14, 25, 0.92));
}

.modules-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.module-card {
    --module-main: var(--brand);
    --module-soft: rgba(0, 180, 216, 0.22);
    --module-border: rgba(0, 180, 216, 0.56);
    --module-ink: #8be9fd;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11, 18, 30, 0.9);
    padding: 20px 16px;
    display: grid;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.module-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--module-main), transparent);
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--module-border);
}

.module-number {
    font-family: "JetBrains Mono", monospace;
    color: var(--module-ink);
    font-size: 1.6rem;
    font-weight: 700;
}

.module-card h3 {
    color: var(--title);
    font-size: 1rem;
    line-height: 1.3;
}

.module-card p {
    color: var(--text-soft);
    font-size: 0.82rem;
}

.module-lessons {
    display: inline-flex;
    width: fit-content;
    border: 1px solid var(--module-border);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.74rem;
    color: var(--module-ink);
    background: var(--module-soft);
}

.module-card[data-module="sequencial"] {
    --module-main: #00b4d8;
    --module-soft: rgba(0, 180, 216, 0.17);
    --module-border: rgba(0, 180, 216, 0.56);
    --module-ink: #8be9fd;
}

.module-card[data-module="comparativa"] {
    --module-main: #f97316;
    --module-soft: rgba(249, 115, 22, 0.16);
    --module-border: rgba(249, 115, 22, 0.56);
    --module-ink: #fdba74;
}

.module-card[data-module="repetitiva"] {
    --module-main: #f59e0b;
    --module-soft: rgba(245, 158, 11, 0.17);
    --module-border: rgba(245, 158, 11, 0.56);
    --module-ink: #fcd34d;
}

.module-card[data-module="vetores"] {
    --module-main: #2dd4bf;
    --module-soft: rgba(45, 212, 191, 0.17);
    --module-border: rgba(45, 212, 191, 0.56);
    --module-ink: #99f6e4;
}

.module-card[data-module="matrizes"] {
    --module-main: #84cc16;
    --module-soft: rgba(132, 204, 22, 0.17);
    --module-border: rgba(132, 204, 22, 0.56);
    --module-ink: #bef264;
}

.credits-content {
    display: grid;
    grid-template-columns: 1.22fr 1fr;
    gap: 22px;
    align-items: start;
}

.developers-carousel,
.credits-tech {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.developers-carousel {
    position: relative;
    padding: 24px 26px;
}

.developers-container {
    position: relative;
    min-height: 560px;
    padding: 0 4px;
}

.developer-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(22px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.developer-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.developer-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(0, 180, 216, 0.55);
}

.developer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-badge {
    width: fit-content;
    margin: 0 auto 12px;
    border-radius: 999px;
    padding: 5px 12px;
    border: 1px solid rgba(0, 180, 216, 0.36);
    background: rgba(0, 180, 216, 0.12);
    color: #84edff;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.developer-name {
    text-align: center;
    color: var(--title);
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.developer-role {
    text-align: center;
    color: #7ad4e6;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.developer-description {
    color: var(--text-soft);
    text-align: center;
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.developer-skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.skill {
    border-radius: 999px;
    border: 1px solid rgba(157, 179, 204, 0.3);
    background: rgba(14, 23, 39, 0.9);
    color: #b8c9df;
    padding: 5px 10px;
    font-size: 0.74rem;
}

.developer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dev-link {
    border-radius: 999px;
    border: 1px solid rgba(157, 179, 204, 0.28);
    background: rgba(19, 31, 50, 0.86);
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.dev-link:hover {
    border-color: rgba(0, 180, 216, 0.5);
    transform: translateY(-1px);
}

.carousel-controls {
    margin-top: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.carousel-btn {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(157, 179, 204, 0.26);
    background: rgba(10, 17, 29, 0.8);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    border-color: rgba(0, 180, 216, 0.55);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(157, 179, 204, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.indicator.active {
    width: 24px;
    background: #6beaff;
}

.credits-tech {
    padding: 24px;
}

.credits-tech h3 {
    color: var(--title);
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.tech-stack {
    display: grid;
    gap: 10px;
}

.tech-item {
    border: 1px solid rgba(157, 179, 204, 0.22);
    border-radius: 12px;
    background: rgba(12, 21, 35, 0.78);
    padding: 11px 12px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.tech-item strong {
    color: #8be9fd;
}

.project-info {
    margin-top: 20px;
    border: 1px solid rgba(157, 179, 204, 0.2);
    border-radius: 16px;
    background: rgba(8, 14, 24, 0.68);
    padding: 18px;
    text-align: center;
}

.project-info p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.project-info p + p {
    margin-top: 6px;
}

.cta {
    text-align: center;
}

.cta .container {
    border: 1px solid rgba(157, 179, 204, 0.2);
    border-radius: 22px;
    padding: 42px 30px;
    background:
        radial-gradient(circle at 25% 15%, rgba(0, 180, 216, 0.19), transparent 34%),
        radial-gradient(circle at 78% 85%, rgba(245, 158, 11, 0.15), transparent 40%),
        rgba(9, 15, 26, 0.92);
}

.cta h2 {
    font-size: clamp(1.7rem, 3.3vw, 2.7rem);
    color: var(--title);
    margin-bottom: 10px;
}

.cta p {
    color: var(--text-soft);
    font-size: 1.02rem;
    margin-bottom: 24px;
}

.footer {
    border-top: 1px solid rgba(157, 179, 204, 0.2);
    background: rgba(5, 10, 18, 0.94);
    padding: 28px 20px 18px;
}

.footer-content {
    max-width: 1240px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--title);
    font-weight: 700;
    font-size: 1.05rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--title);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    border-top: 1px solid rgba(157, 179, 204, 0.16);
    padding-top: 14px;
    color: #8ea5bd;
    text-align: center;
    font-size: 0.83rem;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (max-width: 1180px) {
    .about-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .modules-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .credits-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .hero {
        padding: 112px 20px 70px;
        min-height: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-image {
        order: -1;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .developers-container {
        min-height: 620px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn,
    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .about,
    .features,
    .modules,
    .credits,
    .cta {
        padding: 66px 14px;
    }

    .about-content,
    .features-grid,
    .modules-list {
        grid-template-columns: 1fr;
    }

    .developers-carousel,
    .credits-tech {
        padding: 18px;
    }

    .developers-container {
        min-height: 690px;
    }

    .carousel-controls {
        gap: 8px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .nav-container {
        height: 68px;
    }

    .mobile-menu {
        inset: 68px 0 auto 0;
    }

    .hero {
        padding-top: 104px;
    }

    .navbar .logo {
        font-size: 1.1rem;
    }

    .navbar .logo img {
        width: 34px;
        height: 34px;
    }

    .developers-container {
        min-height: 740px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}