/* =========================================
   Salsa Marketing — Dark/Light Theme
   Inspired by Linear's restraint + warm Salsa palette
   ========================================= */

:root {
    --bg:          #0a0908;
    --bg-surface:  #110f0c;
    --bg-elevated: #1a1612;
    --bg-hover:    #231e19;
    --border:      rgba(255,255,255,0.06);
    --border-hover:rgba(255,255,255,0.12);
    --text-1:      #f2ece4;
    --text-2:      #a8a29e;
    --text-3:      #6b6560;
    --accent:      #e8461e;
    --accent-soft: rgba(232,70,30,0.12);
    --accent-glow: rgba(232,70,30,0.25);
    --green:       #4ade80;
    --blue:        #60a5fa;
    --purple:      #a78bfa;
    --cyan:        #22d3ee;
    --red:         #f87171;
    --orange:      #fb923c;
    --font:        'Inter', -apple-system, system-ui, sans-serif;
    --mono:        'JetBrains Mono', ui-monospace, monospace;
    --ease:        cubic-bezier(0.23, 1, 0.32, 1);
    --nav-bg:      rgba(10,9,8,0.85);
}

/* ─── Light mode ─── */
html.light {
    --bg:          #faf9f7;
    --bg-surface:  #f2f0ed;
    --bg-elevated: #ffffff;
    --bg-hover:    #ebe8e4;
    --border:      rgba(0,0,0,0.08);
    --border-hover:rgba(0,0,0,0.15);
    --text-1:      #1a1714;
    --text-2:      #5c564f;
    --text-3:      #8d8478;
    --accent:      #d13d15;
    --accent-soft: rgba(209,61,21,0.08);
    --accent-glow: rgba(209,61,21,0.15);
    --green:       #16a34a;
    --blue:        #2563eb;
    --purple:      #7c3aed;
    --cyan:        #0891b2;
    --red:         #dc2626;
    --orange:      #ea580c;
    --nav-bg:      rgba(250,249,247,0.9);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg);
    color: var(--text-1);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Navigation ─── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-text {
    background: linear-gradient(120deg, var(--orange) 0%, #d6a436 28%, var(--cyan) 58%, var(--blue) 78%, var(--orange) 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: salsaWordUndulate 8s ease-in-out infinite;
}

@keyframes salsaWordUndulate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-pepper {
    font-size: 1.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-1); }

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-1);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--border-hover);
    border-radius: 6px;
    transition: all 0.15s;
}
.nav-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── Hero ─── */
.hero {
    padding: 200px 40px 130px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated glow orbs */
.hero-glow {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-60%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
    animation: heroGlowDrift 10s ease-in-out infinite;
}
.hero-glow.secondary {
    top: -100px;
    transform: translateX(-30%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 65%);
    filter: blur(100px);
    animation: heroGlowDrift2 12s ease-in-out infinite;
}

@keyframes heroGlowDrift {
    0%, 100% { transform: translateX(-60%) translateY(0); }
    50%      { transform: translateX(-40%) translateY(-30px); }
}
@keyframes heroGlowDrift2 {
    0%, 100% { transform: translateX(-30%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(20px); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 36px;
    opacity: 0;
    animation: heroFadeUp 0.6s var(--ease) 0.1s forwards;
}

.hero h1 {
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}

/* Staggered line reveal */
.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.7s var(--ease) forwards;
}
.hero-line-1 {
    animation-delay: 0.25s;
    color: var(--text-1);
}
.hero-line-2 {
    animation-delay: 0.55s;
}

/* Animated gradient on "out." */
.hero-gradient {
    background: linear-gradient(120deg, var(--orange) 0%, #d6a436 28%, var(--cyan) 58%, var(--blue) 78%, var(--orange) 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: salsaWordUndulate 8s ease-in-out infinite;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.text-accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-2);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    animation: heroFadeUp 0.6s var(--ease) 0.85s forwards;
}

/* CTA pulse ring */
.hero-cta-pulse {
    position: relative;
}
.hero-cta-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 10px;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: heroPulseRing 3s ease-out 1.8s infinite;
}
@keyframes heroPulseRing {
    0%   { opacity: 0.6; transform: scale(1); }
    70%  { opacity: 0; transform: scale(1.12); }
    100% { opacity: 0; transform: scale(1.12); }
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 0.6s var(--ease) 1.05s forwards;
}

.hero-proof {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
    opacity: 0;
    animation: heroFadeUp 0.6s var(--ease) 1.3s forwards;
}

.proof-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-2);
}

