:root{
  --blue-dark:#000C29;
  --blue-main:#117DBC;
  --blue-light:#3F91C6;
  --blue-deep:#093E70;
  --bg:#f5f6f8;
  --white:#fff;
  --radius:18px;
  --shadow:0 15px 35px rgba(0,0,0,.08);
  color-scheme: light dark;
}

/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Segoe UI",sans-serif;
}

body{
  background:var(--bg);
  color:#111;
  min-height:100vh;
}

/* ================= TOP BANNER ================= */
.top-banner{
  background:linear-gradient(90deg,var(--blue-light),var(--blue-main));
  color:#fff;
  text-align:center;
  padding:10px;
  font-size:14px;
}

/* ================= HEADER ================= */
.header{
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  position:sticky;
  top:0;
  z-index:1000;
}

.logo{
  font-weight:700;
  font-size:18px;
  color:var(--blue-dark);
}

.menu{
  display:flex;
  gap:22px;
}

.menu a{
  text-decoration:none;
  color:#333;
  font-size:14px;
}

.icons button,
.icons a{
  background:none;
  border:none;
  font-size:18px;
  cursor:pointer;
  margin-left:10px;
  color:#111;
}

/* ================= HERO ================= */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:90px 24px;
  color:#fff;
  align-items:center;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg,rgba(0,12,41,.85),rgba(9,62,112,.75)),
    url("../img/hero-bg.jpg");
  background-size:cover;
  background-position:center;
  z-index:0;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  backdrop-filter:blur(6px);
  z-index:1;
}

.hero-text,
.hero-visual{
  position:relative;
  z-index:2;
}

.hero-text{
  max-width:520px;
}

.badge{
  display:inline-block;
  background:rgba(255,255,255,.15);
  padding:6px 14px;
  border-radius:20px;
  font-size:13px;
  margin-bottom:14px;
}

.hero h1{
  font-size:42px;
  margin-bottom:14px;
}

.hero p{
  color:#dbe7f3;
  margin-bottom:24px;
}

.cta{
  background:#fff;
  color:var(--blue-dark);
  border:none;
  padding:14px 26px;
  border-radius:26px;
  font-weight:600;
  cursor:pointer;
}

/* ================= HERO VISUAL ================= */
.hero-visual{
  display:flex;
  justify-content:center;
}

.mock-device{
  width:260px;
  height:360px;
  border-radius:30px;
  background:linear-gradient(180deg,#fff,#e9eef5);
  box-shadow:0 40px 80px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ================= SECTIONS ================= */
section{
  padding:60px 24px;
}

section h2{
  font-size:28px;
  text-align:center;
  margin-bottom:40px;
  color:var(--blue-dark);
}

/* ================= GRIDS ================= */
.category-grid,
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

.category-card,
.product-card{
  background:#fff;
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
  transition:.3s ease;
  cursor:pointer;
}

.category-card:hover,
.product-card:hover{
  transform:translateY(-6px);
}

.product-card img{
  height:140px;
  object-fit:contain;
  margin-bottom:12px;
}

/* ================= FOOTER ================= */
.footer{
  background:linear-gradient(135deg,var(--blue-dark),var(--blue-deep));
  color:#cbd5e1;
  padding:70px 24px 20px;
  margin-top:60px;
}

.footer-container{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.2fr;
  gap:40px;
}

.footer-brand h3{
  color:#fff;
  margin-bottom:12px;
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4{
  color:#fff;
  margin-bottom:14px;
}

.footer-links a{
  display:block;
  text-decoration:none;
  color:#cbd5e1;
  font-size:14px;
  margin-bottom:10px;
}

.footer-links a:hover{
  color:#fff;
  transform:translateX(4px);
}

.footer-contact p{
  font-size:14px;
  margin-bottom:10px;
}

.footer-socials{
  display:flex;
  gap:12px;
  margin-top:14px;
}

.footer-socials a{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
}

.footer-newsletter input{
  width:100%;
  padding:10px;
  border-radius:12px;
  border:none;
  margin-bottom:10px;
}

.footer-newsletter button{
  width:100%;
  padding:10px;
  border:none;
  border-radius:12px;
  background:var(--blue-main);
  color:#fff;
  font-weight:600;
}

.footer-bottom{
  margin-top:50px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
  text-align:center;
  font-size:13px;
}

.footer-legal{
  margin-top:12px;
  display:flex;
  justify-content:center;
  gap:20px;
}

.footer-legal a{
  font-size:13px;
  color:#b6c7da;
  text-decoration:none;
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float{
  position:fixed;
  bottom:22px;
  right:22px;
  width:58px;
  height:58px;
  border-radius:50%;
  background:#25d366;
  color:#fff;
  font-size:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 15px 30px rgba(0,0,0,.25);
  z-index:9999;
  text-decoration:none;
}

/* ================= DARK MODE ================= */
@media (prefers-color-scheme: dark){
  body{
    background:#0b1220;
    color:#e5e7eb;
  }

  .header,
  .category-card,
  .product-card{
    background:#111827;
    color:#e5e7eb;
  }

  section h2,
  .logo{
    color:#fff;
  }
}

/* ================= MOBILE ================= */
@media(max-width:768px){
  .menu{display:none;}
  .footer-container{grid-template-columns:1fr;}
  .hero{grid-template-columns:1.2fr .8fr;padding:40px 16px;}
}
