:root {
    --bg: #0a0e0d;
    --bg-soft: #0e1413;
    --surface: #121a18;
    --surface-2: #16211f;
    --border: #1f2c29;
    --border-hi: #2b3d39;
    --accent: #13eaba;
    --accent-dim: rgba(19, 234, 186, 0.12);
    --accent-glow: rgba(19, 234, 186, 0.28);
    --text: #ffffff;
    --muted: #828686;
    --radius: 14px;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 13, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.02em;
}
.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #0aa886);
    color: #04211a;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 0 18px var(--accent-glow);
}
.nav-links {
    display: flex;
    gap: 26px;
    font-size: 14.5px;
    color: var(--muted);
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    padding: 10px 18px;
    border: 1px solid var(--border-hi);
    background: var(--surface);
    color: var(--text);
    transition: all 0.18s ease;
}
.btn:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #04211a;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-accent:hover { filter: brightness(1.08); box-shadow: 0 0 28px var(--accent-glow); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 12px; }

.cart-btn { position: relative; }
.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--accent);
    color: #04211a;
    font-size: 11px;
    font-weight: 800;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}
.cart-count.hidden { display: none; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 110px 0 90px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto;
    height: 130%;
    background:
        radial-gradient(ellipse 55% 45% at 50% 0%, rgba(19, 234, 186, 0.14), transparent 65%),
        radial-gradient(ellipse 30% 35% at 18% 25%, rgba(19, 234, 186, 0.06), transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(19, 234, 186, 0.3);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 .glow {
    color: var(--accent);
    text-shadow: 0 0 34px var(--accent-glow);
}
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 70px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.section-link { color: var(--accent); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.section-link:hover { text-shadow: 0 0 14px var(--accent-glow); }

/* ---------- script cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 0 22px var(--accent-glow);
}
.card-banner { aspect-ratio: 16 / 9; background: var(--surface-2); position: relative; }
.card-banner img { width: 100%; height: 100%; object-fit: cover; }
.card-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #04211a;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
}
.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(19, 234, 186, 0.25);
    padding: 3px 9px;
    border-radius: 6px;
}
.badge.grey { color: var(--muted); background: rgba(130, 134, 134, 0.1); border-color: var(--border-hi); }
.card-title { font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; }
.card-desc {
    color: var(--muted);
    font-size: 13.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.price { font-size: 19px; font-weight: 800; color: var(--accent); }
.price .was { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-right: 8px; }
.card-add {
    background: var(--surface-2);
    border: 1px solid var(--border-hi);
    color: var(--text);
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}
.card-add:hover { background: var(--accent); border-color: var(--accent); color: #04211a; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.pill {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.15s ease;
}
.pill:hover { color: var(--text); border-color: var(--border-hi); }
.pill.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 14px rgba(19, 234, 186, 0.15);
}
.search {
    margin-left: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    padding: 9px 14px;
    width: 230px;
    outline: none;
    transition: border-color 0.15s ease;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 14px rgba(19, 234, 186, 0.12); }
.search::placeholder { color: var(--muted); }

/* ---------- value props ---------- */
.props-strip { padding: 54px 0; }
.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 36px 44px; }
.prop { display: flex; align-items: flex-start; gap: 17px; }
.prop-icon { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; margin-top: 2px; }
.prop-icon svg { width: 40px; height: 40px; stroke: var(--accent); stroke-width: 1.5; }
.prop h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.prop p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); gap: 18px; justify-content: center; }
.quote {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.quote p { font-size: 14.5px; color: #d8dada; margin-bottom: 16px; }
.quote-author { font-size: 13.5px; font-weight: 700; }
.quote-server { font-size: 12.5px; color: var(--muted); }
.quote-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #8c9eff;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
}
.quote-source svg { width: 14px; height: 14px; }
.stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border-hi);
    border-radius: 18px;
    padding: 54px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 90% at 50% -20%, rgba(19, 234, 186, 0.12), transparent 70%);
    pointer-events: none;
}
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; position: relative; }
.cta-band p { color: var(--muted); margin-bottom: 26px; position: relative; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 50px 0 34px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}
.footer-bottom .tebex { color: var(--accent); font-weight: 600; }

/* ---------- cart drawer ---------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 7, 0.65);
    backdrop-filter: blur(3px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 92vw);
    background: var(--bg-soft);
    border-left: 1px solid var(--border-hi);
    z-index: 100;
    transform: translateX(105%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 17px;
}
.drawer-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    padding: 4px;
}
.drawer-close:hover { color: var(--text); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 60px; font-size: 14.5px; }
.cart-item {
    display: flex;
    gap: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    align-items: center;
}
.cart-item img { width: 74px; height: 46px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-info .p { color: var(--accent); font-size: 13.5px; font-weight: 700; }
.cart-remove { background: none; border: none; color: var(--muted); font-size: 17px; padding: 4px; }
.cart-remove:hover { color: #ff6b6b; }
.drawer-foot { border-top: 1px solid var(--border); padding: 20px 22px; }
.drawer-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.drawer-foot .btn { width: 100%; }
.drawer-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ---------- product modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--bg-soft);
    border: 1px solid var(--border-hi);
    border-radius: 18px;
    width: min(680px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    transform: translateY(14px);
    transition: transform 0.2s ease;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.modal.open .modal-box { transform: translateY(0); }
.modal-banner { aspect-ratio: 16 / 7; background: var(--surface-2); position: relative; }
.modal-banner img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(10, 14, 13, 0.75);
    border: 1px solid var(--border-hi);
    color: var(--text);
    font-size: 17px;
}
.modal-body { padding: 26px 28px 28px; }
.modal-body h2 { font-size: 24px; font-weight: 800; margin: 10px 0 4px; }
.modal-desc { color: #c7cbca; font-size: 14.5px; margin: 14px 0 22px; }
.modal-desc ul { padding-left: 20px; }
.modal-desc a { color: var(--accent); }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.modal-foot .price { font-size: 26px; }
.modal-actions { display: flex; gap: 10px; }

/* ---------- toast ---------- */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%, 16px);
    background: var(--surface-2);
    border: 1px solid var(--accent);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 12px;
    box-shadow: 0 0 24px var(--accent-glow);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14.5px; }

@media (max-width: 720px) {
    .nav-links { display: none; }
    .hero { padding: 70px 0 60px; }
    .search { width: 100%; margin-left: 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
}
