/* -------------------------------------------------
   Global reset & basic typography
------------------------------------------------- */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  line-height:1.6;
  background:linear-gradient(135deg,var(--grad-body-start) 0%,var(--grad-body-end) 100%);
  color:#f9fcfd;
  overflow-x:hidden;
}

/* -------------------------------------------------
   Floating language selector
------------------------------------------------- */
.language-selector{
  position:fixed;
  top:25px;
  right:25px;
  z-index:1000;
  background:rgba(255,255,255,0.15);
  backdrop-filter:blur(10px);
  border-radius:12px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,0.2);
  box-shadow:0 8px 32px rgba(0,0,0,0.1);
}

.language-selector label{
  font-size:.9rem;
  color:rgba(255,255,255,.9);
  margin-right:8px;
}

.language-selector select{
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.3);
  border-radius:8px;
  padding:6px 10px;
  color:#fff;
  font-size:.9rem;
  outline:none;
  cursor:pointer;
}

.language-selector select option{
  background:#2a2a2a;
  color:#fff;
}

/* -------------------------------------------------
   Header / hero block
------------------------------------------------- */
header{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  position:relative;
  background:linear-gradient(135deg,var(--grad-header-start) 0%,var(--grad-header-end) 100%);
  overflow:hidden;
  padding-bottom:80px;
}

header::before{
  content:'';
  position:absolute;
  inset:0;
  background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity:.3;
}

.logo{
  height:120px;
  margin-bottom:30px;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.2));
  transition:transform .3s ease;
  z-index:2;
  position:relative;
}
.logo:hover{transform:scale(1.05);}

header h1{
  font-size:clamp(2.5rem,5vw,4rem);
  font-weight:800;
  margin-bottom:1rem;
  background:linear-gradient(135deg,#f9fcfd 0%,#ffffff 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  -webkit-text-stroke:1px rgba(0,0,0,.15);
  text-shadow:none;
  z-index:2;
  position:relative;
}

header p{
  font-size:clamp(1.1rem,2.5vw,1.4rem);
  margin-bottom:40px;
  opacity:.95;
  font-weight:400;
  z-index:2;
  position:relative;
}

.main-image{
  max-width:min(400px,90%);
  height:auto;
  margin:40px auto;
  border-radius:20px;
  box-shadow:0 25px 50px rgba(0,0,0,.25),0 0 0 1px rgba(255,255,255,.1);
  transition:transform .3s ease,box-shadow .3s ease;
  z-index:2;
  position:relative;
}
.main-image:hover{
  transform:translateY(-10px) scale(1.02);
  box-shadow:0 35px 70px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.2);
}

.cta-button{
  background:linear-gradient(135deg,var(--grad-cta-btn-start) 0%,var(--grad-cta-btn-end) 100%);
  color:#fff;
  padding:16px 32px;
  font-size:1.1rem;
  font-weight:600;
  text-decoration:none;
  border-radius:12px;
  box-shadow:0 8px 25px rgba(62,58,231,.4),inset 0 1px 0 rgba(255,255,255,.2);
  transition:all .3s ease;
  position:relative;
  z-index:2;
  border:none;
  cursor:pointer;
  margin-bottom:40px;
}
.cta-button:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 35px rgba(62,58,231,.5),inset 0 1px 0 rgba(255,255,255,.3);
}

/* -------------------------------------------------
   Generic section scaffolding
------------------------------------------------- */
.section{
  padding:100px 20px;
  position:relative;
}

.section:nth-child(even){
  background:linear-gradient(135deg,var(--grad-section-even-start) 0%,var(--grad-section-even-end) 100%);
}

.section:nth-child(odd){
  background:linear-gradient(135deg,var(--grad-section-odd-start) 0%,var(--grad-section-odd-end) 100%);
}

