/* ============================
   INTERVEND Landing Page Styles
   Canonical brand colors defined in quasar.variables.scss ($primary, etc.)
   This standalone page mirrors them via CSS custom properties below.
   ============================ */

:root {
  --brand-primary: #7A2EF7;
  --brand-dark: #2f3349;
  --brand-accent: #00D4FF;
  --brand-light: #f8f8f8;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.btn-primary:hover {
  background: #6520d4;
  border-color: #6520d4;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--brand-primary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(122, 46, 247, 0.06); /* --brand-primary @ 6% */
}

.btn-sm {
  font-size: 0.875rem;
  padding: 8px 18px;
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 32px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  height: 72px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar--scrolled {
  background: var(--brand-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  padding: 4px;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-label {
  letter-spacing: 0.04em;
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: #fff;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 720px;
}

.hero-chip {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #00D4FF;
  background: rgba(0, 212, 255, 0.12);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-accent {
  color: #00D4FF;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

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

.hero-actions .btn-primary {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}
.hero-actions .btn-primary:hover {
  background: #c0392b;
  border-color: #c0392b;
}

.hero-actions .btn-ghost {
  color: rgba(255, 255, 255, 0.85);
}
.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #f8f8f8;
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.0625rem;
  color: #666;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

/* Pain point cards */
.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(122, 46, 247, 0.08); /* --brand-primary @ 8% */
}

.card-icon {
  font-size: 2rem;
  color: #00D4FF;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.65;
}

/* Feature cards */
.feature-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(122, 46, 247, 0.08); /* --brand-primary @ 8% */
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.08);
  color: #00D4FF;
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.65;
}

/* --- About --- */
.about-inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.about-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: #888;
}

/* --- Pricing --- */
.pricing-grid {
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.pricing-featured {
  border: 2px solid #00D4FF;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #00D4FF;
  color: #2f3349;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  border-radius: 100px;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.period {
  font-size: 0.9375rem;
  color: #888;
}

.pricing-features {
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: #444;
  padding: 8px 0;
}

.pricing-features li .material-icons-outlined {
  font-size: 1.125rem;
  color: #2ecc71;
}

/* --- Contact Form --- */
.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group:not(.form-row .form-group) {
  margin-bottom: 20px;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.required {
  color: #e74c3c;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(122, 46, 247, 0.08); /* --brand-primary @ 8% */
  background: #fff;
}

input.error,
select.error,
textarea.error {
  border-color: #e74c3c;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-error {
  font-size: 0.8125rem;
  color: #e74c3c;
  margin-top: 4px;
  min-height: 0;
}

.form-error {
  background: #fce4e4;
  color: #c0392b;
  font-size: 0.875rem;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 64px;
  color: #2ecc71;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 1rem;
  color: #666;
}

/* Loading spinner */
.btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

.btn.loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Footer --- */
.footer {
  background: #2f3349;
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-brand p {
  font-size: 0.875rem;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  width: 100%;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 16px;
}

.footer-legal a {
  font-size: 0.8125rem;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--brand-primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 16px;
  }

  .nav-cta-item .btn {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .cards-2 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .form-wrapper {
    padding: 24px;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
