:root {
  --brand-dark: #172554;
  --brand-red: #FF3B30;
  --brand-blue: #38BDF8;
  --brand-blueLight: #BAE6FD;
}

body {
  background-color: #ffffff;
  color: var(--brand-dark);
  overflow-x: hidden;
  font-family: 'Outfit', 'Plus Jakarta Sans', 'Patrick Hand', sans-serif;
}

/* Particle background */
.particle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--brand-blue);
  border-radius: 50%;
  opacity: 0.7;
}
.bg-grid-pattern {
  background-size: 24px 24px;
  background-image: radial-gradient(var(--brand-blueLight) 1px, transparent 1px);
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
::selection {
  background-color: var(--brand-red);
  color: white;
}

/* Custom animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
  40%, 43% { transform: translate3d(0, -30px, 0); }
  70% { transform: translate3d(0, -15px, 0); }
  90% { transform: translate3d(0,-4px,0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--brand-blue), 0 0 10px var(--brand-blue), 0 0 15px var(--brand-blue); }
  50% { box-shadow: 0 0 10px var(--brand-blue), 0 0 20px var(--brand-blue), 0 0 30px var(--brand-blue); }
}
@keyframes slideInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
  25% { transform: translateY(-20px) rotate(90deg); opacity: 1; }
  50% { transform: translateY(-40px) rotate(180deg); opacity: 0.8; }
  75% { transform: translateY(-20px) rotate(270deg); opacity: 0.9; }
}
@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 5px var(--brand-red), 0 0 10px var(--brand-red), 0 0 15px var(--brand-red); }
  50% { text-shadow: 0 0 10px var(--brand-red), 0 0 20px var(--brand-red), 0 0 30px var(--brand-red); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 1s ease-in-out infinite; }
.animate-marquee { animation: marquee 20s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Layout utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Flex utilities */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.whitespace-nowrap { white-space: nowrap; }

/* Grid utilities */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Spacing utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }

