/* ── Landing: IA na Prática — POC Pré-Evento ── */
/* Segue o design system do site Aleon (design-system.css + theme-aleon.css) */

/* ── TOKENS LOCAIS ── */
:root {
    --aws-orange: #FF9900;

    /* herda do design-system.css via importação no HTML,
       mas definimos fallbacks para uso standalone */
    --bg-primary: #090d16;
    --bg-secondary: #0f1524;
    --bg-surface: rgba(15, 21, 36, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(168, 85, 247, 0.3);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #a855f7;
    --primary-rgb: 168, 85, 247;
    --primary-hover: #9333ea;
    
    --secondary: #3b82f6;
    --secondary-rgb: 59, 130, 246;
    --secondary-hover: #2563eb;
    
    --green: #10b981;
    --green-rgb: 16, 185, 129;
    --red: #ef4444;
    --red-rgb: 239, 68, 68;
    
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    --gradient-text: linear-gradient(135deg, #c084fc 0%, #60a5fa 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-title: 'Outfit', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --container-max-width: 1100px;
}

/* ── RESET BASE ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-menu{
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ── AJUSTE HERO PARA HEADER FIXO ── */
.hero {
    min-height: 100vh;
    background: var(--bg-primary);
    display: grid;
    grid-template-rows: 1fr auto;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    pointer-events: none;
    z-index: 0;
}

/* badge AWS dentro do nav-link */
.aws-badge {
    background: var(--aws-orange);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    font-family: var(--font-title);
    vertical-align: middle;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    z-index: 120;
}

/* Slightly smaller on very small screens to avoid layout break */
@media (max-width: 480px) {
    .aws-badge { font-size: 14px; padding: 3px 8px; }
}

/* Allow header children to overflow when needed (avoid clipping larger badges) */
.header { overflow: visible; }

/* Ensure nav sits above hero/bg elements */
.nav-menu { z-index: 130; }


/* ── HERO CONTENT ── */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0 40px;
    max-width: 820px;
    position: relative;
    z-index: 10;
    animation: lp-fadeUp 0.9s 0.2s ease both;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 28px;
    font-family: var(--font-title);
}

.hero-tag::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--primary);
    opacity: 0.7;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: normal;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 560px;
    line-height: 1.7;
}

.hero-sub strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── HERO BAR ── */
.hero-bar {
    width: 100%;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    animation: lp-fadeUp 0.9s 0.4s ease both;
}

.hero-bar-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.hero-bar-sep {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

.hero-cta {
    margin-left: auto;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition-normal);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(var(--primary-rgb), 0.5);
}

/* ── SEÇÃO GENÉRICA ── */
.section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

h2 {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    font-weight: 400;
    margin-bottom: 60px;
    line-height: 1.7;
}

/* ── STEPS ── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.step {
    background: rgba(168, 85, 247, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--border-radius-md);
    padding: 32px 26px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.step:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-hover);
    border-color: var(--border-color-glow);
    box-shadow: var(--primary-hover)
}

.step-num {
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.step h3 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.65;
}

/* ── SEÇÃO FORMULÁRIO ── */
.form-section {
    background: var(--bg-secondary);
    padding: 100px 60px;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(var(--primary-rgb), 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.form-left h2 {
    color: var(--text-primary);
    margin-bottom: 14px;
}

.form-left .section-intro {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* caixa de benefício AWS */
.benefit-box {
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius-md);
    padding: 24px 28px;
    background: rgba(16, 185, 129, 0.02);
    backdrop-filter: blur(8px);
}

.benefit-box .b-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    font-family: var(--font-title);
    margin-bottom: 8px;
}

.benefit-box .b-value {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.benefit-box .b-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ── FORMULÁRIO ── */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-title);
}

input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    padding: 13px 16px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    outline: none;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background: #0f1524;
    color: var(--text-primary);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.04);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

/* radio */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap; /* avoid breaking the radios into multiple lines on wider viewports */
}

@media (max-width: 600px) {
    .radio-group { flex-wrap: wrap; gap: 10px; }
}

/* Small field variant for compact inputs placed beside other controls */
.field--small {
    max-width: 200px;
}

.field--small input {
    padding: 8px 10px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .field--small { max-width: 100%; }
}

/* Place compact fields to the right/top of the grid cell */
.field--small { justify-self: end; align-self: start; }

@media (max-width: 600px) {
    .field--small { justify-self: stretch; }
}

/* Align radio field vertically to center to match previous layout */
.field--radio { align-self: center; }

.radio-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-opt input[type="radio"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    padding: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-opt span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Prevent label text from breaking into multiple lines on wider viewports */
.radio-opt span { white-space: nowrap; }

@media (max-width: 600px) {
    .radio-opt span { white-space: normal; }
}

/* botão submit */
.submit-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 16px 28px;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(var(--primary-rgb), 0.45);
}

.form-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
    margin-top: 4px;
}

/* mensagem de sucesso */
.success-msg {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 36px;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--border-radius-md);
}

.success-msg .s-icon {
    font-size: 2rem;
    color: var(--primary);
}

.success-msg h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.success-msg p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}




/* ── RESPONSIVO ── */
@media (max-width: 900px) {
    .hero-content,
    .hero-bar,
    .section,
    .form-section,
    footer {
        padding-left: 28px;
        padding-right: 28px;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-bar {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-cta {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }


}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .marquee-section {
        padding: 32px 0;
    }

    .marquee-track {
        gap: 44px;
        /* prefer JS-driven duration for consistent speed */
        --marquee-duration: 28s;
    }

    .marquee-logo {
        width: 122px;
        height: 30px;
    }
}

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