/* ========================================
   MINDRUSH - MAIN STYLESHEET
   Consolidação de: style.css + replicate-theme.css + custom.css
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   CSS VARIABLES & THEME
   ======================================== */

:root {
  /* Brand Colors */
  --primary: #a855f7;           /* Purple */
  --secondary: #06b6d4;         /* Cyan */
  --background: #FDFDFD;        /* Cold White */
  --surface: #FAFAFA;           /* Light Gray */
  --foreground: #111827;        /* Graphite */

  /* System Colors */
  --muted-foreground: #6B7280;
  --border: #F3F4F6;

  /* Radius */
  --radius-pill: 9999px;
  --radius-bento: 2.5rem;

  /* Shadows */
  --shadow-tech: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.15);
}

/* ========================================
   BASE STYLES
   ======================================== */

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.font-black {
  font-weight: 900;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.tracking-widest {
  letter-spacing: 0.2em;
}

h1, .h1 {
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-brand-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ========================================
   BUTTONS & PILLS
   ======================================== */

.btn-pill {
  border-radius: var(--radius-pill);
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition:
    transform 700ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 700ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 700ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 700ms cubic-bezier(0.4, 0, 0.2, 1),
    color 700ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.2);
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--border);
  background: white;
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgb(243 244 246);
}

/* ========================================
   CARDS & BENTO GRID
   ======================================== */

.bento-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  padding: 2.5rem;
  transition:
    transform 700ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 700ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 700ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: var(--shadow-glow);
}

.glow-blur {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav-glass {
  background: rgba(253, 253, 253, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* ========================================
   FORMS & INPUTS
   ======================================== */

input, textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--foreground);
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease,
    background-color 300ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-foreground);
}

/* ========================================
   UTILITY CLASSES - Colors (Tailwind compatible)
   ======================================== */

.bg-\[\#111827\] { background-color: #111827; }
.bg-\[\#110D2A\] { background-color: #110D2A; }
.bg-\[\#FDFDFD\] { background-color: #FDFDFD; }
.bg-\[\#FAFAFA\] { background-color: #FAFAFA; }
.bg-\[\#F5F1FF\] { background-color: #F5F1FF; }
.bg-\[\#EEF2FA\] { background-color: #EEF2FA; }
.bg-\[\#E8EDFF\] { background-color: #E8EDFF; }
.bg-\[\#06b6d4\] { background-color: #06b6d4; }
.bg-\[\#a855f7\] { background-color: #a855f7; }

.border-\[\#EAE4FF\] { border-color: #EAE4FF; }

.text-\[\#111827\] { color: #111827; }
.text-\[\#06b6d4\] { color: #06b6d4; }
.text-\[\#a855f7\] { color: #a855f7; }

.section-dark {
  background: #111827;
  color: white;
}

.text-muted {
  color: var(--muted-foreground);
}

/* ========================================
   UTILITY CLASSES - Typography Sizes
   ======================================== */

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[120px\] { font-size: 120px; line-height: 1; }

.leading-\[0\.85\] { line-height: 0.85; }

/* ========================================
   UTILITY CLASSES - Spacing
   ======================================== */

.gap-24 { gap: 6rem; }
.gap-20 { gap: 5rem; }
.gap-16 { gap: 4rem; }
.gap-12 { gap: 3rem; }
.gap-8 { gap: 2rem; }

.mb-24 { margin-bottom: 6rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }

.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.pt-40 { padding-top: 10rem; }
.pt-24 { padding-top: 6rem; }
.pt-8 { padding-top: 2rem; }

.pb-24 { padding-bottom: 6rem; }
.pb-8 { padding-bottom: 2rem; }

/* ========================================
   UTILITY CLASSES - Positioning
   ======================================== */

.-top-16 { top: -4rem; }
.-left-4 { left: -1rem; }
.-mr-64 { margin-right: -16rem; }
.-mt-64 { margin-top: -16rem; }
.-ml-64 { margin-left: -16rem; }
.-mb-48 { margin-bottom: -12rem; }

/* ========================================
   UTILITY CLASSES - Grid (Responsive)
   ======================================== */

.md\:grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.md\:grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.md\:col-span-4 {
  grid-column: span 4 / span 4;
}
.md\:col-span-2 {
  grid-column: span 2 / span 2;
}
.lg\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lg\:grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lg\:col-span-2 {
  grid-column: span 2 / span 2;
}

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

@media (min-width: 768px) {
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:pt-56 { padding-top: 14rem; }
  .md\:pb-40 { padding-bottom: 10rem; }
  .md\:h-10 { height: 2.5rem; }
  .md\:gap-20 { gap: 5rem; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:text-9xl { font-size: 8rem; line-height: 1; }
}

/* ========================================
   HOVER STATES
   ======================================== */

.hover\:text-\[\#a855f7\]:hover { color: #a855f7; }
.hover\:text-\[\#111827\]:hover { color: #111827; }
.hover\:text-white:hover { color: white; }
.hover\:bg-black:hover { background-color: #000; }
.hover\:bg-gray-100:hover { background-color: rgb(243 244 246); }
.group:hover .group-hover\:text-purple-50 { color: rgb(245 243 255); }
.group:hover .group-hover\:text-cyan-50 { color: rgb(236 254 255); }
.group:hover .group-hover\:w-full { width: 100%; }

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.animate-scroll {
  animation: scroll 8s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(20px); }
}

/* ========================================
   FORM — PROJECT TYPE RADIO PILLS
   ======================================== */

.project-type-option {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.project-type-option span {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1.5px solid #e5e7eb;
  color: #6B7280;
  background: #F9FAFB;
  transition: all 250ms ease;
  user-select: none;
}

.project-type-option input:checked + span {
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  color: white;
  border-color: transparent;
}

.project-type-option:hover span {
  border-color: #a855f7;
  color: #a855f7;
}

.project-type-option input:focus-visible + span {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* ========================================
   FORM — Light theme inputs (inside white card)
   ======================================== */

.bg-gray-50 {
  background-color: #F9FAFB;
}

.border-gray-200 {
  border-color: #E5E7EB;
}

/* ========================================
   REDUCED MOTION (Accessibility)
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
