/* ── Fluid container ── */
.site-container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ── Reusable ── */
.nav-link {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}
.nav-link:hover { color: white; }

.label-sm {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.cta-btn {
    display: inline-block;
    background: #E63946;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    padding: 0.875rem 2rem;
    border-radius: 0.375rem;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.cta-btn:hover {
    background: #FF4D4D;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(230,57,70,0.3);
}

/* ── Base ── */
html.smooth { scroll-behavior: smooth; }
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(230,57,70,0.3) #0c0a09;
}
body::-webkit-scrollbar { width: 4px; }
body::-webkit-scrollbar-track { background: #0c0a09; }
body::-webkit-scrollbar-thumb { background: rgba(230,57,70,0.3); border-radius: 2px; }

/* ── Hero ── */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(12,10,9,0.50) 0%,
        rgba(12,10,9,0.40) 30%,
        rgba(12,10,9,0.70) 70%,
        rgba(12,10,9,1) 100%
    );
}
.hero-title { font-size: clamp(3rem, 9vw, 9rem); }

/* ── Nav ── */
.nav-solid {
    background: rgba(12,10,9,0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu { transform: translateX(100%); transition: transform 0.3s; }
.mobile-menu.open { transform: translateX(0); }

/* ── Focus ── */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid rgba(230,57,70,0.5);
    outline-offset: 2px;
}

/* ── Form ── */
.contact-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    color: #ededed;
    background: #1a1816;
    border: 1px solid rgba(255,255,255,0.12);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
}
.contact-input::placeholder { color: rgba(255,255,255,0.22); }
.contact-input:hover {
    border-color: rgba(255,255,255,0.22);
    background: #1e1c1a;
}
.contact-input:focus {
    border-color: #E63946;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
    background: #1e1c1a;
}
.contact-input.input-error {
    border-color: #E63946;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}
select.contact-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
select.contact-input option { background: #1a1816; color: #ededed; padding: 8px; }

/* ── Card interactions ── */
.svc-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}
.svc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 40px rgba(230,57,70,0.04);
}

#pricing .rounded-lg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}
#pricing .rounded-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

/* ── Grain ── */
.grain-overlay::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

/* ── Phone frames ── */
.phone-frame {
    width: 180px;
    height: 230px;
    border-radius: 22px;
    border: 2px solid rgba(255,255,255,0.12);
    background: linear-gradient(165deg, #1a1818 0%, #111010 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 20px 60px rgba(0,0,0,0.5),
        0 0 60px rgba(230,57,70,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.phone-frame-lg {
    width: clamp(200px, 24vw, 270px);
    height: clamp(260px, 31vw, 350px);
}

.phone-statusbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 10px 4px; flex-shrink: 0;
}
.phone-notif-area {
    flex: 1; padding: 4px 8px 8px;
    display: flex; flex-direction: column; gap: 5px;
}
.notif-card {
    display: flex; align-items: flex-start; gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 7px 8px;
}
.notif-logo {
    width: 22px; height: 22px; border-radius: 6px;
    background: linear-gradient(135deg, #E63946, #c0303c);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 7px; font-weight: 700;
    flex-shrink: 0; letter-spacing: 0.5px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-counter {
    display: flex; align-items: center; justify-content: center;
    background: rgba(230,57,70,0.15);
    border: 1px solid rgba(230,57,70,0.25);
    border-radius: 8px; padding: 3px 10px;
    margin-top: 2px; align-self: center;
}

/* SMS */
.sms-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 8px 5px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.sms-header-avatar {
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, #E63946, #c0303c);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 6px; font-weight: 700;
}
.sms-chat-body { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.sms-bubble-dealer { background: rgba(255,255,255,0.07); border-radius: 12px 12px 12px 4px; padding: 7px 9px; max-width: 92%; }
.sms-bubble-customer { background: linear-gradient(135deg, #E63946, #d42f3c); border-radius: 12px 12px 4px 12px; padding: 7px 9px; max-width: 75%; transform-origin: bottom right; }
.sms-meta-left { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.sms-read-receipt { transition: color 0.6s; }

/* Voicemail */
.vm-lockscreen-header { display: flex; flex-direction: column; align-items: center; padding: 10px 0 6px; flex-shrink: 0; }
.vm-notif-area { flex: 1; padding: 4px 8px 8px; display: flex; flex-direction: column; }
.vm-notif-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 8px 10px; }
.vm-notif-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.vm-notif-body { margin-bottom: 8px; }
.vm-playback { display: flex; align-items: center; gap: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.vm-play-btn {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(230,57,70,0.25); border: 1px solid rgba(230,57,70,0.5);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.3s;
}
.vm-play-btn.tapped { background: rgba(230,57,70,0.5); }
.vm-waveform-track { flex: 1; height: 20px; position: relative; overflow: hidden; border-radius: 4px; }
.vm-waveform-bars { display: flex; align-items: flex-end; gap: 1.5px; height: 100%; position: relative; z-index: 1; }
.vm-wbar { width: 2.5px; border-radius: 2px; background: rgba(230,57,70,0.3); flex-shrink: 0; transition: background 0.15s; }
.vm-wbar.played { background: rgba(230,57,70,0.85); }
.vm-progress-fill { position: absolute; inset: 0; width: 0%; background: rgba(230,57,70,0.08); border-radius: 4px; z-index: 0; }
.vm-time-display { flex-shrink: 0; min-width: 22px; text-align: right; }

/* ── Campaign cards ── */
.campaign-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}
.campaign-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230,57,70,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(230,57,70,0.04);
}

/* ── Process steps ── */
#process .grid > div {
    transition: background 0.3s;
}
#process .grid > div:hover {
    background: #131110;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