.proof-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.proof-dot.green  { background: var(--green); }
.proof-dot.blue   { background: var(--blue); }
.proof-dot.orange { background: var(--orange); }
.proof-dot.purple { background: var(--purple); }

/* ─── Hero illustration ─── */
.hero-illustration {
    margin-top: 56px;
    opacity: 0;
    animation: heroFadeUp 0.7s var(--ease) 1.5s forwards;
}

.hero-illustration img {
    width: 100%;
    max-width: 680px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 8px 32px rgba(232,70,30,0.15));
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--accent);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-2);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-hover);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-ghost:hover {
    border-color: var(--text-2);
    color: var(--text-1);
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-3);
    font-family: var(--font);
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.btn-link:hover { color: var(--text-2); }

/* ─── Section patterns ─── */
.overline {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--text-2);
    max-width: 560px;
    line-height: 1.6;
}

/* ─── Problem ─── */
.problem-section {
    padding: 120px 40px;
    text-align: center;
}

.problem-section .container {
    max-width: 720px;
}

.problem-body {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-top: 20px;
}

/* ─── Comparison table ─── */
.compare-section {
    padding: 120px 40px;
    text-align: center;
}

.compare-section .section-sub {
    margin: 0 auto 48px;
}

.compare-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 40px;
}

.compare-grid table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.compare-grid th {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.compare-grid th.col-salsa {
    color: var(--accent);
}

.compare-grid td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    white-space: nowrap;
}

.compare-grid td.col-salsa {
    color: var(--text-1);
    font-weight: 500;
    background: var(--accent-soft);
}

.compare-grid td.row-label {
    color: var(--text-1);
    font-weight: 600;
    font-size: 0.8125rem;
}

.compare-grid tr:hover td {
    background: var(--bg-hover);
}
.compare-grid tr:hover td.col-salsa {
    background: rgba(232,70,30,0.18);
}

/* ─── Lifecycle ─── */
.how-section {
    padding: 120px 40px;
    text-align: center;
}

.how-section .section-sub {
    margin: 0 auto 56px;
}

.lifecycle {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.lc-step {
    flex: 0 0 160px;
    padding: 24px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    transition: all 0.2s;
    text-align: center;
}
.lc-step:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}
.lc-step.active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.lc-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-2);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.lc-step.active .lc-num {
    background: var(--accent);
    color: #fff;
}

.lc-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-1);
}

.lc-desc {
    font-size: 0.75rem;
    color: var(--text-3);
    line-height: 1.5;
}

.lc-connector {
    width: 32px;
    height: 1px;
    background: var(--border-hover);
    align-self: center;
    margin-top: -20px;
}

/* ─── Features grid ─── */
.features-section {
    padding: 120px 40px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
    text-align: left;
}

.feature-card {
    padding: 32px 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}
.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.fc-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 20px;
}
.fc-icon.orange { background: var(--orange); }
.fc-icon.blue   { background: var(--blue); }
.fc-icon.green  { background: var(--green); }
.fc-icon.purple { background: var(--purple); }
.fc-icon.cyan   { background: var(--cyan); }
.fc-icon.red    { background: var(--red); }

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* ─── Screenshots ─── */
.screenshots-section {
    padding: 120px 40px;
    text-align: center;
}

.screenshots-section .section-sub {
    margin: 0 auto 48px;
}

.screenshot-grid {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.screenshot-main {
    flex: 2;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
    transition: transform 0.4s var(--ease);
}
.screenshot-main:hover {
    transform: scale(1.01);
}
.screenshot-main img {
    width: 100%;
    display: block;
}

.screenshot-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.screenshot-sm {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.3s var(--ease);
}
.screenshot-sm:hover {
    border-color: var(--border-hover);
    transform: translateX(-4px);
}
.screenshot-sm img {
    width: 100%;
    display: block;
}

/* ─── CTA section ─── */
.cta-section {
    padding: 140px 40px;
    text-align: center;
    background: linear-gradient(to bottom, transparent, var(--accent-soft));
    border-top: 1px solid var(--border);
}

.cta-section .section-sub {
    margin: 0 auto 40px;
}

.cta-form {
    max-width: 520px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 10px;
}

.cta-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-1);
    font-family: var(--font);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.15s;
}
.cta-form input:focus {
    border-color: var(--accent);
}
.cta-form input::placeholder {
    color: var(--text-3);
}

