/* ============================================================
   SISTANT – style.css
   Dark tech, geometric, B2B professional
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

/* ── RESET & VARS ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #080c14;
  --bg-alt:       #0c1120;
  --bg-card:      #0f1626;
  --bg-card-feat: #0a1630;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(46,196,160,0.35);

  /* Brand: navy #1c2e6e, teal #2ec4a0 */
  --accent:       #2ec4a0;
  --accent-dim:   #1a8c72;
  --accent-glow:  rgba(46,196,160,0.18);
  --accent-text:  #3dd6b0;

  --navy:         #1c2e6e;
  --navy-light:   #2a3f8f;

  --text-primary: #e8edf5;
  --text-secondary: #8896b0;
  --text-muted:   #48566e;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:       12px;
  --radius-lg:    20px;
  --max-w:        1140px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

/* ── UTILITY ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }

.accent { color: var(--accent-text); }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #5ba0ff;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(9,9,15,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  /* Mantiene i colori del brand, aggiunge ombra per leggibilità su dark */
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
  /* Il PNG ha sfondo bianco: lo rendiamo trasparente con mix-blend-mode */
  mix-blend-mode: screen;
}

/* Nel footer, logo leggermente più piccolo */
.logo-img--footer {
  height: 28px;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.btn-nav:hover {
  background: #5ba0ff !important;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 4rem;
  position: relative;
}

.hero-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 30%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(46,196,160,0.10) 0%, rgba(28,46,110,0.12) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  flex: 1;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent-text);
  background: rgba(59,142,255,0.1);
  border: 1px solid rgba(59,142,255,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── HERO VISUAL ──────────────────────────────────────────── */
.hero-visual {
  flex: 0 0 420px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s 0.2s ease both;
}

.orb { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.orb-1 { width: 280px; height: 280px; background: rgba(28,46,110,0.55);  top: -60px; right: -40px; }
.orb-2 { width: 160px; height: 160px; background: rgba(46,196,160,0.20); bottom: 20px; left: 20px; }
.orb-3 { width: 100px; height: 100px; background: rgba(46,196,160,0.15); top: 120px; left: 60px; }

.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,142,255,0.08);
  position: relative;
  z-index: 2;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #28c840; }
.code-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  margin-left: auto;
}

.code-body {
  padding: 1.5rem 1.5rem;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre;
}
.c-blue   { color: #7eb3ff; }
.c-cyan   { color: #3dd6b0; }
.c-green  { color: #3dd6b0; }
.c-comment{ color: #3a4d66; }

/* ── KPI BAR ──────────────────────────────────────────────── */
.kpi-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.kpi-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 3rem;
}

.kpi-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-text);
  line-height: 1;
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── SERVICES GRID ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 16px 40px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.card--featured {
  background: var(--bg-card-feat);
  border-color: rgba(46,196,160,0.25);
  box-shadow: inset 0 0 40px rgba(46,196,160,0.04);
}

.card-icon {
  width: 44px; height: 44px;
  background: rgba(46,196,160,0.1);
  border: 1px solid rgba(46,196,160,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-text);
}
.card-icon svg { width: 22px; height: 22px; }

.card-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

/* ── WHY GRID ─────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-text p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.97rem;
  margin-bottom: 0.75rem;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.feat-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feat-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: rgba(46,196,160,0.1);
  border: 1px solid rgba(46,196,160,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  margin-top: 0.15rem;
}
.feat-icon svg { width: 20px; height: 20px; }

.feat-item h4 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.feat-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ── CONTACT BOX ──────────────────────────────────────────── */
.contact-box {
  background: var(--bg-card);
  border: 1px solid rgba(46,196,160,0.25);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

.contact-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(46,196,160,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 8px 32px rgba(59,142,255,0.3);
}
.btn-contact:hover {
  background: #5ba0ff;
  box-shadow: 0 12px 40px rgba(59,142,255,0.4);
  transform: translateY(-2px);
}

.contact-domain {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  letter-spacing: 0.06em;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-copy a {
  color: var(--accent-text);
  text-decoration: none;
}
.footer-copy a:hover { text-decoration: underline; }

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(59,142,255,0); }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    min-height: auto;
    padding-top: 7rem;
    gap: 3rem;
  }
  .hero-visual { flex: none; width: 100%; max-width: 460px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .kpi-inner { gap: 0; }
  .kpi-divider { display: none; }
  .kpi-item { padding: 0.75rem 1.5rem; }
  .contact-box { padding: 2.5rem 1.5rem; }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .hero-title { font-size: 2.4rem; }
  .section { padding: 4rem 0; }
  .section-title { font-size: 1.9rem; }
  .services-grid { gap: 1rem; }
  .card { padding: 1.5rem; }
  .hero-visual { display: none; }
}
