/* public/assets/css/landing.css */

/* Core variables matching globals.css */
:root {
  --l-bg: #ffffff;
  --l-fg: #0f172a;
  --l-brand: #0e51a4;
  --l-brand-dark: #0f1c3f;
  --l-border: #e2e8f0;
  --l-muted-fg: #64748b;
  --l-cta-from: #d85ebc;
  --l-cta-to: #ffd704;
}

/* Layout Utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.flex-none { flex: none; }
.flex-1 { flex: 1 1 0%; }
.flex-grow-1 { flex-grow: 1; }

/* Grid Layouts */
.grid { display: grid; }
.gap-2.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Grid Columns responsive */
@media (min-width: 576px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-\[1\.05fr_0\.95fr\] { grid-template-columns: 1.05fr 0.95fr; }
  .lg\:grid-cols-\[1fr_0\.8fr\] { grid-template-columns: 1fr 0.8fr; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

/* Flexbox Layouts */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.inline-block { display: inline-block !important; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-y-6 { row-gap: 1.5rem; }
.gap-0.5 { gap: 0.125rem; }

@media (min-width: 576px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:gap-x-16 { column-gap: 4rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:w-32 { width: 8rem !important; min-width: 8rem !important; }
}

/* Backgrounds & Colors */
.bg-circuit {
  background-color: var(--l-brand-dark);
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bg-secondary\/40 { background-color: rgba(243, 245, 245, 0.4) !important; }
.bg-background { background-color: #ffffff !important; }
.bg-brand-dark { background-color: var(--l-brand-dark) !important; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05) !important; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1) !important; }
.bg-card { background-color: #ffffff !important; }
.bg-destructive\/10 { background-color: rgba(239, 68, 68, 0.1); }
.bg-brand\/10 { background-color: rgba(21, 90, 170, 0.1); }
.bg-cta-gradient {
  background-image: linear-gradient(100deg, var(--l-cta-from) 0%, var(--l-cta-to) 100%);
}

.text-white { color: #ffffff; }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/75 { color: rgba(255, 255, 255, 0.75); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-cta-to { color: var(--l-cta-to); }
.text-brand { color: var(--l-brand); }
.text-destructive { color: #ef4444; }
.text-muted-foreground { color: var(--l-muted-fg); }
.text-foreground\/85 { color: rgba(15, 23, 42, 0.85); }
.text-foreground\/40 { color: rgba(15, 23, 42, 0.4); }
.text-foreground { color: var(--l-fg); }

/* Spacing & Borders */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pb-5 { padding-bottom: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-5 { padding: 1.25rem; }
.mt-0.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid var(--l-border); }
.border-b { border-bottom: 1px solid var(--l-border); }
.border-t { border-top: 1px solid var(--l-border); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }
.border-white\/25 { border-color: rgba(255, 255, 255, 0.25) !important; }

/* Typography */
.font-heading { font-family: var(--font-heading); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

/* Interactive & Forms */
.form-control-landing {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  background-clip: padding-box;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control-landing:focus {
  border-color: var(--l-cta-to);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 215, 4, 0.15);
}
.form-control-landing::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-landing-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  border: none !important;
  text-decoration: none !important;
  transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
}
.btn-landing-cta:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-3\.5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }

/* Grayscale */
.grayscale { filter: grayscale(100%); }
.grayscale:hover { filter: grayscale(0%); }

/* CSS grid columns helper */
.grid-cols-\[1fr_auto_auto\] {
  grid-template-columns: 1fr auto auto !important;
}
@media (min-width: 992px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .lg\:grid-cols-\[1\.05fr_0\.95fr\] {
    grid-template-columns: 1.05fr 0.95fr !important;
  }
  .lg\:grid-cols-\[1fr_0\.8fr\] {
    grid-template-columns: 1fr 0.8fr !important;
  }
}

/* Aspect ratios */
.aspect-\[4\/3\] {
  aspect-ratio: 4/3;
}
.flex-none { flex: none !important; flex-shrink: 0 !important; }
.w-4 { width: 1rem !important; min-width: 1rem !important; }
.h-4 { height: 1rem !important; min-height: 1rem !important; }
.w-5 { width: 1.25rem !important; min-width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; min-height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; min-width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; min-height: 1.5rem !important; }
.w-7 { width: 1.75rem !important; min-width: 1.75rem !important; }
.h-7 { height: 1.75rem !important; min-height: 1.75rem !important; }
.w-8 { width: 2rem !important; min-width: 2rem !important; }
.h-8 { height: 2rem !important; min-height: 2rem !important; }
.w-32 { width: 8rem !important; min-width: 8rem !important; }
.w-11 { width: 2.75rem !important; min-width: 2.75rem !important; }
.h-11 { height: 2.75rem !important; min-height: 2.75rem !important; }
.w-12 { width: 3rem !important; min-width: 3rem !important; }
.h-12 { height: 3rem !important; min-height: 3rem !important; }
.w-14 { width: 3.5rem !important; min-width: 3.5rem !important; }
.h-14 { height: 3.5rem !important; min-height: 3.5rem !important; }
.w-24 { width: 6rem !important; min-width: 6rem !important; }
.h-16 { height: 4rem !important; min-height: 4rem !important; }
.h-2 { height: 0.5rem !important; min-height: 0.5rem !important; }
.w-2 { width: 0.5rem !important; min-width: 0.5rem !important; }

/* Miscellaneous */
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.object-cover { object-fit: cover; }
.opacity-20 { opacity: 0.2; }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.shadow-md { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-md); }
.transition-transform { transition: transform 0.2s; }
.transition-colors { transition: color 0.2s, background-color 0.2s; }
.scale-100 { transform: scale(1); }

/* Star styling */
.fill-cta-to {
  fill: var(--l-cta-to);
}

/* Lucide SVGs stroke color */
.text-brand svg, .text-cta-to svg, .text-destructive svg {
  stroke: currentColor;
}
.stroke-current {
  stroke: currentColor;
}
.stroke-2 {
  stroke-width: 2;
}

/* Next layout items reset */
.bg-circuit-landing, .bg-brand-dark-landing {
  background-color: var(--l-brand-dark) !important;
}
.btn-cta-gradient-landing {
  background: linear-gradient(100deg, var(--l-cta-from) 0%, var(--l-cta-to) 100%) !important;
  color: #101218 !important;
}

/* absolute positions */
.-top-3 { top: -0.75rem !important; }
.left-7 { left: 1.75rem !important; }

/* margins & paddings */
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }

/* border brand & bg brand colors */
.border-brand { border-color: var(--l-brand) !important; }
.bg-brand { background-color: var(--l-brand) !important; }
.hover\:bg-brand:hover { background-color: var(--l-brand) !important; }
.hover\:text-white:hover { color: #ffffff !important; }

/* Landing FAQ container styling overrides */
.faq-accordion-container-landing {
  border: 1px solid var(--l-border) !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
  box-shadow: var(--shadow-sm) !important;
}

.faq-accordion-container-landing .faq-accordion-item {
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.faq-accordion-container-landing .faq-accordion-item:not(:last-child) {
  border-bottom: 1px solid var(--l-border) !important;
}

.faq-accordion-container-landing .faq-accordion-header {
  padding: 1.25rem 1.5rem !important;
  background-color: transparent !important;
  border: none !important;
}