.pb-10 { padding-bottom: 2.5rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-32 { padding-bottom: 8rem; }

.pl-2 { padding-left: 0.5rem; }
.pr-2 { padding-right: 0.5rem; }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

.-top-6 { top: -1.5rem; }
.-top-10 { top: -2.5rem; }
.-top-16 { top: -4rem; }
.-right-6 { right: -1.5rem; }
.-right-10 { right: -2.5rem; }
.-bottom-2 { bottom: -0.5rem; }
.-bottom-4 { bottom: -1rem; }

.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-4 { transform: translateY(-1rem); }
.translate-y-1 { transform: translateY(0.25rem); }
.translate-x-1 { transform: translateX(0.25rem); }

.rotate-1 { transform: rotate(1deg); }
.rotate-6 { transform: rotate(6deg); }
.rotate-12 { transform: rotate(12deg); }
.rotate-\[-2deg\] { transform: rotate(-2deg); }

/* Sizing utilities */
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-full { width: 100%; }

.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-full { height: 100%; }

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

.min-h-screen { min-height: 100vh; }

/* Typography utilities */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.font-sans { font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; }
.font-display { font-family: 'Outfit', sans-serif; }
.font-hand { font-family: 'Patrick Hand', cursive; }
.font-mono { font-family: 'Courier New', monospace; }

.leading-relaxed { line-height: 1.625; }
.leading-\[0\.9\] { line-height: 0.9; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }

.underline { text-decoration: underline; }
.decoration-wavy { text-decoration-style: wavy; }
.decoration-2 { text-decoration-thickness: 2px; }
.underline-offset-4 { text-underline-offset: 4px; }

/* Color utilities */
.text-white { color: white; }
.text-brand-dark { color: var(--brand-dark); }
.text-brand-red { color: var(--brand-red); }
.text-brand-blue { color: var(--brand-blue); }
.text-brand-blueLight { color: var(--brand-blueLight); }
.text-gray-300 { color: #d1d5db; }
.text-yellow-400 { color: #fbbf24; }

.bg-white { background-color: white; }
.bg-brand-dark { background-color: var(--brand-dark); }
.bg-brand-red { background-color: var(--brand-red); }
.bg-brand-blue { background-color: var(--brand-blue); }
.bg-brand-blueLight { background-color: var(--brand-blueLight); }
.bg-brand-blue-light { background-color: var(--brand-blueLight); }
.bg-red-500 { background-color: #ef4444; }
.bg-yellow-500 { background-color: #eab308; }
.bg-green-500 { background-color: #22c55e; }
.bg-gray-700 { background-color: #374151; }
.bg-green-400 { background-color: #4ade80; }

/* Border utilities */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t-2 { border-top-width: 2px; }
.border-b-2 { border-bottom-width: 2px; }
.border-y-2 { border-top-width: 2px; border-bottom-width: 2px; }

.border-brand-dark { border-color: var(--brand-dark); }
.border-gray-700 { border-color: #374151; }
.border-white { border-color: white; }

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

.border-radius { border-radius: 0.5rem; }

/* Shadow utilities */
.shadow-hard { box-shadow: 4px 4px 0px 0px var(--brand-dark); }
.shadow-hard-sm { box-shadow: 2px 2px 0px 0px var(--brand-dark); }
.shadow-hard-lg { box-shadow: 8px 8px 0px 0px var(--brand-dark); }

/* Transition utilities */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Transform utilities */
.transform { transform: var(--tw-transform); }
.hover\:rotate-6:hover { transform: rotate(6deg); }
.hover\:bg-brand-blue-light:hover { background-color: var(--brand-blueLight); }
.hover\:bg-red-600:hover { background-color: #dc2626; }
.hover\:text-brand-red:hover { color: var(--brand-red); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-hard-lg:hover { box-shadow: 8px 8px 0px 0px var(--brand-dark); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }
.active\:translate-y-1:active { transform: translateY(0.25rem); }
.active\:shadow-none:active { box-shadow: none; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.focus\:outline-none:focus { outline: none; }
.focus\:shadow-hard-sm:focus { box-shadow: 2px 2px 0px 0px var(--brand-dark); }
.placeholder\:text-brand-dark\/40::placeholder { color: rgba(23, 37, 84, 0.4); }

/* Z-index utilities */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Opacity utilities */
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Cursor utilities */
.cursor-pointer { cursor: pointer; }

/* Object utilities */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* Button styles */
.btn-primary {
  background-color: var(--brand-red);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--brand-dark);
  font-weight: bold;
  box-shadow: 4px 4px 0px 0px var(--brand-dark);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary:hover {
  box-shadow: 8px 8px 0px 0px var(--brand-dark);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: white;
  color: var(--brand-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--brand-dark);
  font-weight: bold;
  box-shadow: 4px 4px 0px 0px var(--brand-dark);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-secondary:hover {
  box-shadow: 8px 8px 0px 0px var(--brand-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background-color: transparent;
  color: var(--brand-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--brand-dark);
  font-weight: bold;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-outline:hover {
  background-color: var(--brand-dark);
  color: white;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background-color: white;
  border-bottom: 2px solid var(--brand-dark);
  padding: 0.75rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-normal {
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-bottom: 2px solid transparent;
  padding: 1.25rem 0;
}

/* Chat demo styles */
.chat-window {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid var(--brand-dark);
  box-shadow: 4px 4px 0px 0px var(--brand-dark);
  display: flex;
  flex-direction: column;
  height: 500px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: #F8FAFC;
  position: relative;
}
.chat-messages::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 24px 24px;
  background-image: radial-gradient(var(--brand-blueLight) 1px, transparent 1px);
  opacity: 0.3;
  pointer-events: none;
}
.message-user {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.message-model {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}
.message-bubble {
  max-width: 85%;
  padding: 1rem;
  border: 2px solid var(--brand-dark);
  box-shadow: 2px 2px 0px 0px var(--brand-dark);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.625;
  white-space: pre-wrap;
}
.message-user .message-bubble {
  background-color: var(--brand-blue);
  color: white;
  border-radius: 0.75rem;
  border-bottom-right-radius: 0;
}
.message-model .message-bubble {
  background-color: white;
  color: var(--brand-dark);
  border-radius: 0.75rem;
  border-bottom-left-radius: 0;
}
.loading-bubble {
  background-color: white;
  border-radius: 0.75rem;
  border-bottom-left-radius: 0;
  padding: 1rem;
  border: 2px solid var(--brand-dark);
  box-shadow: 2px 2px 0px 0px var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Flip card styles */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
  min-height: 320px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  min-height: 320px;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 320px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.flip-card-back {
  transform: rotateY(180deg);
}
.flip-card-back video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:text-left { text-align: left; }
  .lg\:text-8xl { font-size: 6rem; line-height: 1; }
  .lg\:pt-48 { padding-top: 12rem; }
  .lg\:pb-32 { padding-bottom: 8rem; }
  .lg\:max-w-full { max-width: 100%; }
  .lg\:mx-0 { margin-left: 0; margin-right: 0; }
  .lg\:justify-start { justify-content: flex-start; }
  .lg\:block { display: block; }
}
