/* WindQI — section layouts (WindQI Design System) */

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: background var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out), padding var(--dur-3) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,11,20,0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--border-1);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-tight);
}
.nav-logo img { width: 35px; height: 35px; }
.nav-logo .g { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--fg-2);
  padding: 8px 0;
  position: relative;
  transition: color var(--dur-2) var(--ease-out);
}
.nav-links a:hover { color: var(--fg-1); }
.nav-links a.active { color: var(--accent); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; }

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--fg-1);
  border-radius: 2px;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 16px var(--pad-x) 20px;
}
.nav-links-mobile a {
  display: block;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--fg-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-1);
}
.nav-links-mobile a.active { color: var(--accent); }
.nav.menu-open .nav-links-mobile { display: flex; }
.nav.menu-open { background: rgba(5,11,20,0.94); backdrop-filter: blur(12px); border-bottom-color: var(--border-1); }

/* HERO */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}
.hero-eyebrow {
  font-size: var(--fs-sm);
  letter-spacing: var(--tr-widest);
  font-weight: 700;
  font-family: var(--font-sans);
  background: linear-gradient(90deg, #1E90FF 0%, #FFFFFF 22%, #B3ECEC 42%, #C9A6F5 62%, #7ED74F 82%, #7ED74F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}
.hero-logo-mark { width: clamp(98px, 17vw, 240px); height: auto; }
.hero-wordmark {
  font-size: clamp(56px, 10vw, 140px);
  font-weight: var(--fw-light);
  letter-spacing: var(--tr-display);
  line-height: 0.95;
}
.hero-wordmark .qi { color: var(--accent); font-weight: var(--fw-bold); }
.hero-tagline {
  font-size: clamp(32px, 5.4vw, 76px);
  font-family: var(--font-sans);
  font-weight: 700;
  background: linear-gradient(90deg, #1E90FF 0%, #FFFFFF 22%, #B3ECEC 42%, #C9A6F5 62%, #7ED74F 82%, #7ED74F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: var(--tr-display);
  line-height: 1.05;
  text-wrap: balance;
}
.hero-tagline .t1 { font-weight: 700; }
.hero-tagline .t2 { font-weight: 700; }
.hero-tagline .t3 { font-weight: 700; }
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: var(--tr-widest);
  color: var(--fg-3);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* INTRO row */
.intro {
  padding: 60px 0 100px;
}
.intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  position: relative;
}
.intro-row h2 {
  font-size: clamp(36px, 4.8vw, var(--fs-5xl));
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
}
.intro-row h2 .g { color: var(--accent); font-weight: var(--fw-regular); }
.intro-row p {
  font-size: var(--fs-md);
  color: var(--fg-2);
  line-height: var(--lh-loose);
  max-width: 44ch;
}
@media (max-width: 820px) {
  .intro-row { grid-template-columns: 1fr; gap: 24px; }
}

/* SECTION wrapper */
.section {
  padding: 100px 0;
}
.section-title {
  font-size: clamp(36px, 4.8vw, var(--fs-5xl));
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  margin-bottom: 24px;
  max-width: 16ch;
}
.section-title .g { color: var(--accent); font-weight: var(--fw-regular); }
.section-lead {
  font-size: var(--fs-md);
  color: var(--fg-2);
  line-height: var(--lh-loose);
  max-width: 78ch;
  margin-bottom: 56px;
}
.section-lead p + p { margin-top: 14px; }

/* TECNOLOGIA cards */
.tec-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  margin-bottom: 80px;
}
.tec-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border-radius: 0;
}
.tec-card .h-card { margin-bottom: auto; }
.tec-card .icon {
  width: 48px; height: 48px;
  border-radius: var(--r-2);
  background: var(--accent-tint);
  border: 1px solid var(--border-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.tec-card p {
  margin-top: 18px;
  font-size: var(--fs-sm);
  color: var(--fg-2);
  line-height: var(--lh-loose);
}
@media (max-width: 820px) {
  .tec-cards { grid-template-columns: 1fr; }
}

/* APP block */
.app-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  position: relative;
}
.app-title {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: clamp(36px, 4.8vw, var(--fs-4xl));
  font-weight: var(--fw-light);
  letter-spacing: var(--tr-display);
  margin-bottom: 24px;
}
.app-title .g { color: var(--accent); font-weight: var(--fw-regular); }
.app-title .mark { width: clamp(63px, 8.4vw, 108px); height: auto; }
.app-block p { color: var(--fg-2); font-size: var(--fs-base); line-height: var(--lh-loose); }
.app-block p + p { margin-top: 12px; }
.app-phone {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9/19;
  border-radius: 42px;
  margin-left: auto;
  background: linear-gradient(155deg, #1a1a1a, #050505);
  border: 2px solid #2a2a2a;
  box-shadow: inset 0 0 0 6px #0a0a0a, 0 30px 60px -20px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  padding: 14px;
}
.app-phone::after {
  content: "";
  position: absolute;
  top: 90px; left: -2px;
  width: 2px; height: 56px;
  background: #2a2a2a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 76px 0 #2a2a2a, 0 -110px 0 #2a2a2a;
}
.app-phone::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 18px; border-radius: var(--r-2);
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  z-index: 2;
}
.app-screen {
  position: absolute;
  inset: 14px;
  border-radius: var(--r-3);
  background: var(--bg-0);
  padding: 50px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-screen .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--r-2);
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  font-size: 11px;
}
.app-screen .row .v { color: var(--accent); font-weight: var(--fw-bold); font-family: var(--font-mono); }
.app-screen .row .lbl { color: var(--fg-2); }
.app-screen .stat-big {
  margin: 6px 0 12px;
  padding: 14px;
  border-radius: var(--r-3);
  background: var(--accent-tint);
  border: 1px solid var(--border-1);
  display: flex; flex-direction: column; gap: 4px;
}
.app-screen .stat-big .k { font-size: 10px; letter-spacing: var(--tr-widest); color: var(--accent); text-transform: uppercase; }
.app-screen .stat-big .v { font-size: 22px; font-weight: var(--fw-bold); font-family: var(--font-mono); }
.app-screen .stat-big .s { font-size: 10px; color: var(--fg-3); }
@media (max-width: 820px) {
  .app-block { grid-template-columns: 1fr; }
  .app-phone { margin: 0 auto; }
}

