/* ============================================================
   XSENSE — Shared styles for About / Download / Warranty pages
   Loads after styles.css. Uses the same design tokens & theme.
   ============================================================ */

/* Ghost button variant for use on light surfaces */
.btn-ghost--light {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
}

.btn-ghost--light:hover {
    background: var(--surface-2);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    color: var(--accent);
}

/* ---------- Page hero (shared) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 9vw, 110px) 0;
    color: #fff;
    background: var(--slide-grad, var(--dark-0));
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-inner {
    max-width: 760px;
}

.page-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.page-hero-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}

.page-hero-title .accent {
    color: var(--accent);
}

.page-hero-sub {
    color: var(--dark-muted);
    font-size: 1.05rem;
    max-width: 620px;
    line-height: 1.7;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* ---------- Breadcrumb strip ---------- */
.page-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.page-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* About hero slider (3 banner slides) */
.about-slider {
    position: relative;
    min-height: clamp(380px, 60vh, 560px);
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--dark-0);
    overflow: hidden;
}

.about-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: var(--slide-grad, var(--dark-0));
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s var(--ease), visibility .8s;
}

.about-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Promotional overlay layer on the about slider */
.about-slide .slide-overlay {
    position: absolute;
    z-index: 1;
    display: block;
    line-height: 0;
    will-change: transform, opacity;
}
.about-slide .slide-overlay img.slide-overlay-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    pointer-events: none;
}
.about-slide .slide-overlay--left {
    left: clamp(16px, 6vw, 90px);
    top: 50%;
    transform: translateY(-50%);
}
.about-slide .slide-overlay--right {
    right: clamp(16px, 6vw, 90px);
    top: 50%;
    transform: translateY(-50%);
}
.about-slide .slide-overlay--center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.about-slide .slide-overlay--custom {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.about-slide .slide-overlay:not([style*="width"]) {
    width: clamp(160px, 30vw, 420px);
}
.about-slide .slide-overlay {
    opacity: 0;
    transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
.about-slide.active .slide-overlay.ov-appear-fade-in { opacity: 1; }
.about-slide.active .slide-overlay.ov-appear-slide-left,
.about-slide.active .slide-overlay.ov-appear-slide-right,
.about-slide.active .slide-overlay.ov-appear-zoom-in,
.about-slide.active .slide-overlay.ov-appear-fade-zoom { opacity: 1; }
.about-slide .slide-overlay.ov-appear-slide-left { transform: translateY(-50%) translateX(-80px); }
.about-slide .slide-overlay.ov-appear-slide-right { transform: translateY(-50%) translateX(80px); }
.about-slide .slide-overlay.ov-appear-zoom-in { transform: translateY(-50%) scale(.6); }
.about-slide .slide-overlay.ov-appear-fade-zoom { transform: translateY(-50%) scale(.8); }
.about-slide.active .slide-overlay.ov-appear-slide-left { transform: translateY(-50%) translateX(0); }
.about-slide.active .slide-overlay.ov-appear-slide-right { transform: translateY(-50%) translateX(0); }
.about-slide.active .slide-overlay.ov-appear-zoom-in { transform: translateY(-50%) scale(1); }
.about-slide.active .slide-overlay.ov-appear-fade-zoom { transform: translateY(-50%) scale(1); }
.about-slide .slide-overlay--center.ov-appear-slide-left,
.about-slide .slide-overlay--custom.ov-appear-slide-left { transform: translate(-50%, -50%) translateX(-80px); }
.about-slide .slide-overlay--center.ov-appear-slide-right,
.about-slide .slide-overlay--custom.ov-appear-slide-right { transform: translate(-50%, -50%) translateX(80px); }
.about-slide .slide-overlay--center.ov-appear-zoom-in,
.about-slide .slide-overlay--custom.ov-appear-zoom-in { transform: translate(-50%, -50%) scale(.6); }
.about-slide .slide-overlay--center.ov-appear-fade-zoom,
.about-slide .slide-overlay--custom.ov-appear-fade-zoom { transform: translate(-50%, -50%) scale(.8); }
.about-slide.active .slide-overlay--center.ov-appear-slide-left,
.about-slide.active .slide-overlay--center.ov-appear-slide-right,
.about-slide.active .slide-overlay--center.ov-appear-zoom-in,
.about-slide.active .slide-overlay--center.ov-appear-fade-zoom,
.about-slide.active .slide-overlay--custom.ov-appear-slide-left,
.about-slide.active .slide-overlay--custom.ov-appear-slide-right,
.about-slide.active .slide-overlay--custom.ov-appear-zoom-in,
.about-slide.active .slide-overlay--custom.ov-appear-fade-zoom { transform: translate(-50%, -50%); }
.about-slide .slide-overlay.ov-hover-zoom:hover img { transform: scale(1.08); }
.about-slide .slide-overlay.ov-hover-rotate:hover img { transform: rotate(4deg) scale(1.04); }
.about-slide .slide-overlay.ov-hover-glow:hover img { filter: drop-shadow(0 0 22px rgba(230,57,70,.55)); }
.about-slide .slide-overlay.ov-hover-fade:hover img { opacity: .75; }
.about-slide .slide-overlay.ov-hover-slide-up:hover img { transform: translateY(-10px); }
.about-slide .slide-overlay.ov-hover-zoom-rotate:hover img { transform: scale(1.1) rotate(-3deg); }
.about-slide .slide-overlay img {
    transition: transform .45s var(--ease), translate .25s ease-out, filter .45s var(--ease), opacity .45s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
    .about-slide .slide-overlay,
    .about-slide .slide-overlay img { transition: none; }
}
/* RTL: mirror the about-slider overlay so a "left" placement sits on the
   logical start (right side) for right-to-left languages, and vice-versa. */
[dir="rtl"] .about-slide .slide-overlay--left {
    left: auto;
    right: clamp(16px, 6vw, 90px);
}
[dir="rtl"] .about-slide .slide-overlay--right {
    right: auto;
    left: clamp(16px, 6vw, 90px);
}
[dir="rtl"] .about-slide .slide-overlay.ov-appear-slide-left {
    transform: translateY(-50%) translateX(80px);
}
[dir="rtl"] .about-slide .slide-overlay.ov-appear-slide-right {
    transform: translateY(-50%) translateX(-80px);
}
[dir="rtl"] .about-slide .slide-overlay--center.ov-appear-slide-left,
[dir="rtl"] .about-slide .slide-overlay--custom.ov-appear-slide-left {
    transform: translate(-50%, -50%) translateX(80px);
}
[dir="rtl"] .about-slide .slide-overlay--center.ov-appear-slide-right,
[dir="rtl"] .about-slide .slide-overlay--custom.ov-appear-slide-right {
    transform: translate(-50%, -50%) translateX(-80px);
}

.about-slide-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.about-slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.about-slide-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.about-slide-sub {
    color: var(--dark-muted);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 26px;
}

.about-slider-controls {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-dots {
    display: flex;
    gap: 8px;
}

.about-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
    transition: background-color .3s var(--ease), width .3s var(--ease);
}

.about-dots .dot.active {
    width: 26px;
    background: var(--accent);
}

/* Intro section */
.about-intro {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.about-intro-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.about-intro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-intro-content .section-kicker {
    margin-bottom: 16px;
}

.about-intro-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}

.about-intro-text {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

/* Stats counters */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.stat-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-value {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1;
    color: var(--text);
}

.stat-suffix {
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
}

/* Why choose Xsense */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.why-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.why-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-boxes {
    display: grid;
    gap: 18px;
}

.why-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.why-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.why-box-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px var(--accent-soft);
}

.why-box-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.12rem;
    margin-bottom: 6px;
}

.why-box-desc {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.65;
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 16px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.contact-card-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 3px;
}

.contact-card-value {
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

.contact-card-value a {
    color: var(--text);
    transition: color .25s var(--ease);
}

.contact-card-value a:hover {
    color: var(--accent);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    min-height: 320px;
    background: var(--surface-2);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
    filter: grayscale(.2) contrast(1.05);
}

html[data-theme="dark"] .contact-map iframe {
    filter: invert(.9) hue-rotate(180deg) grayscale(.2) contrast(.9);
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.download-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-wrap {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-wrap lottie-player,
.lottie-wrap .lottie-fallback {
    width: 100%;
    height: 100%;
}

.lottie-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.download-content .section-kicker {
    margin-bottom: 16px;
}

.download-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.download-title .accent {
    color: var(--accent);
}

.download-text {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 22px;
}

.download-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 12px 28px var(--accent-soft);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.download-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px var(--accent-soft);
}

.download-cta i {
    font-size: 1.4rem;
}

.download-cta small {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    opacity: .85;
    text-align: left;
}

/* Download banner */
.download-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 40px 24px;
    background: var(--slide-grad, var(--dark-0));
}

.download-banner-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 10px;
}

.download-banner-sub {
    color: rgba(255, 255, 255, .85);
    max-width: 520px;
    margin: 0 auto;
}

/* Download features */
.dl-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.dl-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.dl-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.dl-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.dl-feature-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.dl-feature-desc {
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.6;
}

/* App mockup */
.app-mockup {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 36px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 14px;
}

.app-mockup-screen {
    border-radius: 26px;
    overflow: hidden;
    background: var(--dark-0);
    aspect-ratio: 9 / 18;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
}

.app-mockup-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(400px 300px at 70% 0%, rgba(230, 57, 70, .35), transparent 60%),
        radial-gradient(360px 300px at 10% 100%, rgba(37, 99, 235, .35), transparent 60%);
}

