:root {
  --primary: #008664;
  --primary-dark: #006b52;
  --primary-light: #00a078;
  --text-dark: #0f1419;
  --text-light: #536471;
  --bg-white: #ffffff;
  --bg-light: #f8faf9;
  --border: #e8f5f1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 134, 100, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 134, 100, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Large screens (ultrawide, 34"+) */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }
}

@media (min-width: 2000px) {
  .container {
    max-width: 1600px;
  }
}

/* Header */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s;
}

.nav a:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.nav a[style*="underline"] {
  color: var(--primary);
  background: rgba(0, 134, 100, 0.08);
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .brand-title {
    font-size: 18px;
  }
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(0, 134, 100, 0.03) 0%,
    transparent 100%
  );
}

.hero-content {
  max-width: 680px;
  margin: 0 auto 50px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 134, 100, 0.12),
    rgba(0, 134, 100, 0.06)
  );
  color: var(--primary);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 134, 100, 0.15);
}

h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

h1 br {
  display: none;
}

.lead {
  font-size: clamp(16px, 1.5vw, 24px);
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats section */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

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

  h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  h1 br {
    display: block;
  }

  .lead {
    font-size: 15px;
  }

  .cta-row {
    flex-direction: column;
    padding: 0 20px;
  }

  .stats-row {
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
  }

  .stat-value {
    font-size: 24px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-dark);
}

.button.secondary {
  background: white;
  color: var(--primary);
  border: 1.5px solid rgba(0, 134, 100, 0.3);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary);
}

.button svg {
  width: 18px;
  height: 18px;
}

/* Features Section - Nouveau Layout */
.features-section {
  padding: 30px 0 60px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 60px;
  letter-spacing: -0.5px;
}

/* Feature Row - Alternating Layout */
.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 80px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.feature-row:last-child {
  margin-bottom: 0;
}

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

.feature-text {
  flex: 1;
  max-width: 480px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 134, 100, 0.12),
    rgba(0, 134, 100, 0.04)
  );
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-text h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.feature-text p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.6;
}

.feature-phone {
  flex-shrink: 0;
}

.feature-phone .phone-frame {
  width: 280px;
  height: 560px;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.feature-phone .phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.feature-phone .phone-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
}

.feature-phone .phone-frame.placeholder span {
  font-size: 80px;
  opacity: 0.6;
}

.muted {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .features-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 40px;
  }

  .feature-row {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
  }

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

  .feature-text {
    max-width: 100%;
  }

  .feature-icon {
    margin: 0 auto 16px;
    width: 48px;
    height: 48px;
  }

  .feature-text h3 {
    font-size: 20px;
  }

  .feature-text p {
    font-size: 15px;
  }

  .feature-phone .phone-frame {
    width: 220px;
    height: 440px;
    border-radius: 32px;
    padding: 8px;
  }

  .feature-phone .phone-frame img {
    border-radius: 24px;
  }

  .feature-phone .phone-frame.placeholder span {
    font-size: 60px;
  }
}

/* App Preview Card */
.app-preview {
  padding: 60px 0 40px;
}

.preview-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.preview-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.preview-card p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.qr-placeholder {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 134, 100, 0.08),
    rgba(0, 134, 100, 0.03)
  );
  border: 2px dashed rgba(0, 134, 100, 0.25);
}

.qr-placeholder span {
  color: var(--text-light);
  font-size: 12px;
  padding: 0 16px;
  text-align: center;
}

