/* Team Tech Global: homepage styles */
:root {
  --blue: #0b6bff;
  --blue-600: #0a5ce0;
  --navy: #0b1f4b;
  --navy-900: #071430;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --orange: #ff6a13;
  --green: #16a34a;
  --wa: #25d366;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Poppins", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; font-size: 14px; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.btn .i { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { background: #fff; color: var(--ink); border-color: #cbd5e1; font-weight: 500; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Image placeholders ---------- */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: repeating-linear-gradient(135deg, #eef2f7 0 12px, #e6ebf2 12px 24px);
  border: 1px dashed #b8c3d4; border-radius: 6px; color: #7b8aa3; font-size: 13px; font-weight: 500; }
.ph .i { width: 30px; height: 30px; stroke-width: 1.5; opacity: .8; }
.ph small { display: block; font-size: 11px; font-weight: 400; opacity: .85; }
.ph-dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,.02) 12px 24px), #0d1a33;
  border-color: rgba(148, 178, 230, .35); color: #9fb4d6; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand img { height: 64px; width: auto; }
.search { flex: 1; max-width: 560px; display: flex; border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font: inherit; font-size: 14px; color: var(--ink); background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,107,255,.15); }
.search button { border: 0; background: var(--blue); color: #fff; width: 48px; display: grid; place-items: center; }
.search button:hover { background: var(--blue-600); }
.contacts { display: flex; gap: 28px; margin-left: auto; }
.contact { display: flex; align-items: center; gap: 10px; }
.contact small { display: block; font-size: 12px; color: var(--muted); }
.contact strong { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.contact-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); border: 1.5px solid var(--blue); }
.contact-ic.wa { color: #fff; background: var(--wa); border-color: var(--wa); }
.contact:hover strong { color: var(--blue); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 8px; color: var(--ink); }

.mainnav { background: var(--navy); color: #e2e8f0; }
.mainnav-inner { display: flex; align-items: center; justify-content: space-between; }
.menu { display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a { display: flex; align-items: center; gap: 4px; padding: 15px 12px; font-size: 14px; font-weight: 500; color: #fff; }
.menu > li > a:hover, .menu > li:focus-within > a { background: rgba(255,255,255,.08); }
.chev { width: 14px; height: 14px; opacity: .8; }
.dd { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 12px 30px rgba(2,8,23,.18); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.has-dd:hover .dd, .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.dd a { display: block; padding: 8px 18px; font-size: 14px; color: var(--text); }
.dd a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-account { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; }
.nav-cart { position: relative; color: #fff; display: flex; padding: 4px; }
.nav-cart .i { width: 24px; height: 24px; }
.badge { position: absolute; top: -4px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--navy); }
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #e2e8f0; overflow: hidden; background: #050a16; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4,9,20,.96) 0%, rgba(4,9,20,.88) 30%, rgba(4,9,20,.45) 52%, rgba(4,9,20,0) 70%),
              linear-gradient(0deg, rgba(4,9,20,.92) 0%, rgba(4,9,20,.55) 22%, rgba(4,9,20,0) 45%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 560px); align-items: center; min-height: clamp(380px, 34vw, 500px); padding-top: 48px; padding-bottom: 36px; }
.hero-copy { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s, transform .5s, visibility .5s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero h1, .hero .h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; color: #fff; letter-spacing: -.01em; }
.hero h1 span, .hero .h1 span { display: block; color: var(--blue); }
.hero p { font-size: clamp(16px, 1.5vw, 19px); color: #dbe4f3; margin: 18px 0 28px; max-width: 520px; }
.hero-features { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0 12px; }
.hero-features li { display: flex; align-items: center; gap: 14px; padding: 0 22px; font-size: 14px; color: #e2e8f0; line-height: 1.35; }
.hero-features li + li { border-left: 1px solid rgba(255,255,255,.14); }
.hero-features li:first-child { padding-left: 0; }
.hero-features .i { width: 30px; height: 30px; stroke-width: 1.6; color: #fff; }
.dots { display: flex; justify-content: center; gap: 8px; padding: 6px 0 18px; }
.dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.3); transition: width .2s, background .2s; }
.dots button.is-active { background: var(--blue); width: 18px; border-radius: 4px; }

/* ---------- Brands ---------- */
.brands { padding: 26px 0; border-bottom: 1px solid var(--line); }
/* Logos share one 360x140 canvas, pre-balanced for optical size, so they scale together. */
.brand-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 14px; align-items: center; }
.brand-logo { display: flex; align-items: center; justify-content: center; }
.brand-logo img { width: 100%; max-width: 150px; height: auto; transition: transform .2s; }
.brand-logo:hover img { transform: scale(1.06); }
.brand-logo.is-clone { display: none; }
@keyframes brand-marquee { to { transform: translateX(-50%); } }

/* ---------- Category tiles ---------- */
.cats { padding: 22px 0 18px; }
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; transition: transform .25s ease; }
.cat:hover img { transform: scale(1.05); }
.cat span { font-size: 14px; font-weight: 600; color: var(--ink); }
.cat:hover { border-color: #b6cdfb; box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- Promo banners ---------- */
.promos { padding: 0 0 12px; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 30px 28px; border-radius: 10px; overflow: hidden; color: #dbe4f3; min-height: 230px; }
.promo-a { background: radial-gradient(400px 260px at 85% 50%, rgba(168,85,247,.28), transparent 70%), linear-gradient(120deg, #0a1430, #101a3d); }
.promo-b { background: radial-gradient(400px 260px at 85% 40%, rgba(11,107,255,.30), transparent 70%), linear-gradient(120deg, #0a1832, #12284f); }
.promo h2 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; color: #fff; }
.promo p { margin: 12px 0 20px; font-size: 14.5px; }
.promo-media { aspect-ratio: 1; width: 100%; max-height: 190px; justify-self: end; }
/* Photo banner cards: both banners are complete artworks (icon row / logo row baked in), so the image is
   shown whole with the copy in its own panel, never on top. Both images share one 2.1:1 box so cards match. */
.promo-photo { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; min-height: 0; }
.promo-bg { display: block; flex: none; width: 100%; height: auto; aspect-ratio: 2.1; object-fit: cover; }
.promo-photo .promo-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 26px 24px; }
.promo-photo h2 { font-size: clamp(20px, 1.6vw, 23px); }
.promo-photo p { margin: 8px 0 18px; font-size: 14px; line-height: 1.5; color: #dbe4f3; }
.promo-photo .btn { margin-top: auto; }

/* ---------- Sections ---------- */
.section { padding: 34px 0 10px; }
.section-tight { padding-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: 24px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 14px; font-weight: 500; white-space: nowrap; }
.link-more .i { width: 16px; height: 16px; }
.link-more:hover { text-decoration: underline; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.product { position: relative; display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .15s, border-color .15s; }
.product:hover { box-shadow: var(--shadow); border-color: #cfdcf3; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; font-weight: 600; color: #fff; padding: 3px 8px; border-radius: 4px; }
.tag-hot { background: var(--orange); }
.tag-new { background: var(--green); }
.product-media { aspect-ratio: 1; width: 100%; height: auto; margin-bottom: 12px; object-fit: contain; transition: transform .25s ease; }
img.product-media { display: block; }
.product:hover img.product-media { transform: scale(1.04); }
.product h3 { font-size: 14px; font-weight: 700; line-height: 1.3; min-height: 2.6em; }
.specs { margin: 6px 0 10px; font-size: 12px; color: var(--muted); line-height: 1.45; min-height: 2.9em; }
.price { margin: auto 0 12px; font-size: 20px; font-weight: 700; color: var(--ink); }
.price small { font-size: 14px; font-weight: 700; }
.product .btn { padding: 9px 12px; font-size: 13px; }
.product .btn + .btn { margin-top: 8px; }

/* ---------- Popular categories ---------- */
.pop-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pop { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.pop .ph { border: 0; border-radius: 0; aspect-ratio: 16 / 10; }
/* Scene photos are 3:2 with logos near the top edge, so the box matches them exactly (no crop) */
.pop-media { aspect-ratio: 3 / 2; overflow: hidden; background: #0d1a33; }
.pop-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pop:hover .pop-media img { transform: scale(1.05); }
.pop > span { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pop > span .i { width: 16px; height: 16px; color: var(--blue); transition: transform .15s; }
.pop:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pop:hover > span .i { transform: translateX(3px); }

/* ---------- Why choose ---------- */
.why { margin-top: 30px; background: linear-gradient(90deg, var(--navy-900), var(--navy)); color: #cbd5e1; }
.why-grid { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 24px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.why h2 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; color: #fff; }
.why-item { display: flex; align-items: center; gap: 14px; }
.why-item .i { width: 36px; height: 36px; stroke-width: 1.5; color: #fff; }
.why-item strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.why-item span { display: block; font-size: 13px; color: #b9c6dc; }

/* ---------- Footer ---------- */
.site-footer { background: #050d22; color: #94a3b8; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; background: #fff; border-radius: 6px; padding: 6px 10px; }
.site-footer p { margin: 0; max-width: 340px; }
.site-footer h3 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .i { width: 16px; height: 16px; color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14px; box-shadow: 0 10px 30px rgba(2,8,23,.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .menu > li > a { padding: 15px 9px; font-size: 13.5px; }
  .contacts { gap: 18px; }
}
@media (max-width: 1180px) {
  .contacts .contact:nth-child(2) { display: none; }
  .brand-row { grid-template-columns: repeat(5, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid, .pop-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-features { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .hero-features li:nth-child(4) { border-left: 0; padding-left: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why h2 { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .mainnav { display: none; }
  .mainnav.open { display: block; max-height: calc(100vh - 80px); overflow-y: auto; }
  .mainnav-inner { flex-direction: column; align-items: stretch; padding: 0; }
  .menu { flex-direction: column; }
  .menu > li > a { padding: 14px 24px; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.06); }
  .dd { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: rgba(0,0,0,.18); padding: 0; display: none; }
  .has-dd.open .dd { display: block; }
  .has-dd:hover .dd { display: none; }
  .has-dd.open:hover .dd { display: block; }
  .dd a { color: #cbd5e1; padding: 10px 40px; }
  .dd a:hover { background: transparent; color: #fff; }
  .has-dd.open .chev { transform: rotate(180deg); }
  .nav-actions { padding: 14px 24px; justify-content: space-between; }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 12px 16px; padding-top: 10px; padding-bottom: 12px; min-height: 0; }
  .brand img { height: 46px; }
  .contacts { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 36px; min-height: 0; }
  .hero-bg { position: static; display: block; height: auto; aspect-ratio: 16 / 9; object-position: 82% center;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero::before { display: none; }
  .hero-grid { padding-top: 4px; margin-top: -24px; }
  .promo-photo .promo-copy { padding: 16px 18px 20px; }
  .promo-photo h2 { font-size: 19px; }
  .promo-photo p { font-size: 13px; margin: 6px 0 14px; }
}
@media (max-width: 767px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo-photo .promo-copy { padding: 18px 22px 24px; }
}
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  /* Phones: one slow looping strip keeps every logo ~120px wide instead of shrinking 5 per row */
  .brands { padding: 18px 0; }
  .brands .container { padding-left: 0; padding-right: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .brand-row { display: flex; width: max-content; gap: 0; animation: brand-marquee 30s linear infinite; }
  .brand-row:hover, .brand-row:focus-within { animation-play-state: paused; }
  .brand-logo, .brand-logo.is-clone { display: flex; flex: none; width: 124px; padding: 0 8px; }
  .cat-grid, .product-grid, .pop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-features { grid-template-columns: 1fr 1fr; }
  .hero-features li { padding: 0 !important; border-left: 0 !important; font-size: 13px; gap: 10px; }
  .hero-features .i { width: 24px; height: 24px; }
  .promo { grid-template-columns: 1fr; padding: 24px 20px; }
  .promo-media { justify-self: stretch; aspect-ratio: 16 / 9; max-height: none; }
  /* Phones: banner on top, copy below */
  .promo-photo { display: flex; flex-direction: column; padding: 0; }
  .promo-photo .promo-bg { width: 100%; }
  .promo-photo .promo-copy { padding: 18px 20px 24px; }
  .section-head h2 { font-size: 20px; }
  .product { padding: 10px; }
  .price { font-size: 17px; }
  .why-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .brands .container { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-left: 16px; padding-right: 16px; }
  .brand-logo.is-clone { display: none; }
}
