/* =============================================
   Magic Color Brush – Main Stylesheet
   ============================================= */

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

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7f9ff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header & Nav --- */
header {
  background: #fff;
  border-bottom: 1px solid #e8ecf5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(58, 92, 255, 0.06);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  color: #3a5cff;
  letter-spacing: -0.5px;
  text-decoration: none;
}

nav a {
  color: #444;
  text-decoration: none;
  margin-left: 28px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #3a5cff;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: #3a5cff;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(58, 92, 255, 0.3);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #2444e0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(58, 92, 255, 0.4);
}

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

.btn-outline {
  background: transparent;
  color: #3a5cff;
  border: 2px solid #3a5cff;
  box-shadow: none;
  padding: 12px 26px;
}

.btn-outline:hover {
  background: #3a5cff;
  color: #fff;
  box-shadow: 0 4px 14px rgba(58, 92, 255, 0.3);
}

/* --- Hero --- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  padding: 80px 0 60px;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-badge {
  display: inline-block;
  background: #eef1ff;
  color: #3a5cff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -1px;
  color: #111;
}

.hero-text h1 span {
  color: #3a5cff;
}

.hero-text p {
  font-size: 18px;
  color: #555;
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
}

.hero-trust .stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 1px;
}

.hero-image {
  flex-shrink: 0;
  position: relative;
}

.hero-image img {
  width: 260px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(58, 92, 255, 0.15);
  display: block;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 60% 40%, rgba(58, 92, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

/* --- Features --- */
.features-section {
  padding: 60px 0;
}

.section-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3a5cff;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 17px;
  color: #666;
  max-width: 560px;
  margin: 0 auto 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature {
  background: #fff;
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #edf0fa;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
  box-shadow: 0 8px 32px rgba(58, 92, 255, 0.12);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111;
}

.feature p {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* --- Value Proposition Banner --- */
.value-banner {
  background: linear-gradient(135deg, #3a5cff 0%, #6c8aff 100%);
  border-radius: 20px;
  padding: 60px 48px;
  margin: 20px 0 60px;
  text-align: center;
  color: #fff;
  box-shadow: 0 12px 40px rgba(58, 92, 255, 0.25);
}

.value-banner h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.value-banner p {
  font-size: 18px;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn-white {
  background: #fff;
  color: #3a5cff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #f0f3ff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Contact Form --- */
.contact-section {
  padding: 60px 0;
}

.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #edf0fa;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card h2 {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  margin: 0 0 8px;
}

.contact-card p {
  color: #666;
  margin: 0 0 28px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dde1f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3a5cff;
  box-shadow: 0 0 0 3px rgba(58, 92, 255, 0.1);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
footer {
  background: #fff;
  border-top: 1px solid #e8ecf5;
  padding: 32px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-weight: 800;
  color: #3a5cff;
  font-size: 16px;
}

.footer-copy {
  font-size: 14px;
  color: #888;
}

.footer-copy a {
  color: #3a5cff;
  text-decoration: none;
}

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

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 48px 0 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .value-banner {
    padding: 40px 24px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  nav {
    display: none;
  }
}