.app-mockup-screen > * {
    position: relative;
    z-index: 1;
}

.app-mockup-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px var(--accent-soft);
}

.app-mockup-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.app-mockup-tag {
    color: rgba(255, 255, 255, .7);
    font-size: .85rem;
    margin-bottom: 22px;
}

.app-mockup-bars {
    width: 100%;
    display: grid;
    gap: 10px;
}

.app-mockup-bar {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}

.app-mockup-bar::after {
    content: '';
    display: block;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.app-mockup-bar:nth-child(1)::after { width: 82%; }
.app-mockup-bar:nth-child(2)::after { width: 64%; }
.app-mockup-bar:nth-child(3)::after { width: 90%; }
.app-mockup-bar:nth-child(4)::after { width: 48%; }

/* ============================================================
   WARRANTY PAGE
   ============================================================ */

.warranty-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.warranty-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.warranty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.warranty-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 24px var(--accent-soft);
}

.warranty-card-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.warranty-card-desc {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.65;
}

/* Warranty form */
.warranty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: start;
}

.warranty-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-md);
}

.warranty-form-card h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.warranty-form-card > p {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--surface);
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

.form-submit {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Warranty status lookup */
.warranty-status {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-md);
}

.warranty-status h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.warranty-status > p {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 22px;
}

