/* SmartBET — Identidade visual Visualforma
   Cores oficiais: #000561 (azul escuro), #2c06ff (azul vivo), #ffffff (branco)
   Tipografia: Outfit (variable font, pesos 100–900)
*/

@font-face {
    font-family: "Outfit";
    src: url("Assets/Fonts/Outfit/Outfit-VariableFont_wght.ttf") format("truetype-variations"),
         url("Assets/Fonts/Outfit/Outfit-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #000561;
    --color-accent: #2c06ff;
    --color-white: #ffffff;
    --color-text: #1a1a2e;
    --color-muted: #5a6079;
    --color-bg-light: #f5f6fb;
    --color-bg-dark: #000561;
    --color-border: #e4e6f0;

    --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;

    --container-max: 1180px;
    --space-section: clamp(4rem, 8vw, 7rem);
    --radius: 6px;
    --shadow-soft: 0 12px 32px rgba(0, 5, 97, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tipografia */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1rem;
    text-align: justify;
    hyphens: auto;
}

.eyebrow,
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 44px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.25s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */

.hero {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 85% 15%, rgba(44, 6, 255, 0.18), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(44, 6, 255, 0.12), transparent 50%),
        linear-gradient(135deg, #000561 0%, #050a8a 100%);
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
}

.hero .eyebrow {
    color: #a8b0ff;
}

.hero h1 {
    color: var(--color-white);
}

.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.95rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-white);
    color: var(--color-white);
}

/* Secções */

.section {
    padding: var(--space-section) 0;
}

.section-light {
    background: var(--color-white);
}

.section-light + .section-light {
    background: var(--color-bg-light);
}

.section-dark {
    background: var(--color-primary);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-dark .section-eyebrow {
    color: #a8b0ff;
}

.section-title {
    max-width: 780px;
}

.section-body {
    max-width: 820px;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.section-dark .section-body {
    color: rgba(255, 255, 255, 0.82);
}

/* Imagem ilustrativa — secção Sobre */

.sobre-visual {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 0;
}

.sobre-img {
    width: 100%;
    max-width: 680px;
}

/* Meta grid (ficha de financiamento) */

.meta-grid {
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.meta-grid li {
    background: var(--color-white);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    min-width: 0;
}

.meta-grid li:nth-child(3n) {
    border-right: 0;
}

.meta-grid li:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.meta-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-muted);
    font-weight: 500;
    line-height: 1.4;
}

.meta-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.25;
    word-break: break-word;
}

@media (max-width: 860px) {
    .meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .meta-grid li {
        border-right: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }

    .meta-grid li:nth-child(3n) {
        border-right: 1px solid var(--color-border);
    }

    .meta-grid li:nth-child(2n) {
        border-right: 0;
    }

    .meta-grid li:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--color-border);
    }

    .meta-grid li:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 520px) {
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .meta-grid li,
    .meta-grid li:nth-child(2n),
    .meta-grid li:nth-child(3n) {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .meta-grid li:last-child {
        border-bottom: 0;
    }
}

/* Cards de objetivos */

.cards {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    position: relative;
    transition: transform 0.25s ease, background 0.25s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-3px);
}

.card-index {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #a8b0ff;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    font-size: 0.95rem;
}

/* Tecnologias */

.tech-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tech {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.tech h3 {
    margin-bottom: 0.75rem;
}

.tech p {
    color: var(--color-muted);
    font-size: 0.98rem;
    margin: 0;
}

/* Promotores */

.section-promotores {
    background: var(--color-bg-light);
}

.promoters {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.promoter-logo {
    max-height: 90px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.promoter-logo:hover {
    transform: translateY(-2px);
}

/* Contactos */

.section-cta {
    background: linear-gradient(135deg, #000561 0%, #1a1f8a 100%);
    color: var(--color-white);
}

.section-cta h2 {
    color: var(--color-white);
}

.section-cta .section-eyebrow {
    color: #a8b0ff;
}

.section-cta p {
    color: rgba(255, 255, 255, 0.88);
}

.contactos-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contactos-info p {
    text-align: left;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-label {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: #a8b0ff;
}

.contactos-info a {
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
}

.contactos-info a:hover {
    border-color: var(--color-white);
}

/* Footer */

.site-footer {
    background: #050a2e;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.footer-top {
    padding: 3.5rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.footer-brands {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 84px;
    width: auto;
}

.footer-logo-smartbet {
    height: 72px;
}

.footer-tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    max-width: 540px;
}

.footer-funding {
    background: var(--color-white);
    padding: 1.75rem 0;
}

.funding-bar {
    margin: 0 auto;
    max-height: 80px;
    width: auto;
    max-width: 100%;
}

.footer-bottom {
    background: #02061f;
    padding: 1.25rem 0;
    font-size: 0.85rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.footer-code {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

/* Animações de entrada */

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

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

/* Responsivo */

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-list.is-open {
        max-height: 400px;
        padding: 1rem 1.5rem 1.5rem;
    }

    .nav-list a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list a::after {
        display: none;
    }

    .contactos-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .brand-logo {
        height: 36px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .btn {
        width: 100%;
    }

    p {
        text-align: left;
    }
}
