:root {
    --bg: #07111f;
    --bg-soft: #0d1b2a;
    --panel: #111f2f;
    --panel-strong: #152841;
    --card: #101a2a;
    --card-alt: #121e32;
    --primary: #8b5cf6;
    --primary-soft: #a78bfa;
    --secondary: #22c55e;
    --text: #edf2ff;
    --muted: #a3b3c9;
    --line: rgba(255,255,255,0.08);
    --danger: #ef4444;
    --warning: #fbbf24;
    --success: #34d399;
    --shadow: 0 18px 40px rgba(8, 15, 25, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: linear-gradient(180deg, #050d19 0%, #0a1527 100%);
    color: var(--text);
}
a { color: var(--primary-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
    background: rgba(10, 18, 30, 0.9);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(12px);
}
.navbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1rem;
}
.brand {
    display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
}
.brand-badge {
    width: 38px; height: 38px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    border-radius: 12px; color: white; box-shadow: var(--shadow);
}
.nav-links {
    display: flex; align-items: center; gap: 1.2rem; list-style: none; padding: 0; margin: 0;
}
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.search-box {
    display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.02); border: 1px solid var(--line);
    border-radius: 999px; padding: 0.65rem 1rem; min-width: 310px;
}
.search-box input {
    background: transparent; border: 0; outline: none; color: var(--text); width: 100%;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; border-radius: 12px; padding: 0.9rem 1.35rem;
    font-weight: 700; cursor: pointer; transition: transform 0.2s ease, opacity 0.2s ease; text-decoration: none; color: white;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%); }
.btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.btn-success { background: linear-gradient(135deg, #10b981 0%, #22c55e 100%); }
.btn-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.btn-outline { background: transparent; border: 1px solid var(--line); }
.badge {
    display: inline-block; padding: 0.4rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
}
.badge-primary { background: rgba(139,92,246,0.15); color: #d7ccff; }
.badge-success { background: rgba(52,211,153,0.12); color: #aef3d3; }
.badge-warning { background: rgba(251,191,36,0.12); color: #fdd97e; }
.hero {
    padding: 4.2rem 0 2rem;
}
.hero-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
}
.hero-copy h1 {
    font-size: clamp(2.3rem, 4vw, 4.3rem); line-height: 1.06; margin: 0 0 1rem; letter-spacing: -0.06em;
}
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.8; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.5rem 0; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1.4rem; }
.metric strong { font-size: 1.5rem; }
.metric span { color: var(--muted); display: block; font-size: 0.88rem; }
.hero-card {
    background: linear-gradient(160deg, rgba(139,92,246,0.16), rgba(17,31,47,0.95)); border: 1px solid rgba(168,85,247,0.35); border-radius: 26px; padding: 1.4rem; box-shadow: var(--shadow);
}
.mock-window {
    background: rgba(5,12,20,0.75); border: 1px solid var(--line); border-radius: 18px; padding: 1rem;
}
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 0.9rem 0; }
.dot-group { display: flex; gap: 0.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #f87171; } .dot.yellow { background: #fbbf24; } .dot.green { background: #34d399; }
.grid-cards {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem;
}
.card {
    background: linear-gradient(180deg, rgba(20,31,48,0.9), rgba(13,20,33,0.9)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.card:hover { border-color: rgba(168, 85, 247, 0.38); }
.product-card .image-wrap { position: relative; aspect-ratio: 1.32; overflow: hidden; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-body { padding: 1rem; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.7rem; }
.category-chip { font-size: 0.72rem; color: var(--muted); }
.product-name { font-size: 1.12rem; font-weight: 700; margin: 0 0 0.6rem; }
.product-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
.price { font-size: 1.2rem; font-weight: 800; }
.price small { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-decoration: line-through; }
.section { padding: 1rem 0 3rem; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.3rem; }
.section-header h2 { font-size: clamp(1.7rem, 2vw, 2.2rem); margin: 0; }
.section-header p { color: var(--muted); margin: 0.3rem 0 0; }
.grid-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.category-item {
    background: linear-gradient(180deg, rgba(21,37,52,0.9), rgba(13,18,31,0.9)); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between;
}
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.feature-list li { display: flex; gap: 0.7rem; color: var(--muted); }
.feature-list li::before { content: '✓'; color: var(--success); font-weight: 800; }
.quote-card { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; }
.faq { display: grid; gap: 1rem; }
.faq-item { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.newsletter {
    background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(15,23,42,0.9)); border: 1px solid rgba(168,85,247,0.25); border-radius: 22px; padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.newsletter input { width: 100%; background: rgba(7,17,31,0.7); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 0.9rem 1rem; }
.footer {
    background: rgba(5,12,20,0.95); border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; gap: 1.5rem; }
.footer h4 { color: var(--text); margin-bottom: 0.8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.form-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; max-width: 620px; margin: 2.5rem auto;
}
.form-grid { display: grid; gap: 1rem; }
label { display: block; margin-bottom: 0.45rem; font-weight: 600; }
input, select, textarea {
    width: 100%; border: 1px solid var(--line); background: rgba(7,17,31,0.65); color: var(--text); padding: 0.85rem 0.95rem; border-radius: 12px; font: inherit;
}
textarea { min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.page-wrap { padding: 2rem 0 4rem; }
.page-head { margin-bottom: 1.3rem; }
.summary-box { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; }
.alert {
    border-radius: 12px; padding: 0.9rem 1rem; margin: 1rem 0; border: 1px solid transparent;
}
.alert-success { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.28); color: #c9f9e5; }
.alert-danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.28); color: #fecaca; }
.alert-warning { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.28); color: #fde68a; }
.alert-info { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.28); color: #bfdbfe; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 1px solid var(--line); padding: 1rem 0.5rem; text-align: left; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.stat-card { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
@media (max-width: 980px) {
    .hero-grid, .grid-cards, .grid-four, .category-grid, .footer-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
    .newsletter { flex-direction: column; align-items: stretch; }
    .nav-links { display: none; }
    .search-box { min-width: 0; flex: 1; }
}
@media (max-width: 640px) {
    .hero-grid, .grid-cards, .grid-four, .category-grid, .footer-grid, .form-row, .stat-grid { grid-template-columns: 1fr; }
    .navbar { flex-wrap: wrap; }
    .nav-actions { width: 100%; justify-content: space-between; }
    .search-box { width: 100%; }
}