.status-result {
    margin-top: 20px;
    border-radius: 14px;
    padding: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: none;
}

.status-result.show {
    display: block;
    animation: fadeIn .4s var(--ease);
}

.status-result .status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-result .status-line i {
    color: #16a34a;
}

.status-result p {
    color: var(--muted);
    font-size: .92rem;
}

/* Accordion (FAQ) */
.accordion {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color .3s var(--ease);
}

.accordion-item.open {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    text-align: left;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
}

.accordion-header .acc-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: transform .3s var(--ease), background-color .3s var(--ease);
}

.accordion-item.open .accordion-header .acc-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: #fff;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
}

.accordion-body-inner {
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.7;
}

/* Support CTA */
.support-cta {
    text-align: center;
    background: var(--dark-0);
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(40px, 6vw, 64px) 24px;
    position: relative;
    overflow: hidden;
}

.support-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 320px at 80% 0%, rgba(230, 57, 70, .3), transparent 60%),
        radial-gradient(500px 300px at 10% 100%, rgba(37, 99, 235, .3), transparent 60%);
}

.support-cta > * {
    position: relative;
    z-index: 1;
}

.support-cta h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    margin-bottom: 12px;
}

.support-cta p {
    color: var(--dark-muted);
    max-width: 560px;
    margin: 0 auto 26px;
}

