/* ══════════════════════════════════════════════════════════════════
   style.css — BarangayServe Homepage
   ShadCN-style design system (Inter, zinc/slate tokens)
   ══════════════════════════════════════════════════════════════════ */

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

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
    --pg-gradient:      linear-gradient(135deg, #dbeafe 0%, #f1f5f9 50%, #ede9fe 100%);
    --card-bg:          #ffffff;
    --card-border:      #e4e4e7;
    --text:             #09090b;
    --text-muted:       #71717a;
    --placeholder:      #a1a1aa;
    --input-bg:         #ffffff;
    --input-border:     #e4e4e7;
    --input-focus:      #71717a;
    --btn-bg:           #09090b;
    --btn-text:         #fafafa;
    --btn-hover:        #18181b;
    --divider-color:    #e4e4e7;
    --surface:          #f4f4f5;
    --nav-bg:           transparent;
    --nav-border:       transparent;
    --nav-text:         #fafafa;
    --nav-text-muted:   rgba(255,255,255,0.65);
    --hero-bg:          linear-gradient(135deg, #1e3a5f 0%, #1a1a4e 50%, #2d1b69 100%);
    --section-label:    #6366f1;
    --badge-bg:         rgba(99, 102, 241, 0.12);
    --badge-text:       #6366f1;
    --feat-icon-bg:          #f4f4f5;
    --about-visual-bg:       #eef2ff;
    --about-visual-border:   #c7d2fe;
    --about-visual-title:    #6366f1;
    --about-visual-text:     #374151;
    --doc-check-bg:          rgba(99, 102, 241, 0.12);
    --doc-check-border:      rgba(99, 102, 241, 0.35);
    --contact-bg:       linear-gradient(135deg, #1e3a5f 0%, #1a1a4e 50%, #2d1b69 100%);
    --footer-bg:        #0f172a;
    --footer-text:      rgba(255,255,255,0.72);
    --footer-link:      #d4d4d8;
    --stat-badge-bg:    rgba(34, 197, 94, 0.15);
    --stat-badge-text:  #16a34a;
    --meta-item-bg:     #f4f4f5;
    --meta-item-border: #6366f1;
}

[data-bs-theme="dark"] {
    --pg-gradient:      linear-gradient(135deg, #0f172a 0%, #09090b 50%, #1e0a2e 100%);
    --hero-bg:          linear-gradient(135deg, #02040a 0%, #040208 50%, #0a0118 100%);
    --contact-bg:       linear-gradient(135deg, #02040a 0%, #040208 50%, #0a0118 100%);
    --footer-bg:        #020205;
    --card-bg:          #0f0f12;
    --card-border:      #27272a;
    --text:             #fafafa;
    --text-muted:       #a1a1aa;
    --placeholder:      #52525b;
    --input-bg:         #09090b;
    --input-border:     #27272a;
    --input-focus:      #71717a;
    --btn-bg:           #fafafa;
    --btn-text:         #09090b;
    --btn-hover:        #e4e4e7;
    --divider-color:    #27272a;
    --surface:          #18181b;
    --nav-bg:           transparent;
    --nav-border:       transparent;
    --nav-text:         #fafafa;
    --nav-text-muted:   rgba(255,255,255,0.65);
    --section-label:    #818cf8;
    --badge-bg:         rgba(129, 140, 248, 0.15);
    --badge-text:       #818cf8;
    --feat-icon-bg:          #18181b;
    --about-visual-bg:       #0f0f12;
    --about-visual-border:   #27272a;
    --about-visual-title:    #a5b4fc;
    --about-visual-text:     rgba(255, 255, 255, 0.75);
    --doc-check-bg:          rgba(99, 102, 241, 0.2);
    --doc-check-border:      rgba(99, 102, 241, 0.4);
    --meta-item-bg:     #18181b;
    --meta-item-border: #818cf8;
    --stat-badge-bg:    rgba(34, 197, 94, 0.15);
    --stat-badge-text:  #4ade80;
}

/* ── Global ─────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--pg-gradient);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.3s, color 0.2s;
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw;
    height: 60px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    transition: background 0.3s, border-color 0.2s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo .seal {
    width: 32px; height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f5;
    flex-shrink: 0;
}

.nav-logo .seal img {
    width: 100%; height: 100%;
    object-fit: contain;
}

.nav-logo span {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--nav-text);
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.nav-logo span em{
    font-style: normal;
    color: var(--section-label);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links li a {
    color: var(--nav-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: color 0.15s, background 0.15s;
}

.nav-links li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.btn-nav {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.4375rem 1rem !important;
    transition: background 0.15s !important;
    text-decoration: none !important;
}

.btn-nav:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* Theme toggle in nav */
.nav-theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.375rem;
    color: rgba(255,255,255,0.65);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.nav-theme-toggle:hover {
    border-color: var(--input-focus);
    color: var(--nav-text);
    background: var(--surface);
}

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--hero-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 6vw 5rem;
    position: relative;
    transition: background 0.3s;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 70% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 45%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Both grid children must have min-width:0 to prevent blowing out their column */
.hero-content,
.hero-card {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s ease forwards;
}

.hero-eyebrow span {
    width: 6px; height: 6px;
    background: #818cf8;
    border-radius: 50%;
    display: inline-block;
}

.hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fafafa;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeUp 0.6s 0.35s ease forwards;
}

.hero-content h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    max-width: 100%;
    width: 100%;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s ease forwards;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s 0.65s ease forwards;
}

/* Hero buttons */
/* Hero CTA buttons — sit on a dark hero bg in both modes */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5625rem 1.25rem;
    background: #ffffff;
    color: #09090b;
    border: none;
    border-radius: 0.375rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    letter-spacing: -0.01em;
}
.btn-primary:hover { background: #e4e4e7; transform: translateY(-1px); }

/* Light mode: hero is medium-dark, so white btn works.
   Dark mode: hero is near-black, shift btn to indigo to stand out */
[data-bs-theme="dark"] .hero .btn-primary {
    background: #6366f1;
    color: #ffffff;
}
[data-bs-theme="dark"] .hero .btn-primary:hover {
    background: #4f46e5;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5625rem 1.25rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.375rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Hero card */
.hero-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    animation: fadeLeft 0.7s 0.5s ease forwards;
}

.hero-card-title {
    color: #a5b4fc;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.stat-list { display: flex; flex-direction: column; gap: 0.625rem; }

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    padding: 0.75rem 0.875rem;
}

.stat-icon {
    width: 36px; height: 36px;
    border-radius: 0.375rem;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-info { flex: 1; min-width: 0; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-bottom: 0.125rem; }
.stat-val { font-size: 0.875rem; color: #fafafa; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stat-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: var(--stat-badge-bg);
    color: var(--stat-badge-text);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── SECTION SHARED ─────────────────────────────────────────────── */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--section-label);
    margin-bottom: 0.625rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

/* ── ABOUT SECTION ─────────────────────────────────────────────── */
.about {
    padding: 6rem 6vw;
    background: var(--card-bg);
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.about-stripe-pattern {
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(99, 102, 241, 0.08);
    stroke-width: 0.5;
    z-index: 0;
}

[data-bs-theme="dark"] .about-stripe-pattern {
    color: rgba(165, 180, 252, 0.06);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.about-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-top: 2rem;
}

.meta-item {
    background: var(--meta-item-bg);
    border-radius: 0.5rem;
    padding: 1rem 1.125rem;
    transition: background 0.2s;
    box-shadow: 0px 7px 13px -7px #000000, 5px 3px 10px 0px rgba(0,0,0,0);
}

.meta-item strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    letter-spacing: -0.02em;
}

.meta-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* About visual card */
.about-visual {
    background: var(--about-visual-bg);
    border: 1px solid var(--about-visual-border);
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
    pointer-events: none;
}

.about-visual-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--about-visual-title);
    margin-bottom: 1.25rem;
    transition: color 0.3s;
}

.doc-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }

.doc-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--about-visual-text);
    font-size: 0.875rem;
    transition: color 0.3s;
}