/* CONNESSO block */
.connect-block {
  padding: 80px 0 40px;
}
.connect-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
}
.connect-title {
  font-size: clamp(36px, 4.8vw, var(--fs-4xl));
  font-weight: var(--fw-light);
  letter-spacing: var(--tr-display);
  line-height: var(--lh-tight);
}
.connect-title .g { color: var(--accent); font-weight: var(--fw-regular); }
.connect-row p { color: var(--fg-2); font-size: var(--fs-base); line-height: var(--lh-loose); }
.connect-row p + p { margin-top: 12px; }
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-1);
}
.partner-logos img {
  height: 52px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity var(--dur-3) var(--ease-out);
}
.partner-logos img:hover { opacity: 0.9; }
@media (max-width: 820px) { .connect-row { grid-template-columns: 1fr; gap: 24px; } }

/* PIANI */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  margin-bottom: 56px;
}
.plan-card {
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  background: var(--bg-1);
  border: none;
  border-radius: 0;
}
.plan-card:hover { background: var(--bg-2); }
.plan-card .name {
  font-size: var(--fs-base);
  line-height: 1.2;
  color: var(--fg-2);
  font-weight: var(--fw-regular);
}
.plan-card .name strong { display: block; font-weight: var(--fw-bold); color: var(--fg-1); font-size: var(--fs-md); }
.plan-card .price {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  line-height: 1;
  margin-top: 4px;
  color: var(--fg-1);
}
.plan-card.basic .price { color: var(--accent); font-weight: var(--fw-bold); }
.plan-card .price small { font-size: 13px; color: var(--fg-3); font-weight: var(--fw-regular); margin-left: 4px; font-family: var(--font-sans); }
.plan-card .price-sub {
  font-size: 11px;
  color: var(--fg-3);
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.plan-card li {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.4;
  padding-left: 14px;
  position: relative;
}
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: var(--r-1);
}
.plan-pro {
  margin-top: 20px;
  padding: 32px 36px 36px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border-2);
  background: var(--bg-1);
}
.plan-pro::before { content: none; }
.plan-pro .left { display: flex; flex-direction: column; gap: 12px; }
.plan-pro .name { font-size: var(--fs-md); color: var(--fg-2); line-height: 1.2; }
.plan-pro .name strong { display: block; font-weight: var(--fw-bold); color: var(--accent); font-size: var(--fs-lg); }
.plan-pro .price { font-family: var(--font-mono); font-size: 48px; font-weight: var(--fw-regular); letter-spacing: 0; line-height: 1; color: var(--fg-1); }
.plan-pro .price small { font-size: 16px; color: var(--fg-3); font-weight: var(--fw-regular); margin-left: 6px; font-family: var(--font-sans); }
.plan-pro .price-sub { font-size: 12px; color: var(--fg-3); }
.plan-pro ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.plan-pro li {
  font-size: var(--fs-base); color: var(--fg-2);
  padding-left: 18px; position: relative;
}
.plan-pro li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; background: var(--accent); border-radius: var(--r-1);
}
.plan-cta {
  margin-top: 56px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.plan-cta h3 {
  font-size: clamp(32px, 4.4vw, var(--fs-4xl));
  font-weight: var(--fw-light);
  letter-spacing: var(--tr-display);
  line-height: var(--lh-tight);
}
.plan-cta h3 .g { color: var(--accent); font-weight: var(--fw-regular); }
@media (max-width: 980px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } .plan-pro { grid-template-columns: 1fr; } .plan-pro ul { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .plans-grid { grid-template-columns: 1fr; } }

/* PERCHE */
.perche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  margin-bottom: 56px;
}
.perche-card {
  padding: 26px 24px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-1);
  border-radius: 0;
}
.perche-card .head {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  line-height: 1.15;
  color: var(--fg-1);
}
.perche-card .head .b { font-weight: var(--fw-bold); color: var(--accent); }
.perche-card .icon-big {
  width: 48px; height: 48px;
  border-radius: var(--r-3);
  background: var(--accent-tint);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin: 4px 0 auto;
}
.perche-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.perche-card li {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.4;
  padding-left: 14px;
  position: relative;
}
.perche-card li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: var(--r-1);
  background: var(--accent);
}
.savings-block {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--border-1);
  position: relative;
}
.savings-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.savings-title {
  font-size: clamp(36px, 4.8vw, var(--fs-5xl));
  font-weight: var(--fw-light); letter-spacing: var(--tr-display); line-height: var(--lh-tight);
}
.savings-title .g { color: var(--accent); font-weight: var(--fw-regular); }
.savings-row p { color: var(--fg-2); font-size: var(--fs-base); line-height: var(--lh-loose); }
.savings-row p + p { margin-top: 10px; }
.savings-meter {
  display: flex; flex-direction: column; gap: 18px;
}
.meter {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--fg-2);
}
.meter .lbl { width: 140px; }
.meter .bar { flex: 1; height: 6px; border-radius: var(--r-1); background: var(--bg-2); overflow: hidden; position: relative; }
.meter .fill { position: absolute; inset: 0; right: auto; background: var(--accent); border-radius: var(--r-1); transition: width 1s var(--ease-out); }
.meter .pct { width: 50px; text-align: right; color: var(--fg-1); font-weight: var(--fw-medium); font-family: var(--font-mono); }
@media (max-width: 820px) {
  .perche-grid { grid-template-columns: 1fr; }
  .savings-row { grid-template-columns: 1fr; gap: 28px; }
}