.support-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
}
.blog-filter {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
    transition: all .25s var(--ease);
}
.blog-filter:hover { border-color: var(--accent); color: var(--accent); }
.blog-filter.active { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; border-color: transparent; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0b0e14, #131a2b);
    color: var(--accent);
    font-size: 2.5rem;
}
.blog-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.blog-cat {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent); background: var(--accent-soft);
    padding: 4px 10px; border-radius: 999px;
}
.blog-date, .blog-author { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.blog-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.35; margin-bottom: 8px; }
.blog-title a { color: var(--text); transition: color .25s var(--ease); }
.blog-title a:hover { color: var(--accent); }
.blog-excerpt { color: var(--muted); font-size: .92rem; line-height: 1.6; margin-bottom: 14px; flex: 1; }
.blog-read { color: var(--accent); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.blog-read i { transition: transform .25s var(--ease); }
.blog-read:hover i { transform: translateX(4px); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn {
    min-width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text);
    font-weight: 600; font-size: .9rem;
    transition: all .25s var(--ease);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; border-color: transparent; }

/* Article detail */
.blog-article { max-width: 820px; }
.blog-article-head { text-align: center; margin-bottom: 28px; }
.blog-article-head .blog-meta { justify-content: center; }
.blog-article-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; margin: 14px 0; }
.blog-article-excerpt { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.blog-article-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--border); }
.blog-article-thumb img { width: 100%; }
.blog-article-content { font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.blog-article-content p { margin-bottom: 18px; }
.blog-article-content h2, .blog-article-content h3 { font-family: var(--font-head); margin: 28px 0 12px; }
.blog-article-content img { border-radius: var(--radius); margin: 18px 0; }
.blog-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.blog-tags-label { font-weight: 600; color: var(--muted); font-size: .9rem; }
.blog-tag { color: var(--accent); font-size: .85rem; font-weight: 600; }
.blog-tag:hover { text-decoration: underline; }

@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .warranty-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-intro,
    .why-grid,
    .contact-grid,
    .download-grid,
    .warranty-grid {
        grid-template-columns: 1fr;
    }

    .about-intro-media,
    .why-media {
        order: -1;
    }

    .download-visual {
        order: -1;
    }

    .dl-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .warranty-benefits {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field--full {
        grid-column: auto;
    }

    .form-submit {
        grid-column: auto;
        width: 100%;
    }

    .form-submit .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 12px;
    }
}

/* ---------- Empty state (shared listing pages) ---------- */
.reviews-empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.reviews-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.reviews-empty-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.reviews-empty-text {
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto;
    font-size: .95rem;
    line-height: 1.6;
}

/* ============================================================
   ERROR PAGES (400 / 403 / 404 / 500 / 503 …)
   Shared, on-brand error screen used by pages/error.php.
   ============================================================ */
.error-hero {
    position: relative;
    padding: clamp(48px, 9vw, 96px) 0 clamp(56px, 10vw, 110px);
    overflow: hidden;
}

/* Soft accent glow behind the content — decorative only. */
.error-hero::before {
    content: '';
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 120vw);
    height: 420px;
    background: radial-gradient(circle at center, var(--accent-soft), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.error-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Oversized status code used as a watermark behind the icon. */
.error-code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(5rem, 20vw, 11rem);
    line-height: .9;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
    opacity: .16;
    user-select: none;
    margin-bottom: -0.35em;
}

.error-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 14px 34px var(--accent-soft);
    animation: errorPop .5s var(--ease) both;
}

@keyframes errorPop {
    from { opacity: 0; transform: scale(.82) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.error-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 12px;
}

.error-text {
    color: var(--muted);
    font-size: clamp(.95rem, 2.4vw, 1.05rem);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 30px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

/* Secondary "you might be looking for" link cloud. */
.error-help {
    border-top: 1px solid var(--border);
    padding-top: 26px;
}

.error-help-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 14px;
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.error-links a {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: .85rem;
    font-weight: 600;
    transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.error-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .error-actions { flex-direction: column; }
    .error-actions .btn { width: 100%; justify-content: center; }
}
