/* ===================== */
/* THEME TOKENS & RESET  */
/* ===================== */
:root{
  --bg: #f4f5f7;
  --text: #111827;
  --muted: #4b5563;
  --panel: #ffffff;
  --border: #e5e7eb;
  --accent: #753ef5; 
  --accent-ink: #1f2937;
}

body[data-theme="dark"]{
  --bg: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --panel: #121826;
  --border: #1f2937;
  --accent: #753ef5;
  --accent-ink: #111827;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}


/* ===================== */
/* THEME TOGGLE          */
/* ===================== */
.theme-icon{
  position: fixed;
  top: 14px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  z-index: 1000;
}

/* ===================== */
/* HEADER / NAVBAR       */
/* ===================== */
.site-header{
  position: sticky;       
  top: 0;
  z-index: 900;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
#header-img{
  width: 34px; height: 34px;
  display: block;
}
.brand-name{ letter-spacing: .2px; }

#nav-bar{
  display: inline-flex;
  gap: 22px;
}
#nav-bar .nav-link{
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
#nav-bar .nav-link:hover,
#nav-bar .nav-link:focus-visible{
  border-color: var(--accent);
  outline: none;
}

.header-spacer{ height: 1px; }

/* ===================== */
/* HERO                  */
/* ===================== */
.hero{
  max-width: 900px;
  margin: 28px auto 8px;
  padding: 0 16px;
  text-align: center;
}
.hero-title{
  margin: 10px 0 14px;
  font-size: 1.25rem;
  font-weight: 600;
}
.hero-form{
  display: inline-flex;          
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-form input[type="email"]{
  padding: 10px 12px;
  min-width: 260px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
}
.hero-form input[type="submit"]{
  background: var(--accent);
  color: #ffffff; /* testo bianco */
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}
.hero-form input[type="submit"]:hover{
  filter: brightness(1.30);
}

/* accessibilità solo schermo */
.sr-only{
  position:absolute;
  left:-9999px;
  width:1px;height:1px;overflow:hidden;
}

/* ===================== */
/* FEATURES              */
/* ===================== */
.features{
  max-width: 900px;
  margin: 12px auto 26px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.feature{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}
.feature .icon{
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 6px;
}
.feature h3{
  margin: 0 0 4px;
  font-size: 1rem;
}
.feature p{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* ===================== */
/* VIDEO SECTION         */
/* ===================== */
.how{
  max-width: 900px;
  margin: 10px auto 30px;
  padding: 0 16px;
}
.video-wrap{
  display: flex;              
  justify-content: center;
}
#video{
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #000;
}

/* ===================== */
/* PRICING CARDS         */
/* ===================== */
.pricing{
  max-width: 1100px;
  margin: 10px auto 40px;
  padding: 0 16px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-head{
  background: #e5e7eb;
  color: #111827;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  letter-spacing: .3px;
}
body[data-theme="dark"] .card-head{
  background: #1f2937;
  color: #e5e7eb;
}

.card-body{
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.price{
  font-size: 1.4rem;
  font-weight: 800;
}
.specs{
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  color: var(--muted);
  text-align: center;
}
.specs li{ margin: 6px 0; }

.btn{
  background: var(--accent);
  color: #ffffff; 
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}
.btn:hover{
  filter: brightness(1.30);
}

/* ===================== */
/* FOOTER (match header) */
/* ===================== */
.site-footer{
  background: var(--panel);             
  border-top: 1px solid var(--border); 
}

.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;

  /* layout come l’header */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links{
  display: inline-flex;
  gap: 18px;
}

.footer-links a{
  color: var(--text);                  
  text-decoration: none;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.footer-links a:hover,
.footer-links a:focus-visible{
  border-color: var(--accent);     
  outline: none;
}

.copy{
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}


@media (max-width: 960px){
  .footer-inner{
    flex-direction: column;
    align-items: flex-end;             
    gap: 8px;
  }
}


/* ===================== */
/* RESPONSIVE (MediaQuery) */
/* ===================== */
@media (max-width: 960px){
  #nav-bar{ gap: 14px; }

  .hero-title{ font-size: 1.1rem; }
  .features{ gap: 16px; }
  .pricing{
    grid-template-columns: 1fr; 
    gap: 12px;
  }
}
