/* Global resets and base styles */
html {
  scroll-behavior: smooth;
}

body {
  /* Dynamic gradient overlay to match SaaS vibe */
  background-image: radial-gradient(circle at 50% 0%, rgba(20, 30, 50, 1) 0%, rgba(11, 15, 25, 1) 50%, rgba(11, 15, 25, 1) 100%);
  background-attachment: fixed;
}

/* Custom Scrollbar for sleekness */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2A2E3B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3B4051;
}

/* Remove number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* Smooth Accordion Body Transition */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease-in-out;
}

.accordion-content.open {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

/* Matrix Table Horiz Scroll Styles */
.matrix-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
}

/* Glass inputs */
.inp-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.inp-glass:focus {
  background: rgba(37, 99, 235, 0.05);
  border-color: #2563EB;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Highlighted alternative animation/glow */
.highlight-row {
  position: relative;
  border-color: #059669 !important;
  box-shadow: 0 0 0 1px #059669;
}

.highlight-row td {
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.05) 0%, rgba(5, 150, 105, 0.0) 100%);
}

/* Global Focus Visible Styling (A11y) */
*:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* --- New Content Styles --- */

/* Hero Section Styles */
.hero-section {
  background: radial-gradient(60% 120% at 50% 10%, rgba(37, 99, 235, 0.08) 0%, rgba(11, 15, 25, 0) 100%);
}

/* FAQ Accordion Styles */
.faq-item {
  border-bottom: 1px solid #2A2E3B;
}

.faq-header {
  cursor: pointer;
  transition: background-color 200ms ease;
}

.faq-header:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.faq-answer>div {
  min-height: 0;
}

.faq-answer.open {
  grid-template-rows: 1fr;
}

/* Use Cases Cards Hover */
.use-case-card {
  transition: all 300ms ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: #2563EB;
  background-color: rgba(37, 99, 235, 0.03);
}

/* Step Number Badge */
.step-number {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

/* Custom Select Styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563EB'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

/* Loading Spin Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}