/* ==========================================================================
   Koncetta — Landing page (koncetta.it)
   Palette/font coerenti con app + guida. Stile "vetro smerigliato"
   (glassmorphism) per hero e card, ispirato a keptour.com.
   ========================================================================== */

:root {
  --ink: #16131f;
  --ink-2: #221d30;
  --ink-soft: #46414f;
  --muted: #807a8e;
  --k: #ff5a1f;
  --k-deep: #d94210;
  --k-light: #ff8a5c;
  --k-xl: #fff0e8;
  --paper: #ffffff;
  --paper-2: #f8f6fa;
  --paper-3: #f1ecfa;
  --line: #e9e4f0;
  --r: 14px;
  --r-lg: 22px;
  --r-sm: 9px;
  --mono: "JetBrains Mono", "Fira Mono", ui-monospace, monospace;
  --display: "Quicksand", system-ui, sans-serif;
  --body: "Albert Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-primary { background: var(--k); color: #fff; box-shadow: 0 8px 24px rgba(255, 90, 31, 0.28); }
.btn-primary:hover { background: var(--k-deep); box-shadow: 0 10px 28px rgba(255, 90, 31, 0.36); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-dark { background: rgba(22, 19, 31, 0.06); color: var(--ink); border-color: rgba(22, 19, 31, 0.16); }
.btn-ghost-dark:hover { background: rgba(22, 19, 31, 0.1); }
.btn-nav-accedi { background: var(--ink); color: #fff; padding: 9px 18px; font-size: 13.5px; }
.btn-nav-accedi:hover { background: var(--k-deep); }

/* ---------- glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: var(--r-lg);
}
.glass-light {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 50px rgba(22, 19, 31, 0.08);
  border-radius: var(--r-lg);
}

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; font-weight: 600;
  color: #ffcbb0; display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow-dark { color: var(--k-deep); }
.eyebrow-line { width: 28px; height: 1.5px; background: var(--k); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  transition: background 0.25s, backdrop-filter 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(22, 19, 31, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  color: #fff; text-decoration: none; display: flex; align-items: center; gap: 9px;
}
.logo-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.2); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.nav-link-guida { font-family: var(--mono); font-size: 12.5px !important; letter-spacing: 0.04em; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 10px 24px 22px;
  background: rgba(22, 19, 31, 0.96); backdrop-filter: blur(16px);
}
.nav-mobile a { padding: 12px 4px; color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav-mobile a.btn { text-align: center; margin-top: 10px; border-bottom: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background: radial-gradient(120% 90% at 15% 0%, #2a2340 0%, var(--ink) 45%, #100e17 100%);
  display: flex; align-items: center; padding: 120px 28px 80px;
}
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.net-canvas-quiet { opacity: 0.28; }
.hero-glow {
  position: absolute; top: -10%; right: -10%; width: 60%; height: 70%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.08;
  color: #fff; margin-bottom: 22px; letter-spacing: -0.01em;
}
.hero-lead { font-size: 1.08rem; line-height: 1.7; color: rgba(255, 255, 255, 0.72); max-width: 46ch; margin-bottom: 34px; }
.hero-lead em { color: #ffcbb0; font-style: normal; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero demo card ---------- */
.hero-demo { padding: 22px; }
.demo-topbar {
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.04em;
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 8px rgba(255, 90, 31, 0.7); }
.demo-field {
  background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm); padding: 14px 16px; min-height: 52px;
  font-size: 14.5px; color: #fff; margin-bottom: 14px; line-height: 1.5;
}
.demo-caret {
  display: inline-block; width: 2px; height: 15px; background: var(--k);
  vertical-align: middle; margin-right: 1px; animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-btn { width: 100%; justify-content: center; }
.demo-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.demo-result-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.demo-badge {
  width: 22px; height: 22px; border-radius: 50%; background: var(--k); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.demo-result-row strong { color: #fff; font-size: 14.5px; flex: 1; }
.demo-pct { font-family: var(--mono); color: #ffcbb0; font-weight: 700; font-size: 13.5px; }
.demo-bar { height: 5px; background: rgba(255, 255, 255, 0.12); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.demo-bar-fill { height: 100%; background: linear-gradient(90deg, var(--k-deep), var(--k)); border-radius: 3px; width: 0%; transition: width 0.7s var(--ease); }
.demo-motiv { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.68); }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-hint span {
  display: block; width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 12px; position: relative;
}
.scroll-hint span::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; background: #fff;
  border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%, 100% { opacity: 1; top: 7px; } 50% { opacity: 0.3; top: 16px; } }

/* ---------- sections (light) ---------- */
.section { padding: 110px 28px; position: relative; }
.section-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--ink); line-height: 1.2; max-width: 22ch; margin-bottom: 56px; }
.section-title-light { color: #fff; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { padding: 32px 28px; }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--k-deep); margin-bottom: 18px; }
.step-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.step-card p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- section dark (perché spiegazione) ---------- */
.section-dark { background: radial-gradient(110% 100% at 85% 20%, #2a2340 0%, var(--ink) 55%, #100e17 100%); overflow: hidden; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 24px; }
.feature-card { padding: 34px 30px; }
.feature-icon { font-size: 26px; color: var(--k); margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.feature-card p { font-size: 14.5px; line-height: 1.75; color: rgba(255, 255, 255, 0.68); }
.tag { font-family: var(--mono); font-size: 0.88em; background: rgba(255, 90, 31, 0.16); color: #ffcbb0; padding: 1px 7px; border-radius: 5px; white-space: nowrap; }
.loop-banner { padding: 22px 30px; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.loop-banner strong { color: #fff; }

/* ---------- CTA finale ---------- */
.cta-final { padding: 100px 28px 120px; background: var(--paper-2); display: flex; justify-content: center; }
.cta-inner { max-width: 640px; width: 100%; padding: 52px 44px; text-align: center; background: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.9); }
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.cta-inner p { font-size: 15px; color: var(--ink-soft); margin-bottom: 30px; line-height: 1.6; }
.cta-inner .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--ink); padding: 44px 28px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--display); font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.footer-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.4); font-family: var(--mono); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255, 255, 255, 0.55); text-decoration: none; font-size: 13.5px; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-text { text-align: left; }
  .hero-demo { max-width: 460px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
  .hero { padding: 100px 20px 70px; min-height: unset; }
  .hero-text h1 { font-size: 2.15rem; }
  .hero-lead { font-size: 1rem; }
  .section { padding: 72px 20px; }
  .section-title { margin-bottom: 36px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-final { padding: 72px 20px 90px; }
  .cta-inner { padding: 38px 26px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .hero-cta, .cta-inner .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { justify-content: center; }
}