.code-input {
    font-family: var(--mono) !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-msg {
    margin-top: 12px;
    font-size: 0.8125rem;
    min-height: 20px;
}
.form-msg.error { color: var(--red); }
.form-msg.success { color: var(--green); }

.verify-prompt {
    font-size: 0.9375rem;
    color: var(--text-2);
    margin-bottom: 16px;
}

.cta-status {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.cta-status h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-status p {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-icon.pending {
    background: rgba(251,191,36,0.15);
    border: 2px solid rgba(251,191,36,0.4);
}
.status-icon.pending::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fbbf24;
}
.status-icon.success {
    background: rgba(74,222,128,0.15);
    border: 2px solid rgba(74,222,128,0.4);
}
.status-icon.success::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
}

.download-btn {
    margin-top: 24px;
    padding: 14px 36px;
    font-size: 1rem;
}

.download-meta {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-3);
}

.cta-already {
    margin-top: 40px;
    font-size: 0.8125rem;
    color: var(--text-3);
}
.cta-already a {
    color: var(--text-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
.cta-already a:hover { color: var(--accent); }

/* ─── Footer ─── */
footer {
    padding: 40px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-2);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 2px;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-3);
}

.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-2); }

/* ─── Theme toggle ─── */
.theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-hover);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    transition: all 0.15s;
    padding: 0;
    margin-right: 8px;
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.theme-toggle svg {
    width: 18px;
    height: 18px;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.light .theme-toggle .icon-sun { display: block; }
html.light .theme-toggle .icon-moon { display: none; }

/* ─── Light mode overrides ─── */
html.light .hero-glow {
    background: radial-gradient(circle, rgba(209,61,21,0.08) 0%, transparent 65%);
}
html.light .hero-glow.secondary {
    background: radial-gradient(circle, rgba(34,211,238,0.06) 0%, transparent 65%);
}

html.light .compare-grid tr:hover td {
    background: var(--bg-hover);
}
html.light .compare-grid tr:hover td.col-salsa {
    background: rgba(209,61,21,0.1);
}

html.light .screenshot-main {
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}
html.light .screenshot-sm {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

html.light .status-icon.pending {
    background: rgba(234,179,8,0.1);
    border-color: rgba(234,179,8,0.3);
}
html.light .status-icon.success {
    background: rgba(22,163,74,0.1);
    border-color: rgba(22,163,74,0.3);
}

html.light .cta-section {
    background: linear-gradient(to bottom, transparent, var(--accent-soft));
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lifecycle {
        gap: 8px;
    }
    .lc-step {
        flex: 0 0 130px;
    }
    .lc-connector {
        width: 16px;
    }
}

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }

    .hero { padding: 150px 24px 80px; }
    .hero h1 { font-size: 2.75rem; }

    section { padding-left: 24px !important; padding-right: 24px !important; }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .compare-grid table { font-size: 0.75rem; }
    .compare-grid th, .compare-grid td { padding: 10px 12px; }

    .lifecycle {
        flex-direction: column;
        align-items: center;
    }
    .lc-connector {
        width: 1px;
        height: 16px;
        margin-top: 0;
    }
    .lc-step { flex: 0 0 auto; width: 240px; }

    .screenshot-grid {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════
   Site Footer — Contact + Grid + Copyright
   ═══════════════════════════════════════════ */

.site-footer {
    position: relative;
    background:
        linear-gradient(180deg,
            var(--bg) 0%,
            var(--bg-surface) 8%,
            var(--bg-elevated) 50%,
            var(--bg-surface) 92%,
            var(--bg) 100%);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

/* Subtle warm glow behind the footer grid */
.site-footer::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* ─── Contact trigger button (footer) ─── */
.btn-contact-open {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-contact-open:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 24px var(--accent-glow);
}

/* ─── Contact Modal ─── */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.contact-overlay.open {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92) translateY(30px);
    width: 520px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px 36px;
    z-index: 901;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1) translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.contact-modal-close:hover {
    color: var(--text-1);
    background: var(--bg-hover);
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.contact-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 8px;
    background: linear-gradient(120deg, var(--orange) 0%, #d6a436 28%, var(--cyan) 58%, var(--blue) 78%, var(--orange) 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: salsaWordUndulate 8s ease-in-out infinite;
}

.contact-modal-header p {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.5;
}

/* ─── Modal form view ─── */
.contact-modal-form {
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-modal-form.hiding {
    opacity: 0;
    transform: translateX(-40px);
    pointer-events: none;
}

.contact-modal-form.hidden {
    display: none;
}

/* ─── Modal success view ─── */
.contact-modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 0;
    opacity: 0;
    transform: translateX(40px);
}

.contact-modal-success.active {
    display: flex;
    animation: modalSuccessSlideIn 0.45s var(--ease) 0.1s forwards;
}

@keyframes modalSuccessSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-modal-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-1);
}

.contact-modal-success p {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.6;
    max-width: 360px;
}

/* ─── Pepper bounce ─── */
.footer-pepper {
    display: inline-block;
    font-size: 1.1em;
    cursor: default;
    transition: transform 0.3s var(--ease);
}

.footer-pepper:hover {
    animation: pepperBounce 0.6s var(--ease);
}

@keyframes pepperBounce {
    0%   { transform: translateY(0) rotate(0deg); }
    25%  { transform: translateY(-12px) rotate(-8deg); }
    50%  { transform: translateY(-4px) rotate(4deg); }
    75%  { transform: translateY(-8px) rotate(-3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ─── Footer form ─── */
.footer-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-form .form-row {
    display: flex;
    gap: 14px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-1);
    font-family: var(--font);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.25s var(--ease);
    opacity: 0;
    transform: translateY(12px);
    animation: formFieldReveal 0.5s var(--ease) forwards;
}

.footer-form input:nth-child(1),
.footer-form .form-row:nth-child(1) input:nth-child(1) {
    animation-delay: 0.1s;
}
.footer-form .form-row:nth-child(1) input:nth-child(2) {
    animation-delay: 0.2s;
}
.footer-form textarea {
    animation-delay: 0.3s;
}

@keyframes formFieldReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: var(--text-3);
}

.footer-form input:focus,
.footer-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.footer-form textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

/* ─── Submit button with pulse ─── */
.footer-form .btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    padding: 13px 32px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    opacity: 0;
    transform: translateY(12px);
    animation: formFieldReveal 0.5s var(--ease) 0.4s forwards;
}

.footer-form .btn-submit:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 28px var(--accent-glow);
}