/* Special overrides ---------------------------------------------- */
.features{
  background:linear-gradient(135deg,var(--grad-features-start) 0%,var(--grad-features-end) 100%) !important;
  color:#000;
}
.features h2{
  background:none;
  color:#000;
  -webkit-text-fill-color:#000;
  -webkit-background-clip:initial;
}
.features .card h3,
.features .card p{color:#000;opacity:.9;}

.models{
  background:linear-gradient(135deg,var(--grad-models-start) 0%,var(--grad-models-end) 100%);
}

.details{
  background:linear-gradient(135deg,var(--grad-details-start) 0%,var(--grad-details-end) 100%);
}

/* -------------------------------------------------
   Containers & grids
------------------------------------------------- */
.container{max-width:1200px;margin:0 auto;}

.section h2{
  font-size:clamp(2rem,4vw,3rem);
  font-weight:700;
  margin-bottom:60px;
  text-align:center;
  background:linear-gradient(135deg,#f9fcfd 0%,#ffffff 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.features-grid,
.model-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:30px;
  margin-top:60px;
}

/* -------------------------------------------------
   Frosted-glass “card” component
------------------------------------------------- */
.card{
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(20px);
  padding:40px 30px;
  border-radius:20px;
  box-shadow:0 20px 40px rgba(0,0,0,.1),inset 0 1px 0 rgba(255,255,255,.2),0 0 0 1px rgba(255,255,255,.1);
  text-align:center;
  transition:all .3s ease;
  border:1px solid rgba(255,255,255,.2);
  position:relative;
  overflow:hidden;
}
.card::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent);
  transition:left .5s ease;
}
.card:hover::before{left:100%;}
.card:hover{
  transform:translateY(-10px);
  box-shadow:0 30px 60px rgba(0,0,0,.15),inset 0 1px 0 rgba(255,255,255,.3),0 0 0 1px rgba(255,255,255,.2);
}

.card h3{
  font-size:1.5rem;
  font-weight:700;
  margin-bottom:15px;
  color:#f9fcfd;
}
.card p{
  font-size:1rem;
  opacity:.9;
  line-height:1.6;
}

/* -------------------------------------------------
   Specification table
------------------------------------------------- */
.spec-table{
  width:100%;
  border-collapse:collapse;
  background:rgba(255,255,255,.2);
  backdrop-filter:blur(20px);
  border-radius:12px;
  overflow:hidden;
}
.spec-table th,
.spec-table td{
  padding:16px;
  text-align:left;
  color:#000;
}
.spec-table th{
  font-weight:600;
  background:rgba(255,255,255,.15);
  -webkit-text-fill-color:#000;
}
.spec-table tr:nth-child(even) td{
  background:rgba(255,255,255,.1);
}

/* -------------------------------------------------
   CTA section (variable gradient updated by JS)
------------------------------------------------- */
.cta-section{
  background:linear-gradient(135deg,var(--grad-cta-start) 0%,var(--grad-cta-end) 100%);
  text-align:center;
  transition:background .2s linear;
}
.cta-section .cta-subtext{
  font-size:1.2rem;
  margin-bottom:25px;
  opacity:.9;
  text-align:center;
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */
footer{
  background:linear-gradient(135deg,var(--grad-footer-start) 0%,var(--grad-footer-end) 100%);
  text-align:center;
  padding:40px 20px;
  font-size:.9rem;
  color:#f9fcfd;
  border-top:1px solid rgba(249,252,253,.1);
}

/* -------------------------------------------------
   Responsive tweaks
------------------------------------------------- */
@media(max-width:768px){
  .features-grid,
  .model-grid{
    grid-template-columns:1fr;
    gap:20px;
  }
  .section{padding:60px 20px;}
  .card{padding:30px 20px;}
}

/* -------------------------------------------------
   Decorative animations
------------------------------------------------- */
@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-20px);}
}
.floating{animation:float 6s ease-in-out infinite;}

.slide-in{
  opacity:0;
  transform:translateY(40px);
  transition:opacity .6s ease-out,transform .6s ease-out;
}
.slide-in.show{
  opacity:1;
  transform:translateY(0);
}

.slide-side{
  opacity:0;
  transform:translateX(-60px);
  transition:opacity .6s ease-out,transform .6s ease-out;
}
.slide-side.show{
  opacity:1;
  transform:translateX(0);
}