.doc-list li::before {
    content: '';
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--doc-check-bg);
    border: 1px solid var(--doc-check-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23818cf8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: background 0.3s, border-color 0.3s;
}

/* ── FEATURES SECTION ───────────────────────────────────────────── */
.features {
    padding: 6rem 6vw;
    background: var(--pg-gradient);
    transition: background 0.3s;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-header .section-title { margin-bottom: 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feat-card {
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
    box-shadow: 0px 7px 13px -7px #000000, 5px 3px 10px 0px rgba(0,0,0,0);
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #a5b4fc;
}

[data-bs-theme="dark"] .feat-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: #6366f1;
}

.feat-icon {
    font-size: 1.5rem;
    width: 48px; height: 48px;
    border-radius: 0.5rem;
    background: var(--feat-icon-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.125rem;
    transition: background 0.2s;
}

.feat-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feat-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── CONTACT SECTION ────────────────────────────────────────────── */
.contact {
    padding: 6rem 6vw;
    background: var(--contact-bg);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(99, 102, 241, 0.1), transparent 60%);
    pointer-events: none;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
}


.contact .section-label { color: #a5b4fc; }
.contact .section-title { color: #fafafa; }

.contact-detail {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-icon {
    width: 40px; height: 40px;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail-text strong {
    color: #fafafa;
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.125rem;
}

.contact-detail-text span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.form-group label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8125rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: #fafafa;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.btn-send {
    padding: 0.5625rem 1rem;
    background: #fafafa;
    color: #09090b;
    border: none;
    border-radius: 0.375rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.btn-send:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer {
    background: var(--footer-bg);
    padding: 1.5rem 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

footer p { color: var(--footer-text); font-size: 0.8125rem; }
.footer-br { display: none; }
footer a { color: var(--footer-link); text-decoration: none; font-size: 0.8125rem; transition: color 0.15s; }
footer a:hover { color: #fafafa; }
.footer-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

/* ── SCROLL REVEAL ──────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { max-width: 480px; }
}

@media (max-width: 900px) {
    .about-grid,
    .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-links li:not(:last-child):not(.nav-btn-item) { display: none; }
}

@media (max-width: 580px) {
    .features-grid { grid-template-columns: 1fr; }
    .about-meta { grid-template-columns: 1fr 1fr; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    nav,
    .hero,
    .about,
    .features,
    .contact,
    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .footer-br { display: block; }

    .hero { margin: 0; padding-top: 6rem; padding-bottom: 3rem; }

    .hero-grid { gap: 2rem; }

    .hero-content { overflow: hidden; }

    .hero-eyebrow { max-width: 100%; white-space: normal; }

    .hero-card { max-width: 100%; }

    .contact-inner { gap: 2rem; }
}

/* ── MARQUEE — features-grid ──────────────────────────────────────── */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-100% - 1.25rem)); }
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: none;
    margin-left: -6vw;
    margin-right: -6vw;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-row {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
}

.marquee-track {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    flex-shrink: 0;
    animation: marquee 60s linear infinite;
}

.marquee-row-rev .marquee-track {
    animation-direction: reverse;
}

.features-grid:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track .feat-card {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: unset; }
}

@media (max-width: 580px) {
    .features-grid { grid-template-columns: unset; }
    .marquee-track .feat-card { width: 260px; }
}

@media (max-width: 480px) {
    .features-grid {
        margin-left: -20px;
        margin-right: -20px;
    }
}
