/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    /* Smooth transition ao trocar tema */
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Tokens: Tema Escuro (padrão) ──────────────────────────────────────── */
:root,
[data-theme="dark"] {
    --yellow:         #FDCD01;
    --yellow-muted:   rgba(253, 205, 1, 0.08);
    --yellow-border:  rgba(253, 205, 1, 0.25);
    --red:            #FF3131;

    --bg:             #0D0D0D;
    --bg-glow:        rgba(253, 205, 1, 0.06);
    --surface:        #161616;
    --surface-hover:  #1e1e1e;
    --border:         #2A2A2A;

    --text:           #FFFFFF;
    --text-sub:       #cccccc;
    --muted:          #777777;

    --stamp-bg:       rgba(46, 213, 115, 0.08);
    --stamp-border:   rgba(46, 213, 115, 0.2);
    --stamp-color:    #34d86b;

    --toggle-track:   #2A2A2A;
    --toggle-thumb:   #FDCD01;
}

/* ── Tokens: Tema Claro ────────────────────────────────────────────────── */
[data-theme="light"] {
    --yellow:         #C09500;
    --yellow-muted:   rgba(192, 149, 0, 0.07);
    --yellow-border:  rgba(192, 149, 0, 0.25);
    --red:            #D92B2B;

    --bg:             #F5F5F5;
    --bg-glow:        rgba(192, 149, 0, 0.05);
    --surface:        #FFFFFF;
    --surface-hover:  #F0F0F0;
    --border:         #E0E0E0;

    --text:           #111111;
    --text-sub:       #333333;
    --muted:          #888888;

    --stamp-bg:       rgba(21, 180, 90, 0.08);
    --stamp-border:   rgba(21, 180, 90, 0.2);
    --stamp-color:    #15B45A;

    --toggle-track:   #D4D4D4;
    --toggle-thumb:   #C09500;
}

/* ── Max-width canvas (mobile-first) ───────────────────────────────────── */
body {
    background-color: var(--bg);
    color: var(--text);
    background-image: radial-gradient(
        ellipse 90% 35% at 50% 0%,
        var(--bg-glow),
        transparent 70%
    );
}

.topbar, .hero, .event-section,
.notices-section, .signature-section, .footer {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── TOP BAR ───────────────────────────────────────────────────────────── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    padding-bottom: 28px;
}

.topbar-logo {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.logo-smel  { color: var(--yellow); }
.logo-sep   { color: var(--border); margin: 0 6px; }
.logo-abras { color: var(--red); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── Theme Toggle ──────────────────────────────────────────────────────── */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: var(--surface);
}

.theme-toggle-track {
    width: 36px;
    height: 20px;
    background: var(--toggle-track);
    border-radius: 100px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: background 0.3s;
}

.theme-toggle-thumb {
    width: 16px;
    height: 16px;
    background: var(--toggle-thumb);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(16px);
}

.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.theme-toggle-icon svg {
    width: 16px;
    height: 16px;
    transition: opacity 0.2s, transform 0.3s;
}

/* Mostra lua no tema escuro, sol no tema claro */
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
    padding-top: 48px;
    padding-bottom: 52px;
}

.hero-stamp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--stamp-bg);
    border: 1px solid var(--stamp-border);
    color: var(--stamp-color);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero-stamp svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hero-name {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -2px;
    color: var(--yellow);
    margin-bottom: 20px;
    word-break: break-word;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-sub);
}

.hero-subtitle strong {
    font-weight: 800;
    color: var(--text);
}

.hero-divider {
    margin-top: 40px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--border) 30%,
        var(--border) 70%,
        transparent
    );
}

/* ── SECTION LABEL ─────────────────────────────────────────────────────── */
.event-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 20px;
}

/* ── EVENT SECTION ─────────────────────────────────────────────────────── */
.event-section {
    padding-top: 44px;
    padding-bottom: 44px;
}

.event-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: border-color 0.2s, background 0.3s, transform 0.15s;
}

.event-card:active {
    transform: scale(0.985);
}

.event-card--highlight {
    border-color: var(--yellow-border);
    background: var(--yellow-muted);
}

.event-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow-muted);
    border-radius: 12px;
    color: var(--yellow);
    transition: background 0.3s;
}

.event-card-icon svg {
    width: 20px;
    height: 20px;
}

.event-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.event-card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.event-card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card--highlight .event-card-value {
    white-space: normal;
    font-size: 16px;
    line-height: 1.3;
}

.event-card-sub {
    font-size: 13px;
    color: var(--muted);
}

/* ── NOTICES ───────────────────────────────────────────────────────────── */
.notices-section {
    padding-top: 44px;
    padding-bottom: 44px;
    border-top: 1px solid var(--border);
}

.notices-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
}

.notice-divider {
    height: 1px;
    background: var(--border);
    margin: 0 24px;
}

.notice-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    padding-top: 2px;
}

.notice-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.notice-text p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

.notice-text em {
    font-style: normal;
    font-weight: 600;
    color: var(--text);
}

/* ── SIGNATURE ─────────────────────────────────────────────────────────── */
.signature-section {
    padding-top: 52px;
    padding-bottom: 52px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.signature-msg {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 36px;
    letter-spacing: -0.5px;
}

.signature-block {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.signature-mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--yellow);
    color: #000;
    font-size: 17px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.signature-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 3px;
}

.signature-info strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.signature-info span {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    max-width: 220px;
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.footer {
    padding-top: 24px;
    padding-bottom: 36px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: var(--muted);
}

/* ── Reveal Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-stamp    { animation: fadeUp 0.5s ease both 0.05s; }
.hero-name     { animation: fadeUp 0.5s ease both 0.12s; }
.hero-subtitle { animation: fadeUp 0.5s ease both 0.19s; }
.hero-divider  { animation: fadeUp 0.5s ease both 0.24s; }
.event-section .event-label   { animation: fadeUp 0.5s ease both 0.28s; }
.event-card:nth-child(1)      { animation: fadeUp 0.5s ease both 0.32s; }
.event-card:nth-child(2)      { animation: fadeUp 0.5s ease both 0.38s; }
.event-card:nth-child(3)      { animation: fadeUp 0.5s ease both 0.44s; }
.notices-section              { animation: fadeUp 0.5s ease both 0.50s; }
.signature-section            { animation: fadeUp 0.5s ease both 0.56s; }
