/* ==========================================================================
   WLM - Showcase / Landing Page Design System
   Modern, Ultra-Premium, Responsive & Glassmorphism Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
  --font-primary: "IBM Plex Sans", sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Color Palette */
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-500: #22c55e;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-800: #166534;
  --primary-900: #14532d;
  
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: #334155;
  
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px -5px rgba(22, 163, 74, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-grid-pattern {
  background-image: radial-gradient(rgba(21, 128, 61, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--light-border);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.25rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-900);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--primary-700);
  background-color: var(--primary-50);
}

.nav-link.active {
  color: var(--primary-800);
  background-color: var(--primary-50);
  font-weight: 700;
}

.navbar-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.55rem 1.15rem;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.45);
}

.btn-secondary {
  background: var(--light-surface);
  color: var(--text-main);
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-800);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-800);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Hero Mockup Preview */
.hero-mockup-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--dark-bg);
  padding: 12px;
  box-shadow: var(--shadow-glow), 0 30px 60px -12px rgba(15, 23, 42, 0.4);
  border: 1px solid var(--dark-border);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1e293b;
  border-radius: 12px 12px 0 0;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-body {
  background: #0f172a;
  border-radius: 0 0 12px 12px;
  padding: 20px;
  color: white;
}

/* Feature Cards & Grid */
.features-section {
  padding: 6rem 0;
  background: white;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  color: var(--primary-600);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-500);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Competitor Comparison Section */
.comparison-section {
  padding: 6rem 0;
  background: #f1f5f9;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--light-border);
}

.comparison-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
}

.comparison-table th.highlight {
  background: var(--primary-50);
  color: var(--primary-900);
}

.check-icon {
  color: var(--primary-600);
  font-weight: 800;
}

.cross-icon {
  color: #ef4444;
  font-weight: 800;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links h5 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* Screenshot frame (placeholder finche' il file non esiste, poi immagine reale in automatico) */
.shot-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-xl);
}

.shot-frame .mockup-header span {
  color: #64748b;
  font-size: 0.75rem;
  margin-left: 8px;
  font-family: monospace;
}

.shot-body {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
}

.shot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Variante per screenshot ritratti (PWA mobile): lo shot-body di default è 16:10
   orizzontale, quindi un'immagine verticale ci finirebbe dentro minuscola con
   grandi bande vuote ai lati. Qui il frame si restringe e si centra come un
   telefono, e lo shot-body passa a un aspect-ratio verticale realistico. */
.shot-frame--portrait {
  max-width: 320px;
  margin: 0 auto;
}

.shot-body--portrait {
  /* Aspect-ratio dello screenshot reale (378x786): niente crop, niente bande vuote. */
  aspect-ratio: 378 / 786;
  background: white;
}

.shot-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  background:
    repeating-linear-gradient(45deg, #e2e8f0 0, #e2e8f0 1px, transparent 1px, transparent 12px),
    #f8fafc;
  text-align: center;
  padding: 1.5rem;
}

.shot-placeholder .shot-placeholder-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
}

.shot-placeholder strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.shot-placeholder code {
  background: white;
  border: 1px solid var(--light-border);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--primary-700);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
  .btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.84rem;
    gap: 6px;
  }
}

@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .navbar-actions .btn-secondary {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    font-size: 1.15rem;
  }
  .brand-logo img {
    height: 26px;
    width: 26px;
  }
  .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
}
