/* Variabili tema */
:root {
  --background: #f7f6f2;
  --foreground: #24231f;
  --border: #d7d2c9;
  --input: #fbfbf8;
  --primary: #0c6b6f;
  --primary-foreground: #ffffff;
  --secondary: #eeeae3;
  --secondary-foreground: #24231f;
  --muted: #eeeae3;
  --muted-foreground: #6f6d68;
  --success: #3f7a3a;
  --success-foreground: #ffffff;
  --accent: #b28a3d;
  --accent-foreground: #24231f;
  --destructive: #a24444;
  --destructive-foreground: #ffffff;
  --warning: #b28a3d;
  --warning-foreground: #24231f;
  --card: #fbfbf8;
  --card-foreground: #24231f;
  --sidebar: #fbfbf8;
  --sidebar-foreground: #24231f;
  --sidebar-primary: #0c6b6f;
  --sidebar-primary-foreground: #ffffff;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --font-family-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

.app-root {
  font-family: var(--font-family-body);
  font-size: 15px;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, p {
  margin: 0;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Header */
.header {
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 20px 48px;
}

.header-content {
  width: 100%;
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header-logo-img {
  height: 40px;
  width: auto;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  font-size: 20px;
  color: var(--primary-foreground);
}

.header-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-nav-link:hover {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-login {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-login:hover {
  color: var(--primary);
}

.btn-register {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-register:hover {
  background: #095558;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  display: flex;
  justify-content: center;
  padding: 120px 48px;
  background: var(--background);
}

.hero-container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-text-content {
  flex: 1;
  max-width: 640px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-primary-btn {
  padding: 16px 32px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
}

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

.hero-secondary-btn {
  padding: 16px 32px;
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-secondary-btn:hover {
  background: var(--muted);
  border-color: var(--primary);
}

.hero-visual-content {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Match UI Preview Widget */
.match-ui-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 460px;
}

.match-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
}

.match-card.left {
  align-self: flex-start;
}

.match-card.right {
  align-self: flex-end;
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.match-card-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-card-label.muted {
  color: var(--muted-foreground);
}

.match-card-label.success {
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius-xl);
}

.match-user-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.user-icon {
  font-size: 14px;
  color: var(--muted-foreground);
}

.sparkle-icon {
  font-size: 14px;
}

.eye-icon {
  font-size: 12px;
}

.match-car-details {
  margin-top: 16px;
}

.car-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--card-foreground);
}

.car-specs {
  font-size: 14px;
  color: var(--muted-foreground);
}

.valuation-range {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 8px;
}

.match-preferences {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pref-tag {
  font-size: 12px;
  background: var(--muted);
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  color: var(--foreground);
}

.match-anon-notice {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-exchange-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  border: 6px solid var(--background);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.exchange-icon {
  font-size: 24px;
  color: var(--primary-foreground);
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.trust-container {
  max-width: 1440px;
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.trust-label {
  font-size: 14px;
  color: var(--muted-foreground);
}

/* How it Works */
.section-how-it-works {
  padding: 100px 48px;
  background: var(--muted);
  display: flex;
  justify-content: center;
}

.section-container {
  width: 100%;
  max-width: 1440px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background: var(--card);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.step-icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 28px;
  color: var(--foreground);
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--card-foreground);
}

.step-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Feature Sections */
.section-feature {
  padding: 100px 48px;
  display: flex;
  justify-content: center;
}

.feature-container {
  max-width: 1440px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
}

.feature-container.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
  max-width: 560px;
}

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  background: var(--muted);
  padding: 8px 16px;
  border-radius: var(--radius-xl);
}

.feature-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--foreground);
  letter-spacing: -1px;
}

.feature-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 32px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-check {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: -2px;
}

.feature-list-text {
  font-size: 16px;
  color: var(--foreground);
  line-height: 1.5;
  font-weight: 500;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Proposal Indicators */
.check-indicators {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.check-indicator.green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.check-indicator.orange {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.check-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.check-icon.green {
  color: var(--success);
}

.check-icon.orange {
  color: #f59e0b;
}

/* Privacy Section */
.section-privacy {
  padding: 100px 48px;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, var(--background) 0%, #f0fdfa 100%);
}

.split-feature {
  display: flex;
  align-items: center;
  gap: 96px;
}

.split-feature-image {
  flex: 1;
  position: relative;
}

.split-feature-text {
  flex: 1;
}

.privacy-visual-wrapper {
  width: 100%;
  padding-bottom: 100%;
  background: var(--muted);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.privacy-floating-card {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.privacy-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-icon {
  font-size: 24px;
  color: var(--muted-foreground);
}

.privacy-check-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-check-icon {
  font-size: 20px;
  color: var(--success-foreground);
}

/* Dealer Section */
.section-dealer {
  padding: 100px 48px;
  display: flex;
  justify-content: center;
  background: var(--foreground);
}

.dealer-content {
  color: var(--background);
}

.dealer-title {
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.dealer-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.dealer-feature-item {
  color: rgba(255, 255, 255, 0.9);
}

.dealer-banner {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}

.dealer-banner-text {
  max-width: 600px;
}

.dealer-banner-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary-foreground);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.dealer-banner-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 40px;
}

.dealer-mockup {
  width: 260px;
  height: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.dealer-mockup.left {
  transform: translateY(24px);
}

.dealer-mockup.right {
  transform: translateY(-24px);
  position: relative;
  z-index: 2;
}

.dealer-mockup-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.dealer-mockup-icon {
  width: 32px;
  height: 32px;
  background: var(--muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dealer-mockup-icon.primary {
  background: var(--primary);
}

.dealer-mockup-bar {
  height: 12px;
  background: var(--muted);
  border-radius: 6px;
}

.dealer-mockup-bar.primary {
  background: var(--primary);
  opacity: 0.2;
}

.dealer-mockup-image {
  height: 72px;
  width: 100%;
  background: var(--muted);
  border-radius: var(--radius-sm);
}

.dealer-mockup-line {
  height: 10px;
  background: var(--muted);
  border-radius: 5px;
}

/* Footer */
.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 80px 48px;
  display: flex;
  justify-content: center;
}

.footer-container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  gap: 64px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-text {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-top: 20px;
}

.footer-links-grid {
  display: flex;
  gap: 96px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 15px;
  color: var(--muted-foreground);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--foreground);
}

/* Preview Card Components */
.preview-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
}

.preview-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.preview-card-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  background: var(--muted);
  object-fit: cover;
  margin-bottom: 16px;
}

.preview-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 6px;
}

.preview-card-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
}

/* Dashboard Preview */
.dashboard-preview {
  width: 100%;
  max-width: 500px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
}

.dashboard-preview-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dashboard-preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-preview-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.dashboard-preview-tab {
  padding: 8px 16px;
  background: var(--muted);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.dashboard-preview-tab.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.dashboard-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--muted);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.dashboard-preview-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    gap: 60px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .feature-container,
  .feature-container.reverse {
    flex-direction: column;
    gap: 40px;
  }
  
  .split-feature {
    flex-direction: column;
    gap: 40px;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dealer-banner {
    flex-direction: column;
    gap: 40px;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .trust-container {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-links-grid {
    flex-direction: column;
    gap: 32px;
  }
  
  .dealer-mockup {
    width: 100%;
    max-width: 260px;
  }
}
