/* ==========================================================================
   piatt.css — Piattaforma Innovazione landing page styles
   Brand: #3944fa accent, #dedfff tint, IBM Plex Mono
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- Brand tokens ---------- */
:root {
  --brand-accent:      #3944fa;
  --brand-accent-600:  #2d37e8;
  --brand-accent-700:  #2230d0;
  --brand-tint:        #dedfff;
  --brand-tint-dark:   #b8baff;

  --brand-hero-from:   #000000;
  --brand-hero-to:     #080818;

  --surface:           #ffffff;
  --surface-2:         #f7f7ff;
  --surface-dark:      #0a0a0a;
  --border:            #e5e5e5;
  --text:              #000000;
  --muted:             #666666;
  --nav-height:        72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: 'IBM Plex Mono', monospace;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

section {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

::selection {
  background: rgba(57, 68, 250, 0.15);
}

/* ---------- Container ---------- */
.piatt-container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Navbar ---------- */
.piatt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.piatt-nav.scrolled {
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.08);
}

.piatt-nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.piatt-nav-logo img {
  height: 2rem;
  width: auto;
}

/* ---------- Buttons ---------- */
.piatt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.piatt-btn:active { transform: translateY(1px); }

.piatt-btn-primary {
  background: var(--brand-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.piatt-btn-primary:hover {
  background: var(--brand-accent-600);
  box-shadow: 0 6px 20px rgba(57, 68, 250, 0.35);
}

.piatt-btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
}
.piatt-btn-outline-white:hover {
  background: #fff;
  color: var(--brand-hero-from);
  border-color: #fff;
}

.piatt-btn-dark {
  background: #0F172A;
  color: #fff;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}
.piatt-btn-dark:hover {
  background: #1e293b;
}

.piatt-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: 1rem;
}

/* ---------- Mesh hero ---------- */
.mesh-hero {
  position: relative;
  overflow: hidden;
  background: #050505;
}

.mesh-hero .mesh-gradient {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(57, 68, 250, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 75% 30%, rgba(222, 223, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 35% 45% at 55% 80%, rgba(57, 68, 250, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 25% 30% at 88% 60%, rgba(184, 186, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 30% 35% at 10% 20%, rgba(57, 68, 250, 0.08) 0%, transparent 70%);
  animation: meshDrift 25s ease-in-out infinite;
  will-change: transform;
}

.mesh-hero .mesh-gradient-2 {
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  background:
    radial-gradient(ellipse 30% 40% at 60% 40%, rgba(57, 68, 250, 0.07) 0%, transparent 100%),
    radial-gradient(ellipse 40% 30% at 30% 70%, rgba(222, 223, 255, 0.05) 0%, transparent 100%),
    radial-gradient(ellipse 20% 25% at 80% 80%, rgba(57, 68, 250, 0.06) 0%, transparent 100%);
  animation: meshDrift2 18s ease-in-out infinite;
  will-change: transform;
}

@keyframes meshDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%       { transform: translate(3%, -2%) rotate(0.5deg) scale(1.02); }
  66%       { transform: translate(-2%, 3%) rotate(-0.3deg) scale(0.98); }
}

@keyframes meshDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%       { transform: translate(-3%, 2%) rotate(-0.5deg); }
}

.mesh-hero .hero-content {
  position: relative;
  z-index: 2;
}

/* ---------- Grain overlay ---------- */
.grain { position: relative; }
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  z-index: 3;
}

/* ---------- Glassmorphism badge ---------- */
.glass-badge {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

/* ---------- Text gradient (for hero headline) ---------- */
.text-gradient-orange {
  background: linear-gradient(135deg, #fff 0%, #dedfff 50%, #3944fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-light {
  background: linear-gradient(135deg, #e2e8f0 0%, #ffffff 45%, #dedfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Glow card ---------- */
.glow-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glow-card:hover {
  border-color: rgba(57, 68, 250, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(57, 68, 250, 0.08);
}

/* ---------- Dark section ---------- */
.dark-section {
  background: #0a0a0a;
}

/* ---------- Accent bar divider ---------- */
.accent-bar {
  height: 4px;
  width: 60px;
  background: var(--brand-accent);
  border-radius: 99px;
}

.accent-bar-tint {
  background: var(--brand-tint);
}

/* ---------- Fade line ---------- */
.fade-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #d4d4d4 50%, transparent 100%);
}

.fade-line-dark {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
}

/* ---------- Number badge (shift pillars) ---------- */
.num-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--brand-accent);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Mono label (VP cards) ---------- */
.mono-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.mono-label-tint {
  color: var(--brand-tint-dark);
}

/* ---------- Icon box ---------- */
.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.icon-box-orange {
  background: rgba(57, 68, 250, 0.08);
  color: var(--brand-accent);
}

.icon-box-teal {
  background: rgba(222, 223, 255, 0.5);
  color: var(--brand-accent);
}

.icon-box-dark {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.icon-box-red {
  background: rgba(57, 68, 250, 0.06);
  color: var(--brand-accent-700);
}

/* ---------- Partner dot ---------- */
.partner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.faq-trigger:hover { color: var(--brand-accent); }

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-accent);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---------- Program cards (FINAL CTA) ---------- */
.program-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.program-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(57, 68, 250, 0.35);
  transform: translateY(-3px);
}

.program-duration {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-tint);
  background: rgba(57, 68, 250, 0.15);
  border: 1px solid rgba(57, 68, 250, 0.25);
  border-radius: 9999px;
  padding: 0.2rem 0.7rem;
  display: inline-block;
}

/* ---------- Client logos strip ---------- */
.client-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'IBM Plex Mono', monospace;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ---------- Arrow bounce ---------- */
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
.arrow-bounce { animation: arrowBounce 1.8s ease-in-out infinite; }

/* ---------- Footer ---------- */
.piatt-footer {
  background: #080c14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Legal strip (Designtech, site host) ---------- */
.piatt-legal-strip {
  background: #050510;
  padding: 1.25rem 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.piatt-legal-strip p {
  margin: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh-hero .mesh-gradient,
  .mesh-hero .mesh-gradient-2 { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow-card, .glow-card:hover { transition: none; transform: none; }
  .arrow-bounce { animation: none; }
  .piatt-btn { transition: none; }
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 767px) {
  .piatt-nav-logo img { height: 1.6rem; }
}
