/*
 * DIIVOT Design System - Website
 * Identico al design dell'app mobile
 */

/* ============================================
   RESET & BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #000000;
  background: #FFFFFF;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.display {
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h1, .h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2, .h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.25px;
}

h3, .h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

h4, .h4 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

.body-large {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

body, .body {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

.body-small {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.caption {
  font-size: 10px;
  line-height: 14px;
  font-weight: 400;
  letter-spacing: 0.25px;
}

/* ============================================
   COLORS
   ============================================ */

:root {
  /* Primary */
  --black: #000000;
  --white: #FFFFFF;

  /* Brand */
  --brand: #3B82F6;
  --brand-light: #60A5FA;
  --brand-dark: #2563EB;
  --brand-bg: #EFF6FF;

  /* Success */
  --success: #10B981;
  --success-light: #34D399;
  --success-dark: #059669;
  --success-bg: #D1FAE5;

  /* Warning */
  --warning: #F59E0B;
  --warning-light: #FBBF24;
  --warning-dark: #D97706;
  --warning-bg: #FEF3C7;

  /* Error */
  --error: #EF4444;
  --error-light: #F87171;
  --error-dark: #DC2626;
  --error-bg: #FEE2E2;

  /* Neutrals */
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #EDEDED;
  --neutral-300: #E5E5E5;
  --neutral-400: #C9C9C9;
  --neutral-500: #A3A3A3;
  --neutral-600: #737373;
  --neutral-700: #525252;
  --neutral-800: #404040;
  --neutral-900: #262626;
}

.text-secondary {
  color: var(--neutral-600);
}

.text-tertiary {
  color: var(--neutral-500);
}

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

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

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

.bg-neutral-50 {
  background: var(--neutral-50);
}

.bg-neutral-100 {
  background: var(--neutral-100);
}

/* ============================================
   SPACING
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 96px 0;
}

@media (max-width: 1024px) {
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .display {
    font-size: 32px;
    line-height: 40px;
  }

  h1, .h1 {
    font-size: 24px;
    line-height: 32px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--neutral-300);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-400);
}

.btn-brand {
  background: var(--brand);
  color: var(--white);
}

.btn-brand:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-large {
  padding: 18px 48px;
  font-size: 16px;
  font-weight: 700;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.card-content {
  padding: 16px;
}

.card-flat {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.2s ease;
}

.card-flat:hover {
  border-color: var(--neutral-300);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success-dark);
}

.badge-new {
  background: transparent;
  color: var(--black);
  padding: 0;
  letter-spacing: 1.5px;
}

/* ============================================
   HEADER/NAVIGATION
   ============================================ */

header {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav a {
  color: var(--neutral-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--black);
}

@media (max-width: 768px) {
  nav ul {
    gap: 16px;
  }

  nav a {
    font-size: 12px;
  }
}

/* ============================================
   HERO SECTION - Vinted/Modern Style
   ============================================ */

.hero {
  text-align: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle pattern background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 18px;
  line-height: 28px;
  color: var(--neutral-700);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ============================================
   FEATURES SECTION - Modern Card Style
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--neutral-200);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--neutral-300);
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--brand-bg) 0%, var(--success-bg) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: var(--brand);
}

.feature-item h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.feature-item p {
  color: var(--neutral-600);
  line-height: 1.6;
}

/* ============================================
   PRODUCT GRID (SCREENSHOT SHOWCASE)
   ============================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1.5;
  object-fit: cover;
  background: var(--neutral-100);
}

.product-info {
  padding: 16px;
}

.product-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: -0.25px;
}

.product-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--success);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--neutral-900);
  color: var(--white);
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 16px;
}

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

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-700);
  padding-top: 24px;
  text-align: center;
  color: var(--neutral-500);
  font-size: 12px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--neutral-800);
  border-radius: 50%;
  transition: background 0.15s ease;
}

.social-links a:hover {
  background: var(--neutral-700);
}

/* ============================================
   APP DOWNLOAD BUTTONS
   ============================================ */

.app-download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.app-store-btn:hover {
  opacity: 0.8;
}

.app-store-btn svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--neutral-200);
  padding: 24px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content p {
  flex: 1;
  font-size: 14px;
  color: var(--neutral-700);
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons {
    flex-direction: column;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.max-w-4xl {
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
}

.prose {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.prose h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.prose h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.prose ul, .prose ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.6;
}
