/*
  Landing do WingMessage, separada da aplicação.

  Os tokens espelham o tema escuro de resources/css/app.css da aplicação.
  A landing é escura por desenho: não existe variante clara.
*/
:root {
    --background: hsl(240 9% 4%);
    --foreground: hsl(0 0% 98%);
    --muted-foreground: hsl(0 0% 64%);
    --border: hsl(240 5% 14%);

    --brand: hsl(21 90% 48%);
    --brand-hover: hsl(25 95% 53%);
    --brand-soft: hsl(27 96% 61%);
    --brand-line: hsl(21 90% 48% / 0.32);

    --radius: 0.75rem;
    --ease: cubic-bezier(0.32, 0.72, 0, 1);

    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid var(--border);
}

html {
    background-color: var(--background);
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    min-height: 100svh;
    overflow-x: hidden;
    background-color: var(--background);
    color: var(--foreground);
    font-family:
        Inter, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
        'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: hsl(21 90% 48% / 0.35);
    color: #fff;
}

img,
svg {
    display: block;
}

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

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

ol,
ul {
    list-style: none;
}

h1,
h2,
h3 {
    letter-spacing: -0.021em;
}

:focus-visible {
    outline: 2px solid hsl(25 95% 53% / 0.5);
    outline-offset: 2px;
}

/* Halos laranja fixos atrás do conteúdo. */
.glow {
    position: fixed;
    z-index: 0;
    border-radius: 9999px;
    pointer-events: none;
}

.glow-top {
    top: -10%;
    left: 50%;
    width: 700px;
    max-width: 90vw;
    height: 500px;
    transform: translateX(-50%);
    background-color: hsl(21 90% 48% / 0.2);
    filter: blur(120px);
}

.glow-bottom {
    right: -10%;
    bottom: -10%;
    width: 400px;
    height: 400px;
    background-color: hsl(25 95% 53% / 0.1);
    filter: blur(100px);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Ícones Lucide inline. */
.icon {
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 0.875rem;
    height: 0.875rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.accent {
    color: var(--brand-soft);
}

/* Botões */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    text-align: center;
    transition:
        color 150ms var(--ease),
        background-color 150ms var(--ease),
        border-color 150ms var(--ease);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--brand-hover);
}

.btn-ghost {
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    color: var(--foreground);
    border-color: rgb(255 255 255 / 0.15);
}

.btn-outline {
    border-color: rgb(255 255 255 / 0.15);
    color: var(--foreground);
    font-weight: 600;
}

.btn-outline:hover {
    border-color: rgb(255 255 255 / 0.3);
    background-color: rgb(255 255 255 / 0.05);
}

.btn-arrow svg {
    width: 1rem;
    height: 1rem;
    transition: transform 150ms var(--ease);
}

