/* www/styles.css */

/* ── SYSTEM DESIGN TOKENS ────────────────────────────────── */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-outfit: 'Outfit', var(--font-sans);
  
  --zinc-50: #f4f4f5;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-950: #431407;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --red-400: #f87171;
  --red-500: #ef4444;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
}

/* ── BASE RESET & GLOBAL FIXES ───────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--zinc-950);
  color: var(--zinc-100);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ── STRICT SVG ICON SIZE CAP (CRITICAL FOR UI) ───────────── */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

svg.w-2.h-2, .w-2 { width: 0.5rem !important; height: 0.5rem !important; min-width: 0.5rem !important; }
svg.w-3.h-3, .w-3 { width: 0.75rem !important; height: 0.75rem !important; min-width: 0.75rem !important; }
svg.w-3\.5.h-3\.5, .w-3\.5 { width: 0.875rem !important; height: 0.875rem !important; min-width: 0.875rem !important; }
svg.w-4.h-4, .w-4 { width: 1rem !important; height: 1rem !important; min-width: 1rem !important; }
svg.w-5.h-5, .w-5 { width: 1.25rem !important; height: 1.25rem !important; min-width: 1.25rem !important; }
svg.w-6.h-6, .w-6 { width: 1.5rem !important; height: 1.5rem !important; min-width: 1.5rem !important; }
svg.w-8.h-8, .w-8 { width: 2rem !important; height: 2rem !important; min-width: 2rem !important; }
svg.w-10.h-10, .w-10 { width: 2.5rem !important; height: 2.5rem !important; min-width: 2.5rem !important; }
svg.w-12.h-12, .w-12 { width: 3rem !important; height: 3rem !important; min-width: 3rem !important; }

/* ── ACCENT GLOW BACKGROUND ──────────────────────────────── */
.glow-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 600px;
  background: radial-gradient(ellipse at top, rgba(234, 88, 12, 0.12) 0%, rgba(9, 9, 11, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAVIGATION HEADER ───────────────────────────────────── */
header.navbar-scrolled {
  background-color: rgba(9, 9, 11, 0.95);
  border-bottom-color: var(--zinc-800);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#mobile-nav-drawer.open-drawer {
  display: block !important;
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── FEATURE CARDS ───────────────────────────────────────── */
.feature-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 35px -10px rgba(234, 88, 12, 0.12);
}

/* ── FORM ELEMENTS BEAUTIFICATION ───────────────────────── */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  font-family: var(--font-sans);
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--zinc-950) !important;
  border: 1px solid var(--zinc-800) !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--orange-500) !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2) !important;
  outline: none !important;
}

/* Chrome, Safari, Edge, Opera: Hide number spin buttons */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Styling select dropdown arrow */
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1rem !important;
  padding-right: 2.5rem !important;
}

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--zinc-900);
  background-color: var(--zinc-950);
  border-radius: 0.75rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item:hover {
  border-color: var(--zinc-800);
}

.faq-item.faq-active {
  border-color: rgba(249, 115, 22, 0.4);
  background-color: rgba(24, 24, 27, 0.6);
}

.faq-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 1.25rem !important;
  text-align: left !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  color: var(--zinc-200) !important;
  gap: 1rem !important;
}

.faq-trigger:hover {
  color: #ffffff !important;
}

.faq-chevron {
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  flex-shrink: 0 !important;
  color: var(--zinc-500) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease !important;
}

.faq-item.faq-active .faq-chevron {
  transform: rotate(180deg) !important;
  color: var(--orange-400) !important;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.98); }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}
