:root {
  --bg: #070b17;
  --bg-2: #0a101f;
  --surface: #0e1628;
  --card: #111a2e;
  --border: #1c2740;
  --text: #e8eefc;
  --muted: #94a3c4;
  --cyan: #00e0ff;
  --blue: #2f7bff;
  --green: #22c55e;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #00e0ff, #2f7bff);
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { width: min(1160px, 92%); margin: 0 auto; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #041018; box-shadow: 0 8px 24px rgba(0, 224, 255, .25); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0, 224, 255, .4); }
.btn-wa { background: #1ebe5d; color: #fff; box-shadow: 0 8px 24px rgba(30, 190, 93, .3); }
.btn-wa:hover { background: #17a350; box-shadow: 0 12px 32px rgba(30, 190, 93, .45); }
.btn-ghost { background: transparent; color: var(--cyan); border: 1px solid rgba(0, 224, 255, .4); }
.btn-ghost:hover { background: rgba(0, 224, 255, .1); border-color: var(--cyan); }
.btn-danger { background: rgba(239, 68, 68, .12); color: #f87171; border: 1px solid rgba(239, 68, 68, .35); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(7, 11, 23, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 39, 64, .6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand-name::first-letter { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active-link { color: var(--cyan); }
.nav-links .nav-cta { color: #fff; margin-left: 6px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 23, .96) 0%, rgba(7, 11, 23, .88) 38%, rgba(7, 11, 23, .45) 62%, rgba(7, 11, 23, .08) 100%),
    url('/img/hero-phone.jpg') center 30% / cover no-repeat;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 85% -10%, rgba(0, 224, 255, .18), transparent 60%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47,123,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,123,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-tag {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: rgba(0, 224, 255, .1); border: 1px solid rgba(0, 224, 255, .3);
  color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: .4px;
  margin-bottom: 20px;
}
.hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(34px, 5vw, 58px); line-height: 1.12; font-weight: 800; margin-bottom: 20px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 12px;
}
.section-title { font-family: 'Sora', sans-serif; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 16px; }

/* ---------- Shop page ---------- */
.shop-hero {
  padding: 140px 0 40px;
  background:
    radial-gradient(800px 380px at 70% -20%, rgba(47, 123, 255, .22), transparent 60%),
    radial-gradient(600px 300px at 10% 120%, rgba(0, 224, 255, .1), transparent 60%);
  text-align: center;
}
.shop-title { font-family: 'Sora', sans-serif; font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; margin-bottom: 12px; }
.shop-sub { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 auto; }
.shop-section { padding-top: 30px; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(0, 224, 255, .5); box-shadow: var(--shadow); }
.service-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(17, 26, 46, .8); border: 1px solid var(--border);
  margin-bottom: 18px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 224, 255, .08);
}
.service-icon img { width: 52px; height: 52px; object-fit: contain; }
.service-card h3 { font-family: 'Sora', sans-serif; font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Products ---------- */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 8px 18px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s;
}
.pill:hover { color: var(--text); border-color: rgba(0,224,255,.4); }
.pill.active { background: var(--grad); color: #041018; border-color: transparent; }
.search-box input {
  width: 260px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: 14px; outline: none; transition: border-color .2s;
}
.search-box input:focus { border-color: var(--cyan); }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(0, 224, 255, .5); box-shadow: var(--shadow); }
.product-img-wrap { position: relative; aspect-ratio: 1 / 1; background: #0c1324; overflow: hidden; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 100px;
  background: var(--grad); color: #041018; font-size: 12px; font-weight: 800;
}
.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.product-cat { font-size: 12px; font-weight: 600; color: var(--cyan); text-transform: uppercase; letter-spacing: .6px; }
.stock { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.stock.ok { background: rgba(34, 197, 94, .12); color: #4ade80; }
.stock.low { background: rgba(250, 204, 21, .12); color: #facc15; }
.stock.out { background: rgba(239, 68, 68, .12); color: #f87171; }
.product-name { font-family: 'Sora', sans-serif; font-size: 15.5px; font-weight: 700; margin-bottom: 2px; }
.product-brand { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.product-price { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 17px; color: var(--cyan); }
.product-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.empty-catalog { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.about-card-glow {
  position: absolute; width: 300px; height: 300px; border-radius: 40px;
  background: linear-gradient(135deg, rgba(0,224,255,.25), rgba(47,123,255,.25));
  filter: blur(60px);
}
.about-emoji {
  position: relative; width: 260px; height: 260px; border-radius: 36px;
  background: var(--card); border: 1px solid var(--border); display: grid; place-items: center;
  font-size: 90px; box-shadow: var(--shadow);
}
.about-badge {
  position: absolute; bottom: 12px; right: 6%; padding: 14px 22px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center;
}
.about-badge strong { display: block; font-family: 'Sora', sans-serif; font-size: 24px; color: var(--cyan); }
.about-badge span { font-size: 12px; color: var(--muted); }
.about-text p { color: var(--muted); margin-bottom: 20px; }
.about-list { list-style: none; margin-bottom: 28px; display: grid; gap: 10px; }
.about-list li { color: var(--text); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; transition: transform .25s, border-color .25s;
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(0, 224, 255, .5); }
.contact-icon {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(0, 224, 255, .1); border: 1px solid rgba(0, 224, 255, .25);
  display: grid; place-items: center; font-size: 24px;
}
.contact-card h3 { font-family: 'Sora', sans-serif; font-size: 17px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0 30px; background: var(--bg-2); }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.footer-text { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { color: #5b6a8c; font-size: 13px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1ebe5d; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(30, 190, 93, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: rgba(30, 190, 93, .4); z-index: -1;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 8, 17, .8); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: min(720px, 100%); max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); position: relative; animation: modalIn .25s ease;
}
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: 20px; cursor: pointer;
}
.modal-close:hover { border-color: var(--cyan); color: var(--cyan); }
.modal-grid { display: grid; grid-template-columns: 1fr 1.1fr; }
.modal-img-wrap { background: #0c1324; }
.modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-body { padding: 32px; display: flex; flex-direction: column; }
.badge {
  align-self: flex-start; padding: 5px 12px; border-radius: 100px;
  background: rgba(0, 224, 255, .1); border: 1px solid rgba(0, 224, 255, .3);
  color: var(--cyan); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 14px;
}
.modal-title { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.modal-brand { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal-price-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.modal-price { font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 800; color: var(--cyan); }
.stock-badge { font-size: 13px; }
.modal-details { color: var(--muted); font-size: 15px; margin-bottom: 24px; white-space: pre-line; }
.modal-details:empty { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(7, 11, 23, .97); padding: 18px 6%;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .3s;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(28,39,64,.4); }
  .nav-links .nav-cta { margin: 10px 0 0; justify-content: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-img-wrap img { min-height: 220px; max-height: 300px; }
}
@media (max-width: 520px) {
  .hero { padding: 120px 0 70px; }
  .hero-stats { gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .search-box input { width: 100%; }
}