.app-stores {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-stores img {
  height: 40px;
}

.small {
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .app-preview {
    padding: 40px 0 32px;
  }

  .preview-card {
    padding: 24px 20px;
  }

  .preview-card h2 {
    font-size: 18px;
  }

  .preview-card p {
    font-size: 13px;
  }

  .qr-placeholder {
    width: 120px;
    height: 120px;
  }

  .app-stores img {
    height: 36px;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 80px;
}

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

.hr {
  display: none;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.center {
  text-align: center;
}

/* Legal Pages */
.page {
  padding: 32px 0 60px;
}

.page .card {
  max-width: none;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.page h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.page h3:first-of-type {
  border-top: none;
  margin-top: 20px;
}

.page p {
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 12px;
  font-size: 15px;
}

.page ul {
  color: var(--text-light);
  line-height: 1.65;
  margin: 12px 0 16px 0;
  padding-left: 24px;
  font-size: 15px;
}

.page ul li {
  margin-bottom: 8px;
}

.page .muted {
  font-size: 14px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .page {
    padding: 16px 0 40px;
  }

  .page .card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
    margin: 0;
  }

  .page h2 {
    font-size: 22px;
  }

  .page h3 {
    font-size: 15px;
    margin: 20px 0 8px;
    padding-top: 12px;
  }

  .page p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .page ul {
    font-size: 14px;
    padding-left: 20px;
    margin: 10px 0 14px 0;
  }

  .page ul li {
    margin-bottom: 6px;
  }
}

/* ===== LARGE SCREENS (1600px+) ===== */
@media (min-width: 1600px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-content {
    max-width: 900px;
    margin-bottom: 70px;
  }

  .badge {
    font-size: 15px;
    padding: 10px 20px;
  }

  .stats-row {
    gap: 80px;
    margin-top: 60px;
  }

  .stat-value {
    font-size: 42px;
  }

  .stat-label {
    font-size: 15px;
  }

  .button {
    padding: 16px 32px;
    font-size: 17px;
  }

  .features-section {
    padding: 50px 0 80px;
  }

  .section-title {
    font-size: 36px;
    margin-bottom: 70px;
  }

  .feature-row {
    gap: 120px;
    margin-bottom: 90px;
    max-width: 1300px;
  }

  .feature-icon {
    width: 72px;
    height: 72px;
  }

  .feature-icon span {
    font-size: 36px;
  }

  .feature-text h3 {
    font-size: 30px;
  }

  .feature-text p {
    font-size: 19px;
    line-height: 1.7;
  }

  .feature-phone .phone-frame {
    width: 340px;
    height: 680px;
    border-radius: 52px;
    padding: 12px;
  }

  .feature-phone .phone-frame img {
    border-radius: 40px;
  }

  .feature-phone .phone-frame.placeholder span {
    font-size: 100px;
  }

  .preview-card {
    max-width: 520px;
    padding: 40px 36px;
  }

  .preview-card h2 {
    font-size: 26px;
  }

  .preview-card p {
    font-size: 17px;
  }

  .qr-placeholder {
    width: 180px;
    height: 180px;
  }

  footer {
    padding: 40px 0;
  }

  footer p {
    font-size: 15px;
  }

  .nav a {
    font-size: 16px;
    padding: 10px 20px;
  }

  .brand-title {
    font-size: 22px;
  }
}

/* ===== EXTRA LARGE SCREENS (2000px+) ===== */
@media (min-width: 2000px) {
  .hero {
    padding: 100px 0 80px;
  }

  .hero-content {
    max-width: 1100px;
    margin-bottom: 90px;
  }

  .badge {
    font-size: 17px;
    padding: 12px 24px;
  }

  .stats-row {
    gap: 120px;
    margin-top: 80px;
  }

  .stat-value {
    font-size: 54px;
  }

  .stat-label {
    font-size: 17px;
  }

  .button {
    padding: 20px 40px;
    font-size: 19px;
    border-radius: var(--radius-lg);
  }

  .features-section {
    padding: 60px 0 100px;
  }

  .section-title {
    font-size: 44px;
    margin-bottom: 90px;
  }

  .feature-row {
    gap: 160px;
    margin-bottom: 120px;
    max-width: 1500px;
  }

  .feature-icon {
    width: 88px;
    height: 88px;
  }

  .feature-icon span {
    font-size: 44px;
  }

  .feature-text h3 {
    font-size: 36px;
  }

  .feature-text p {
    font-size: 22px;
    line-height: 1.75;
  }

  .feature-phone .phone-frame {
    width: 400px;
    height: 800px;
    border-radius: 64px;
    padding: 16px;
  }

  .feature-phone .phone-frame img {
    border-radius: 48px;
  }

  .feature-phone .phone-frame.placeholder span {
    font-size: 120px;
  }

  .preview-card {
    max-width: 620px;
    padding: 50px 44px;
  }

  .preview-card h2 {
    font-size: 32px;
  }

  .preview-card p {
    font-size: 19px;
  }

  .qr-placeholder {
    width: 220px;
    height: 220px;
  }

  footer {
    padding: 50px 0;
  }

  footer p {
    font-size: 17px;
  }

  .nav a {
    font-size: 18px;
    padding: 12px 24px;
  }

  .brand-title {
    font-size: 26px;
  }
}
