/* RectSnapMac — style.css */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --purple: #5B21B6;
  --purple-dark: #4C1D95;
  --purple-light: #7C3AED;
  --teal: #14B8A6;
  --teal-dark: #0D9488;
  --teal-light: #2DD4BF;
  --gray-50: #FAFAF9;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-300: #D6D3D1;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #292524;
  --gray-900: #1C1917;
  --white: #FFFFFF;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.25; margin-top: 0; }
a { color: var(--purple); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; }

/* ===== Navbar ===== */
.navbar-rsm {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.navbar-rsm .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar-rsm .navbar-brand svg { width: 32px; height: 32px; }
.navbar-rsm .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--gray-700);
  padding: .5rem 1rem;
  transition: color .2s;
}
.navbar-rsm .nav-link:hover, .navbar-rsm .nav-link.active { color: var(--purple); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, var(--purple-light) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='26' height='26' rx='3' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Crect x='32' y='2' width='26' height='26' rx='3' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Crect x='2' y='32' width='26' height='26' rx='3' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Crect x='32' y='32' width='26' height='26' rx='3' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 1;
}
.hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; position: relative; }
.hero p.lead { font-size: 1.25rem; opacity: .9; max-width: 600px; position: relative; }
.hero .btn-hero-primary {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, transform .2s;
}
.hero .btn-hero-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.hero .btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  padding: .75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.hero .btn-hero-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.hero-svg { position: relative; }

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 0;
}
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--purple);
  display: block;
}
.stat-item .stat-label {
  font-size: .85rem;
  color: var(--gray-600);
  display: block;
}

/* ===== Section Common ===== */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ===== Feature Cards ===== */
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow .3s, transform .3s;
  height: 100%;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-card .card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-card .card-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
  color: var(--gray-900);
}
.feature-card p { color: var(--gray-600); margin-bottom: 1rem; }
.feature-card .card-link {
  font-weight: 600;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.feature-card .card-link:hover { color: var(--teal); }

/* ===== Steps ===== */
.step-item { display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.step-num {
  width: 48px; height: 48px; min-width: 48px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem;
}
.step-body h4 { margin-bottom: .25rem; color: var(--gray-900); }
.step-body p { color: var(--gray-600); margin-bottom: 0; }

/* ===== Benefits ===== */
.benefit-card { text-align: center; padding: 2rem 1rem; }
.benefit-icon {
  width: 64px; height: 64px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.benefit-icon svg { width: 28px; height: 28px; color: var(--purple); }
.benefit-card h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.benefit-card p { color: var(--gray-600); font-size: .95rem; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--purple-dark), var(--teal-dark));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { font-size: 2rem; margin-bottom: .75rem; }
.cta-section p { opacity: .9; margin-bottom: 1.5rem; font-size: 1.1rem; }
.cta-section .form-control {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
}
.cta-section .form-control::placeholder { color: rgba(255,255,255,.6); }
.cta-section .btn-cta {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background .2s;
}
.cta-section .btn-cta:hover { background: var(--teal-light); }

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}
.footer h5 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer a { color: var(--gray-300); }
.footer a:hover { color: var(--teal-light); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .4rem; }
.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 1rem;
  z-index: 9999;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner a { color: var(--teal-light); text-decoration: underline; }
.cookie-banner .btn-cookie {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: .4rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}
.cookie-banner.hidden { display: none; }

/* ===== Article Page ===== */
.article-hero {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: var(--white);
  padding: 3.5rem 0 2.5rem;
}
.article-hero h1 { font-size: 2.5rem; }
.article-hero .breadcrumb { margin-bottom: 1rem; }
.article-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.article-hero .breadcrumb a:hover { color: var(--white); }
.article-content { padding: 3rem 0; }
.article-content h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--gray-900); }
.article-content h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: .75rem; }
.article-content p { margin-bottom: 1.25rem; color: var(--gray-700); }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; color: var(--gray-700); }
.article-content li { margin-bottom: .5rem; }
.tip-box {
  background: linear-gradient(135deg, rgba(91,33,182,.05), rgba(20,184,166,.05));
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.tip-box strong { color: var(--teal-dark); }
.kbd {
  display: inline-block;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: .15rem .5rem;
  font-family: 'DM Sans', monospace;
  font-size: .9rem;
  color: var(--gray-800);
  box-shadow: 0 1px 0 var(--gray-300);
}

/* ===== Contact Form ===== */
.form-page { padding: 4rem 0; }
.form-page .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  padding: .75rem 1rem;
}
.form-page .form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91,33,182,.15);
}
.btn-primary-rsm {
  background: var(--purple);
  color: var(--white);
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background .2s;
}
.btn-primary-rsm:hover { background: var(--purple-dark); color: var(--white); }

/* ===== Legal Pages ===== */
.legal-page { padding: 3rem 0; }
.legal-page h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: .75rem; }
.legal-page p, .legal-page li { color: var(--gray-700); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1.05rem; }
  .section-title { font-size: 1.6rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .article-hero h1 { font-size: 1.8rem; }
}

/* ===== Navbar Desktop Fix ===== */
@media (min-width: 992px) {
  .navbar-rsm .collapse.navbar-collapse {
    display: flex !important;
  }
  .navbar-rsm .navbar-nav {
    flex-direction: row !important;
  }
}
@media (max-width: 991px) {
  .navbar-rsm .collapse.navbar-collapse {
    display: none;
  }
  .navbar-rsm .collapse.navbar-collapse.show {
    display: block;
    padding: 1rem 0;
  }
  .navbar-rsm .navbar-nav {
    flex-direction: column;
    gap: 0 !important;
  }
  .navbar-rsm .nav-link {
    padding: .5rem 0;
  }
}
