@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --background: #f5f7fb;
    --surface: #ffffff;
    --text: #101828;
    --muted: #667085;
    --primary: #635bff;
    --primary-dark: #5048d8;
    --border: #e4e7ec;
    --dark: #101828;
    --green: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.theme-button {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.1rem;
}

.hero {
    min-height: calc(100vh - 72px);
    padding: 80px 7%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(99, 91, 255, 0.12), transparent 30%),
        var(--background);
}

.hero-content {
    max-width: 720px;
}

.tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -3px;
    margin-bottom: 28px;
}

h1 span {
    color: var(--primary);
}

.hero-content > p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    padding: 13px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.primary {
    background: var(--primary);
    color: white;
}

.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
}

.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-card {
    display: flex;
    justify-content: center;
}

.terminal {
    width: 100%;
    max-width: 500px;
    background: #111827;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(16, 24, 40, 0.2);
    transform: rotate(2deg);
    transition: 0.4s;
}

.terminal:hover {
    transform: rotate(0deg) translateY(-5px);
}

.terminal-header {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    background: #1f2937;
}

.terminal-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
}

.terminal-body {
    padding: 30px;
    font-family: monospace;
    color: #d1d5db;
    font-size: 0.95rem;
}

.terminal-body p {
    margin-bottom: 8px;
}

.terminal-body p:nth-child(even) {
    margin-bottom: 20px;
    color: #9ca3af;
}

.green {
    color: var(--green);
}

.success {
    color: var(--green) !important;
}

.section {
    padding: 110px 7%;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 55px;
}

.section-title span {
    color: var(--primary);
    font-family: monospace;
    font-weight: bold;
}

.section-title h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -1.5px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 91, 255, 0.5);
    box-shadow: 0 15px 40px rgba(16, 24, 40, 0.07);
}

.icon {
    font-size: 2rem;
    margin-bottom: 25px;
}

.info-card h3 {
    margin-bottom: 8px;
}

.info-card p {
    color: var(--muted);
}

.dark-section {
    background: var(--dark);
    color: white;
}

.dark-section .section-title span {
    color: #a5b4fc;
}

.deployment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.deployment-text {
    color: #aeb7c8;
    font-size: 1.05rem;
}

.deployment-text p + p {
    margin-top: 20px;
}

.technologies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tech {
    padding: 25px;
    border: 1px solid #293548;
    border-radius: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    transition: 0.3s;
}

.tech:hover {
    background: #1d2939;
    border-color: #667085;
    transform: translateY(-3px);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.concept-card {
    padding: 30px 25px;
    border-top: 2px solid var(--border);
}

.concept-card .number {
    color: var(--primary);
    font-family: monospace;
    font-weight: bold;
}

.concept-card h3 {
    margin: 25px 0 12px;
}

.concept-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-section {
    margin: 0 7% 80px;
    padding: 60px;
    border-radius: 22px;
    background: linear-gradient(135deg, #635bff, #817aff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-section .tag {
    color: #dfe1ff;
}

.contact-section h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.7rem;
    margin-bottom: 5px;
}

.contact-section p {
    color: #e5e7ff;
}

.contact-section .teacher {
    margin-top: 8px;
}

.contact-status {
    background: rgba(255, 255, 255, 0.12);
    padding: 13px 18px;
    border-radius: 10px;
    white-space: nowrap;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    margin-right: 8px;
}

footer {
    padding: 30px 7%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* MODO OSCURO */

body.dark {
    --background: #0b1120;
    --surface: #111827;
    --text: #f8fafc;
    --muted: #98a2b3;
    --border: #243044;
}

body.dark .navbar {
    background: rgba(11, 17, 32, 0.88);
}

body.dark .secondary,
body.dark .theme-button {
    background: var(--surface);
    color: var(--text);
}

body.dark footer {
    border-color: var(--border);
}

/* RESPONSIVE */

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 70px;
    }

    .hero-card {
        justify-content: flex-start;
    }

    .info-grid,
    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deployment-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-section {
        flex-direction: column;
        align-items: flex-start;
    }

    footer {
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .navbar {
        padding: 0 5%;
    }

    .hero,
    .section {
        padding-left: 5%;
        padding-right: 5%;
    }

    h1 {
        font-size: 3.2rem;
        letter-spacing: -2px;
    }

    .info-grid,
    .concept-grid,
    .technologies {
        grid-template-columns: 1fr;
    }

    .contact-section {
        margin: 0 5% 50px;
        padding: 35px 25px;
    }

    .contact-section h2 {
        font-size: 2.2rem;
    }
}