.btn-arrow:hover svg {
    transform: translateX(0.125rem);
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Navegação */
.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

.nav-logo {
    width: auto;
    height: 3rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero */
.hero {
    padding: 2.5rem 0;
}

.hero::after {
    content: '';
    display: table;
    clear: both;
}

.hero-mascot {
    position: relative;
    float: right;
    width: 40%;
    margin: 0 0 0.75rem 1.5rem;
}

.hero-mascot-glow {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: hsl(21 90% 48% / 0.2);
    filter: blur(40px);
}

.hero-mascot img {
    position: relative;
    width: 100%;
    filter: drop-shadow(0 15px 20px rgb(0 0 0 / 0.5));
}

.hero-mascot-shadow {
    display: none;
    width: 66.666%;
    height: 1.5rem;
    margin: 0 auto;
    border-radius: 9999px;
    background-color: rgb(0 0 0 / 0.5);
    filter: blur(20px);
}

.hero-title,
.hero-body {
    min-width: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    margin-bottom: 1.25rem;
    border: 1px solid var(--brand-line);
    border-radius: 9999px;
    padding: 0.375rem 1rem;
    background-color: hsl(21 90% 48% / 0.1);
    color: var(--brand-soft);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.text-gradient {
    display: block;
    background-image: linear-gradient(
        to right,
        var(--brand-soft),
        var(--brand)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-body {
    clear: both;
    padding-top: 1.5rem;
}

.hero-lead {
    max-width: 32rem;
    margin-top: 0.5rem;
    color: var(--muted-foreground);
    line-height: 1.625;
}

.fine-print {
    margin-top: 1rem;
    color: hsl(0 0% 64% / 0.7);
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Seções */
.section {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
}

h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2.narrow {
    max-width: 42rem;
}

.section-lead {
    max-width: 42rem;
    margin-top: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.safeguards {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.25rem;
    background-color: rgb(255 255 255 / 0.03);
    transition: border-color 150ms var(--ease);
}

.card:hover {
    border-color: var(--brand-line);
}

.card h3 {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
}

.card p,
.steps p {
    margin-top: 0.375rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.625;
}

.steps {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.steps li {
    border-top: 2px solid hsl(21 90% 48% / 0.4);
    padding-top: 1rem;
}

.step-number {
    color: var(--brand-soft);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
}

.steps h3 {
    margin-top: 0.25rem;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
}

/* Planos */
.plans {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}

.plan {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.5rem;
    background-color: rgb(255 255 255 / 0.03);
}

.plan-featured {
    border-color: hsl(21 90% 48% / 0.5);
    background-color: hsl(21 90% 48% / 0.07);
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-header h3 {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
}

.plan-tag {
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    background-color: hsl(21 90% 48% / 0.2);
    color: var(--brand-soft);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-description {
    margin-top: 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.plan-price {
    margin-top: 1.25rem;
}

.plan-amount {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.plan-period {
    color: hsl(0 0% 64% / 0.7);
    font-size: 0.875rem;
}

.plan-features {
    flex: 1;
    margin-top: 1.25rem;
    color: hsl(0 0% 98% / 0.85);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.plan-features li + li {
    margin-top: 0.5rem;
}

/* Check do Lucide como máscara, na cor de destaque. */
.plan-features li::before {
    content: '';
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    background-color: var(--brand-soft);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.plan-cta {
    margin-top: 1.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
}

/* Chamada final */
.cta {
    border: 1px solid var(--brand-line);
    border-radius: calc(var(--radius) + 10px);
    padding: 2rem;
    background-color: hsl(21 90% 48% / 0.07);
    text-align: center;
}

.cta p {
    max-width: 36rem;
    margin: 0.75rem auto 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.actions-center {
    justify-content: center;
    margin-top: 1.75rem;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    color: hsl(0 0% 64% / 0.7);
    font-size: 0.75rem;
    line-height: 1rem;
}

.footer a {
    transition: color 150ms var(--ease);
}

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

@media (min-width: 640px) {
    .nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-logo {
        height: 3.5rem;
    }

    .actions {
        flex-direction: row;
        align-items: center;
    }

    .hero {
        padding: 3.5rem 0;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 1.25;
    }

    .section {
        padding: 5rem 0;
    }

    h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .section-lead,
    .cta p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

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

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

    .cta {
        padding: 3rem;
    }

    .footer {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: 4rem;
        padding: 6rem 0;
    }

    .hero::after {
        content: none;
    }

    .hero-mascot {
        grid-column-start: 2;
        grid-row: span 2 / span 2;
        float: none;
        width: 100%;
        max-width: 32rem;
        margin: 0 auto;
    }

    .hero-mascot-glow {
        filter: blur(90px);
    }

    .hero-mascot img {
        filter: drop-shadow(0 25px 35px rgb(0 0 0 / 0.5));
    }

    .hero-mascot-shadow {
        display: block;
    }

    .hero-title {
        grid-column-start: 1;
        grid-row-start: 1;
    }

    .hero-body {
        grid-column-start: 1;
        grid-row-start: 2;
        clear: none;
        padding-top: 0;
    }

    .hero-lead {
        margin-top: 1.5rem;
    }

    h1 {
        font-size: 3.75rem;
        line-height: 1.1;
    }

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

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
