/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

/* Base Styles */
html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  scroll-behavior: smooth;
  line-height: 1.5;
  color: #333;
}

/* Card Styles */
.card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background-image: linear-gradient(to right, #3b82f6, #6366f1);
  color: white;
  border: none;
}

.button:hover {
  background-image: linear-gradient(to right, #2563eb, #4f46e5);
  transform: translateY(-2px);
}

.button-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.button-outline:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-color: #2563eb;
}

/* Gradient Text */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #3b82f6, #6366f1);
  display: inline-block;
}

/* Gradient Backgrounds */
.gradient-bg-primary {
  background-image: linear-gradient(to right, #3b82f6, #6366f1);
  color: white;
}

.gradient-bg-secondary {
  background-image: linear-gradient(to right, #6366f1, #8b5cf6);
  color: white;
}

/* Dot Pattern Background */
.dot-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.fade-in-up {
  animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow Effects */
.glow-text {
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  color: #3b82f6;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.5), transparent);
  margin: 3rem 0;
}

.glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* ===== BRAND WORDMARK =====
   The header and footer logo (app/views/shared/_wordmark.html.erb). That partial picks
   the drawn lettering (.qm-wordmark-img, sized just below) or the Q icon beside the
   text wordmark styled by the rest of this block. */
.qm-wordmark-img { display: block; width: auto; }
.qm-wordmark-img-header { height: 34px; }
.qm-wordmark-img-footer { height: 28px; }
/* Phone and tablet widths show the square Q logo instead of the lettering. */
.qm-wordmark-icon { display: none; }
.qm-wordmark-icon-header { width: 40px; height: 40px; }
.qm-wordmark-icon-footer { width: 36px; height: 36px; }
@media (max-width: 1023.98px) {
  .qm-wordmark-img { display: none; }
  .qm-wordmark-icon { display: block; }
}

/* Text wordmark: the "QuoteMaster" name beside the Q logo.
   To change the look, edit only the variables below:
   - another font: drop its woff2 in public/fonts/brand/ (self-hosted, the CSP only
     allows fonts from this site), point the @font-face src at it and set --qm-wm-font.
   - another colour: set --qm-wm-from and --qm-wm-to (the same pair for a flat colour).
   Picked 2026-11-13: Sora, "Master" in a lighter version of the logo's blue to purple
   (logo is #3F7DFF to #8B5CF6). */
@font-face {
  font-family: "QM Wordmark";
  src: url("/fonts/brand/sora-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --qm-wm-font: "QM Wordmark", "Inter", "Segoe UI", sans-serif;
  --qm-wm-weight: 600;          /* "Quote" */
  --qm-wm-accent-weight: 800;   /* "Master" */
  --qm-wm-tracking: -0.04em;
  --qm-wm-color: #ffffff;
  --qm-wm-from: #8FB0FF;
  --qm-wm-to: #BFA8FF;
}

.qm-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--qm-wm-font);
  font-weight: var(--qm-wm-weight);
  letter-spacing: var(--qm-wm-tracking);
  color: var(--qm-wm-color);
  line-height: 1;
  white-space: nowrap;
}

.qm-wordmark-accent {
  font-weight: var(--qm-wm-accent-weight);
  color: var(--qm-wm-from);
  background: linear-gradient(90deg, var(--qm-wm-from), var(--qm-wm-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
