/* ── home.css — styles for home page (BG + EN) ── */

/* ── Light mode feat-card overrides ── */
[data-theme="light"] .feat-card.c-neo { background: linear-gradient(135deg, #dce3f0 0%, #c8d6ef 100%); }
[data-theme="light"] .feat-card.c-air { background: linear-gradient(135deg, #cce0f5 0%, #b3d0f0 100%); }
[data-theme="light"] .feat-card.c-pro { background: linear-gradient(135deg, #e5d8f5 0%, #d4c0ef 100%); }
[data-theme="light"] .feat-card.c-xdr { background: linear-gradient(135deg, #e8e8ed 0%, #d8d8df 100%); }
[data-theme="light"] .feat-card.c-ipad     { background: linear-gradient(160deg, #c8e8f8 0%, #b0d8f5 100%); }
[data-theme="light"] .feat-card.c-17e       { background: linear-gradient(160deg, #f5d8e8 0%, #f0c0d8 100%); }
[data-theme="light"] .feat-card.c-i17       { background: linear-gradient(160deg, #cce0f5 0%, #b8d4f0 100%); }
[data-theme="light"] .feat-card.c-i17pro    { background: linear-gradient(160deg, #f5f0d8 0%, #ede8c8 100%); }
[data-theme="light"] .feat-card.c-i17promax { background: linear-gradient(160deg, #e8d8f5 0%, #dcc8f0 100%); }
[data-theme="light"] .feat-name { color: var(--text); }

/* ── Hero Slider ── */
.hero-slider-wrap {
    position: relative; width: 100%;
    cursor: grab; user-select: none; overscroll-behavior-x: contain;
}
.hero-slider-wrap.dragging { cursor: grabbing; }
.hero-track-clip {
    overflow: hidden; width: 100%;
    height: clamp(440px, calc(100svh - 155px), 820px);
}
.hero-track {
    display: flex; width: 100%; height: 100%;
    will-change: transform; align-items: stretch;
}
.hero-track.animated { transition: transform 0.55s cubic-bezier(0.77,0,0.18,1); }
.hero-slide {
    flex: 0 0 100%; width: 100%; height: 100%; min-height: 0;
    box-sizing: border-box; display: flex; flex-direction: column;
    justify-content: center; overflow: hidden;
}
.hero-slide > section { max-width: 900px; margin-left: auto; margin-right: auto; }

@keyframes heroFill {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ── Teaser slide layout ── */
.hero-teaser {
    text-align: center; padding: 4rem 2rem 2.5rem;
    max-width: 960px; margin: 0 auto; width: 100%; position: relative;
}
@media (max-width: 600px) { .hero-teaser { padding: 2.5rem 1.25rem 2rem; } }
.hero-teaser .slide-art {
    position: absolute; pointer-events: none; opacity: 0.06; z-index: 0;
}
.hero-teaser > *:not(.slide-art) { position: relative; z-index: 1; }
.hero-teaser .teaser-eyebrow {
    font-size: clamp(1rem, 2.2vw, 1.4rem); font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 1rem; text-align: center; display: block; width: 100%;
}
.hero-teaser h2 {
    font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.6rem; text-align: center;
}
.hero-teaser p {
    font-size: clamp(0.88rem, 1.6vw, 1rem); color: var(--muted);
    line-height: 1.75; margin: 0 auto 2rem; text-align: center; max-width: 640px;
}

/* ── Slide 1 hero ── */
.hero {
    text-align: center; padding: 6rem 1.5rem 4rem;
    max-width: 860px; margin: 0 auto; width: 100%;
}
.hero-logo { margin-bottom: 2.5rem; }
.hero-logo img { height: 90px; width: auto; }
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700;
    letter-spacing: -0.04em; line-height: 1.06; margin-bottom: 1.2rem;
}
.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--muted);
    max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.6;
}
.hero-btn {
    display: inline-block; background: var(--accent); color: #fff;
    font-size: 1rem; font-weight: 500; padding: 0.8rem 2rem;
    border-radius: 980px; transition: background 0.2s, transform 0.15s;
}
.hero-teaser .hero-btn { display: block; width: fit-content; margin: 0 auto; }
.hero-btn:hover { background: var(--accent-hover); transform: scale(1.03); }

/* ── Trust bar ── */
.trust-bar {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 0.5rem 0; margin-top: 3rem; padding-top: 2.5rem;
    border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--muted);
}
.trust-item { white-space: nowrap; padding: 0 0.75rem; }
.trust-sep { color: var(--border); }
@media (max-width: 600px) { .trust-sep { display: none; } .trust-item { padding: 0.2rem 0.5rem; } }

/* ── Section label ── */
.section-label {
    text-align: center; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 2.5rem;
}

/* ── Featured products ── */
.featured { max-width: 1100px; margin: 0 auto; padding: 0 0 4rem; }
.featured > .section-label { padding: 0 1.5rem; }
.feat-slider-wrap { cursor: grab; user-select: none; overscroll-behavior-x: contain; }
.feat-slider-wrap.dragging { cursor: grabbing; }
.feat-track-clip { overflow: hidden; width: 100%; padding: 0 1.5rem; box-sizing: border-box; }
.featured-grid {
    display: flex; flex-wrap: nowrap; gap: 1rem;
    margin-top: 1.5rem; will-change: transform;
}
.featured-grid.animated { transition: transform 0.5s cubic-bezier(0.77,0,0.18,1); }
.feat-card {
    flex: 0 0 calc(33.333% - 0.667rem); display: flex; flex-direction: column;
    border-radius: 18px; border: 1px solid var(--border);
    transition: box-shadow 0.2s; overflow: hidden; position: relative;
}
.feat-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
@media (max-width: 800px) { .feat-card { flex: 0 0 calc(50% - 0.5rem); } }
@media (max-width: 500px) { .feat-card { flex: 0 0 85%; } }

/* Progress bars (hero + feat) */
.hero-progress, .feat-progress {
    display: flex; justify-content: center; align-items: center;
    gap: 8px; padding: 1.5rem 2rem 2.5rem;
    width: min(480px, calc(100% - 3rem)); margin: 0 auto; box-sizing: border-box;
}
@media (max-width: 500px) { .hero-progress, .feat-progress { gap: 5px; padding: 0.5rem 1rem 2rem; } }
.hero-bar, .feat-bar {
    flex: 1; height: 3px; border-radius: 3px;
    background: rgba(255,255,255,0.15); cursor: pointer;
    position: relative; transition: height 0.2s, opacity 0.2s; touch-action: manipulation;
}
.hero-bar::before, .feat-bar::before {
    content: ''; position: absolute; top: -14px; bottom: -14px; left: 0; right: 0;
}
.hero-bar:hover, .feat-bar:hover { height: 5px; }
.hero-bar.active, .feat-bar.active { height: 4px; }
.hero-bar::after, .feat-bar::after {
    content: ''; position: absolute; left: 0; top: 0;
    height: 100%; width: 0%; background: var(--text); border-radius: 3px;
}
.hero-bar.active::after, .feat-bar.active::after { animation: heroFill 7s linear forwards; }
.feat-bar.active::after { animation-duration: 5s; }
.hero-bar.done::after, .feat-bar.done::after { width: 100%; }
[data-theme="light"] .hero-bar,
[data-theme="light"] .feat-bar { background: rgba(0,0,0,0.12); }

/* Feat-card color themes */
.feat-card.c-neo { background: linear-gradient(160deg, #1c1c2e 0%, #14142a 100%); }
.feat-card.c-air { background: linear-gradient(160deg, #0c2340 0%, #0a1e38 100%); }
.feat-card.c-pro { background: linear-gradient(160deg, #1a0828 0%, #120520 100%); }
.feat-card.c-xdr { background: linear-gradient(160deg, #111 0%, #0a0a0a 100%); }
.feat-card.c-ipad  { background: linear-gradient(160deg, #0a2a40 0%, #081e30 100%); }
.feat-card.c-17e      { background: linear-gradient(160deg, #2a0a1e 0%, #1e0814 100%); }
.feat-card.c-i17      { background: linear-gradient(160deg, #001a33 0%, #001020 100%); }
.feat-card.c-i17pro   { background: linear-gradient(160deg, #1a1200 0%, #100c00 100%); }
.feat-card.c-i17promax{ background: linear-gradient(160deg, #0a001a 0%, #060010 100%); }

.feat-img-wrap {
    width: 100%; aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    padding: 1.2rem 1rem 0.5rem;
}
.feat-img-wrap img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}
.feat-card:hover .feat-img-wrap img { transform: scale(1.04) translateY(-3px); }
.feat-body {
    padding: 0.8rem 1.4rem 1.4rem; display: flex;
    flex-direction: column; flex: 1; justify-content: space-between;
}
.feat-eyebrow {
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem;
}
.feat-name {
    font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
    color: var(--text); margin-bottom: 0.3rem; line-height: 1.2;
}
.feat-sub { font-size: 0.77rem; color: var(--muted); line-height: 1.45; margin-bottom: 1rem; }
.feat-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.82rem; font-weight: 500; color: var(--accent); transition: gap 0.15s;
}
.feat-card:hover .feat-link { gap: 0.55rem; }

/* ── Products section ── */
.products { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 5rem; }
.cat-block {
    border-top: 1px solid var(--border); padding: 2.5rem 0 2rem;
    display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start;
}
@media (max-width: 640px) { .cat-block { grid-template-columns: 1fr; gap: 1rem; } }
.cat-title { font-size: 1.05rem; font-weight: 600; }
.cat-title a {
    display: flex; align-items: center; gap: 0.4rem;
    color: var(--text); transition: color 0.15s;
}
.cat-title a:hover { color: var(--accent); }
.cat-title .arrow { font-size: 0.85rem; color: var(--accent); transition: transform 0.15s; }
.cat-title a:hover .arrow { transform: translateX(3px); }
.cat-links { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.cat-links a {
    font-size: 0.82rem; color: var(--muted); border: 1px solid var(--border);
    border-radius: 980px; padding: 0.35rem 0.9rem;
    transition: color 0.15s, border-color 0.15s, background 0.15s; white-space: nowrap;
}
.cat-links a:hover { color: var(--text); border-color: #555; background: var(--surface); }

/* ── Special offers strip ── */
.special-strip {
    background: var(--surface); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem;
}
.special-inner { max-width: 1100px; margin: 0 auto; }
.special-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem; margin-top: 1.5rem;
}
.special-card {
    display: block; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.1rem 1.2rem; font-size: 0.85rem; color: var(--muted);
    transition: color 0.15s, border-color 0.15s, transform 0.15s; text-align: center;
}
.special-card:hover { color: var(--text); border-color: #555; transform: translateY(-2px); }
.special-card strong { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 0.2rem; }
.badge {
    display: inline-block; background: var(--red); color: #fff;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.15rem 0.45rem; border-radius: 4px; margin-bottom: 0.4rem;
}
.special-card-img {
    width: 80px; height: 60px; object-fit: contain;
    margin: 0 auto 0.6rem; display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
