/* ═══════════════════════════════════════════
   SCANDURA — Incubadora de Projetos de IA
   ═══════════════════════════════════════════ */

:root {
    --bg: #0a0a0b;
    --bg-elevated: #111113;
    --bg-card: #141416;
    --surface: #1a1a1e;
    --border: #222228;
    --border-subtle: #1a1a1f;
    --text: #e8e8ec;
    --text-secondary: #8a8a96;
    --text-dim: #555560;
    --accent: #00d4aa;
    --accent-dim: #00a888;
    --accent-glow: rgba(0, 212, 170, 0.15);
    --accent-glow-strong: rgba(0, 212, 170, 0.25);
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::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: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* ── Noise & Grid Background ── */

.noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 70%);
}

/* ── Navigation ── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 clamp(24px, 4vw, 64px);
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

.nav-cta {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.3s ease, color 0.3s ease !important;
}

.nav-cta:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* ── Hero ── */

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px clamp(24px, 4vw, 64px) 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 100px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 24px;
}

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


.hero-sub {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

/* ── Hero SVG Visual ── */

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg {
    width: 100%;
    max-width: 420px;
}

.svg-rect {
    animation: rotate-slow 20s linear infinite;
    transform-origin: 250px 250px;
}

.svg-rect.r1 { animation-duration: 30s; }
.svg-rect.r2 { animation-duration: 22s; animation-direction: reverse; }
.svg-rect.r3 { animation-duration: 16s; }

.svg-core {
    animation: core-pulse 3s ease-in-out infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes core-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

.svg-dot {
    animation: dot-blink 2.5s ease-in-out infinite;
}
.svg-dot.d2 { animation-delay: 0.5s; }
.svg-dot.d3 { animation-delay: 1s; }
.svg-dot.d4 { animation-delay: 1.5s; }

@keyframes dot-blink {
    0%, 100% { opacity: 1; r: 3; }
    50% { opacity: 0.3; r: 2; }
}

.pulse-ring {
    animation: pulse-expand 3s ease-out infinite;
    transform-origin: 250px 250px;
}
.pulse-ring.delay {
    animation-delay: 1.5s;
}

@keyframes pulse-expand {
    0% { r: 30; opacity: 0.5; }
    100% { r: 100; opacity: 0; }
}

/* ── Section Shared ── */

.section-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

section h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

/* ── Projects ── */

.projects {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px clamp(24px, 4vw, 64px);
}

.section-header {
    margin-bottom: 64px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

a.project-card {
    text-decoration: none;
    color: inherit;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
}

.project-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 8px;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}


a.project-card .card-status {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.35);
    border-radius: 100px;
    padding: 5px 12px;
}

a.project-card .status-dot {
    box-shadow: 0 0 6px var(--accent);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.card-tags li {
    padding: 4px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-label {
    color: var(--text-dim);
}

.card-value {
    color: var(--text-secondary);
}

/* ── About ── */

.about {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px clamp(24px, 4vw, 64px);
}

.about-content {
}

.about-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
    margin-top: 24px;
    margin-bottom: 48px;
}

.about-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── Contact ── */

.contact {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px clamp(24px, 4vw, 64px);
}

.contact-content {
}

.contact p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 20px;
    margin-bottom: 40px;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--accent);
}

/* ── Footer ── */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 0 clamp(24px, 4vw, 64px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dim);
}

.footer-copy {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.03em;
}

/* ── Scroll Animations ── */

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate="fade-in"] {
    transform: none;
    transition: opacity 1.2s var(--ease-out);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }

/* ── Responsive ── */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-visual {
        order: -1;
        max-width: 280px;
        margin: 0 auto;
    }

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

    .projects,
    .about,
    .contact {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .about-content p {
        margin-bottom: 24px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .projects,
    .about,
    .contact {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .about-stats {
        gap: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .project-card {
        padding: 28px;
    }

    .footer-inner {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 8px;
    }
}