/* STORIE */
.storie {
  padding: 120px 0;
}
.story-rail {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 56px;
  position: relative;
}
.story-rail::before {
  content: "";
  position: absolute;
  left: 50%; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--border-2);
}
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
}
.story.right .story-card { grid-column: 2; }
.story.left .story-card { grid-column: 1; }
.story-card {
  padding: 26px;
  position: relative;
}
.story-card .tag {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  font-weight: var(--fw-regular);
  margin-bottom: 16px;
}
.story-card .tag .b { font-weight: var(--fw-bold); color: var(--accent); }
.story-card .head {
  font-size: 24px;
  font-weight: var(--fw-regular);
  letter-spacing: var(--tr-tight);
  line-height: 1.2;
  margin-bottom: 16px;
  text-wrap: balance;
}
.story-card .body { font-size: 13.5px; color: var(--fg-2); line-height: var(--lh-loose); }
.story-img {
  width: 100%;
  max-width: 558px;
  height: 333px;
  display: block;
  object-fit: cover;
  border-radius: var(--r-3);
  border: 1px solid var(--border-1);
}
.story-card .timestamp {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: var(--fw-medium);
}
.story-dot {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint), 0 0 16px rgba(126,215,79,0.5);
}
.story.right .story-dot { top: 26px; }
.story.left .story-dot { top: 26px; }
@media (max-width: 820px) {
  .story-rail::before { left: 10px; }
  .story { grid-template-columns: 1fr; gap: 12px; padding-left: 36px; }
  .story.right .story-card, .story.left .story-card { grid-column: 1; }
  .story-dot { left: 10px; transform: translateX(-50%); top: 26px; }
}

/* FOOTER */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-1);
  position: relative;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer h4 { font-size: 10px; letter-spacing: var(--tr-widest); text-transform: uppercase; color: var(--fg-3); font-weight: var(--fw-medium); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13px; color: var(--fg-2); transition: color var(--dur-2); }
.footer ul a:hover { color: var(--fg-1); }
.footer-tag { font-size: 13px; color: var(--fg-2); line-height: var(--lh-loose); max-width: 34ch; margin-top: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-1);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