.footer-form .btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pulse ring on submit button */
.footer-form .btn-submit::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: heroPulseRing 3s ease-out 2s infinite;
}

/* ─── Success check icon (shared by modal) ─── */
.success-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(74,222,128,0.12);
    border: 2px solid rgba(74,222,128,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: checkPop 0.4s var(--ease) 0.15s both;
}

@keyframes checkPop {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.success-check::after {
    content: '';
    width: 14px;
    height: 22px;
    border-right: 3px solid var(--green);
    border-bottom: 3px solid var(--green);
    transform: rotate(45deg) translate(-2px, -2px);
    animation: checkDraw 0.35s var(--ease) 0.4s both;
}

@keyframes checkDraw {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}


/* ─── Footer grid (4-column bottom section) ─── */
.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 60px 40px 48px;
    border-top: 1px solid var(--border);
}

.footer-grid-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Logo + tagline column */
.footer-grid-col .footer-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-1);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 3px;
}

.footer-grid-col .footer-tagline {
    font-size: 0.8125rem;
    color: var(--text-3);
    line-height: 1.6;
    max-width: 260px;
}

/* Column headings */
.footer-grid-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-2);
    margin-bottom: 4px;
}

/* Navigation links in grid */
.footer-grid-col a {
    font-size: 0.8125rem;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-grid-col a:hover {
    color: var(--text-1);
}

/* ─── Contact info ─── */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-info a {
    font-size: 0.8125rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s, text-shadow 0.25s;
}

.footer-contact-info a:hover {
    color: var(--orange);
    text-shadow: 0 0 12px var(--accent-glow);
}

/* Social placeholder icons */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 0.75rem;
    transition: all 0.15s;
}

.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ─── Copyright bar ─── */
.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-3);
}

.footer-bottom a {
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom a:hover {
    color: var(--text-2);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* ─── Light mode footer + modal overrides ─── */
html.light .site-footer {
    background:
        linear-gradient(180deg,
            var(--bg) 0%,
            var(--bg-surface) 8%,
            var(--bg-elevated) 50%,
            var(--bg-surface) 92%,
            var(--bg) 100%);
}

html.light .site-footer::before {
    background: radial-gradient(circle, rgba(209,61,21,0.08) 0%, transparent 70%);
}

html.light .contact-modal {
    box-shadow: 0 24px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
}

html.light .footer-form input,
html.light .footer-form textarea {
    background: var(--bg);
    border-color: var(--border);
}

html.light .footer-form input:focus,
html.light .footer-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 16px var(--accent-glow);
}

/* ─── Modal responsive ─── */
@media (max-width: 768px) {
    .contact-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translateY(100%);
        padding: 48px 24px 32px;
    }

    .contact-modal.open {
        transform: translateY(0);
    }
}

/* ─── Footer responsive ─── */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer-form .form-row {
        flex-direction: column;
    }

    .footer-form .btn-submit {
        align-self: stretch;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 24px 32px;
    }

    .footer-grid-col .footer-tagline {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 24px;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}
