/* ========================= style.css ========================= */

:root{
  --bg:#9e9aa8;
  --panel:#d9d6d8;
  --accent:#ff6b6b;
  --text:#111;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.top{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px 28px;
}


.logo img {
  width: 65px; /* adjust as needed */
  height: auto;
  display: block;
}

.finlay3d img {
  width: 170px; /* adjust as needed */
  height: auto;
  display: block;
}


.brand h1{margin:0;font-family:Montserrat;font-size:18px}
.brand p{margin:0;color:#555;font-size:13px}

.nav{margin-left:auto;display:flex;gap:10px}

.wrap{max-width:1100px;margin:auto;padding:28px}

.hero{
  background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(0,0,0,.05));
  border-radius:20px;
  padding:32px;
  display:grid;
  grid-template-columns:1fr 200px;
  gap:28px;
}

.hero-text h2{margin:0;font-size:34px}
.hero-text span{color:var(--accent)}
.hero-text p{color:#555}

.hero-actions{display:flex;gap:12px;margin-top:14px}

.hero-mock{
  display:grid;place-items:center;
}

.cube{
  width:120px;height:120px;
  background:linear-gradient(135deg,#ff9e9e,#ff6b6b);
  border-radius:20px;
  display:grid;place-items:center;
  color:white;font-weight:800;font-size:28px;
  animation:float 4s ease-in-out infinite;
}

@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-12px)}
}

.section h3{margin-top:40px}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:18px;
}

.card{
  background:var(--panel);
  border-radius:16px;
  padding:14px;
  position:relative;
  transition:transform .25s ease, box-shadow .25s ease;
}

.card:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 14px 30px rgba(0,0,0,.2);
}

.card img{
  width:100%;height:120px;
  object-fit:cover;
  border-radius:12px;
}

.price{
  position:absolute;bottom:12px;left:12px;
  background:rgba(0,0,0,.08);
  padding:6px 10px;
  border-radius:10px;
  font-weight:700;
}

.panel{
  background:var(--panel);
  border-radius:16px;
  padding:24px;
  margin-top:40px;
}

.btn{
  background:var(--accent);
  border:none;
  padding:10px 16px;
  border-radius:12px;
  color:white;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}

.btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.25)}
.btn:active{transform:scale(.96)}

.btn.ghost{background:transparent;color:#222;border:1px solid rgba(0,0,0,.15)}

footer{text-align:center;padding:30px;color:#555}

/* ========================= MOBILE OPTIMIZATION ========================= */
@media (max-width: 768px) {
  /* Make hero stack vertically on tablets & phones */
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Scale down hero text */
  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 14px;
  }

  /* Make grid single column for very narrow screens */
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
  }

  /* Adjust card image height for mobile */
  .card img {
  width: 100%;
  height: auto;   /* keep aspect ratio */
  max-height: 150px;
  object-fit: contain;
  border-radius: 12px;
}

  /* Reduce padding inside cards */
  .card {
    padding: 10px;
  }

  /* Adjust buttons size for mobile */
  .btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  /* Optional: reduce cube size in hero if used on mobile */
  .cube {
    width: 90px;
    height: 90px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  /* Extra small phones: single column, smaller gaps */
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-actions {
  flex-direction: column;
  gap: 8px;
}
.wrap {
  padding: 16px;
}
}

@media (max-width:480px){
  .hero-actions { flex-direction: column; gap: 8px; }
}

