/* =========================================================================
   Dozzei — pre-launch landing
   Theme: Fundo do Mar (dark only — see ADR-003)
   Tokens are mirrored from CLAUDE.md §6 verbatim.
   ========================================================================= */

:root {
    --bg-canvas: #080E0B;
    --bg-surface: #0F1E17;
    --bg-elevated: #172E26;
    --border: #1C3328;
    --brand-anchor: #1A5443;
    --text-muted: #355C47;
    --text-secondary: #6FAA90;
    --text-primary: #E4F5EC;
    --accent: #00D988;

    /* External brand: NatoDigital — used only on the footer credit link */
    --nato-blue: #3473B8;
    --nato-orange: #F05922;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --max-width: 720px;
}

/* Reset --------------------------------------------------------------- */

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

html,
body {
    height: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

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

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

main {
    flex: 1 0 auto;
}

/* A11y --------------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Particles canvas --------------------------------------------------- */

.particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Topbar ------------------------------------------------------------- */

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    height: 44px;
    width: 44px;
    display: block;
    object-fit: contain;
}

.lang-switch {
    display: flex;
    gap: 4px;
}

.lang-switch__item {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color 200ms ease;
}

.lang-switch__item:hover {
    color: var(--text-secondary);
}

.lang-switch__item.is-active {
    color: var(--text-primary);
}

/* Hero --------------------------------------------------------------- */

.hero {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 96px 32px 80px;
    text-align: center;
}

.hero__capsule {
    width: clamp(140px, 26vw, 220px);
    margin: 0 auto 48px;
    animation: pulse 3.2s ease-in-out infinite;
    will-change: transform;
}

.hero__capsule img,
.hero__capsule svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero__title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.hero__title-line-1,
.hero__title-line-2 {
    display: block;
}

.hero__title-line-2 {
    color: var(--accent);
}

/* Word reveal hooks (motion.js wraps each word in <span class="word">). */
.hero__title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

.hero__sub {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

/* Form --------------------------------------------------------------- */

.hero__form {
    margin: 36px auto 0;
    max-width: 480px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

.hero__form-row {
    display: flex;
    gap: 8px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
    transition: border-color 200ms ease;
}

.hero__form-row:focus-within {
    border-color: var(--accent);
}

.hero__form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 14px 16px;
    font: inherit;
    font-weight: 400;
    border-radius: var(--radius-sm);
    outline: none;
    min-width: 0;
}

.hero__form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.hero__form button {
    background: var(--accent);
    color: var(--bg-canvas);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    transition: transform 200ms ease;
    white-space: nowrap;
}

.hero__form button:hover {
    transform: scale(1.02);
}

.hero__form button:active {
    transform: scale(0.99);
}

.hero__form-message {
    margin-top: 16px;
    font-size: 14px;
}

.hero__form-message--ok {
    color: var(--accent);
}

.hero__form-message--err {
    color: var(--text-secondary);
}

.hero__form--err .hero__form-row {
    border-color: var(--text-secondary);
}

.noscript-note {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 16px;
}

/* Method ------------------------------------------------------------- */

.method {
    background: var(--bg-surface);
    border-top: 0.5px solid var(--border);
    padding: 80px 32px;
    position: relative;
    z-index: 1;
}

.method__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.caption {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.method__title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-top: 12px;
    color: var(--text-primary);
}

.method__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.method__card {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

.method__card-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.method__card-verb {
    margin-top: 12px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

/* Footer ------------------------------------------------------------- */

.footer {
    background: var(--bg-canvas);
    border-top: 0.5px solid var(--border);
    padding: 28px 32px;
    position: relative;
    z-index: 1;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-secondary);
    margin-top: 8px;
    transition: color 200ms ease, background 200ms ease;
}

.footer__social:hover {
    color: var(--accent);
    background: var(--bg-elevated);
}

.footer__social-icon {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.footer__legal {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.natodigital {
    font-weight: 500;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.natodigital:hover {
    opacity: 0.85;
}

.natodigital__nato {
    color: var(--nato-blue);
}

.natodigital__digital {
    color: var(--nato-orange);
}

/* Animations --------------------------------------------------------- */

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 16px rgba(228, 245, 236, 0.04));
    }

    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 28px rgba(228, 245, 236, 0.10));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__capsule,
    .hero__title .word,
    .hero__sub,
    .hero__form,
    .method__card {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive --------------------------------------------------------- */

/* Tablet: shrink section padding, keep horizontal lang switch */
@media (max-width: 900px) {
    .hero {
        padding: 80px 28px 64px;
    }

    .method {
        padding: 72px 28px;
    }

    .footer {
        padding: 26px 28px;
    }

    .topbar {
        padding: 22px 28px;
    }
}

/* Small tablets / large phones — stack form vertical, tighter hero */
@media (max-width: 640px) {
    .hero {
        padding: 56px 20px 48px;
    }

    .hero__capsule {
        margin-bottom: 36px;
    }

    .hero__title {
        font-size: clamp(32px, 9vw, 44px);
    }

    .hero__sub {
        font-size: 15px;
        margin-top: 16px;
    }

    .hero__form {
        margin-top: 28px;
    }

    .hero__form-row {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }

    .hero__form button {
        width: 100%;
        padding: 14px 20px;
    }

    .topbar {
        padding: 18px 20px;
    }

    .logo img {
        height: 38px;
        width: 38px;
    }

    .method {
        padding: 56px 20px;
    }

    .method__title {
        font-size: clamp(24px, 6vw, 30px);
    }

    .method__grid {
        gap: 12px;
        margin-top: 36px;
    }

    .method__card {
        padding: 22px 16px;
    }

    .method__card-verb {
        font-size: 16px;
    }

    .footer {
        padding: 22px 20px;
    }
}

/* Very narrow phones (<360px) — keep 2x2 cards readable */
@media (max-width: 360px) {
    .hero {
        padding: 48px 16px 40px;
    }

    .topbar {
        padding: 16px;
    }

    .method {
        padding: 48px 16px;
    }

    .method__card {
        padding: 18px 12px;
    }

    .method__card-verb {
        font-size: 15px;
    }

    .footer {
        padding: 20px 16px;
    }
}
