/* Avyris Labs - Optimized CSS (replaces Tailwind CDN) */

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #020617;
  color: #e2e8f0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Material Icons === */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

/* Reduce animations on mobile for performance */
@media (max-width: 768px) {
  .animate-float,
  .animate-pulse-slow {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-9 { gap: 2.25rem; }
.gap-10 { gap: 2.5rem; }

.min-h-screen {
  min-height: 100vh;
}

.w-full {
  width: 100%;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(12px);
  background-color: rgba(2, 6, 23, 0.7);
}

header .border-b {
  border-bottom: 1px solid #1e293b;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

nav a {
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: white;
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
}

/* === Hero Section === */
.hero {
  width: 100%;
  padding: 3rem 0;
  text-align: center;
}

.hero-bg {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 1rem;
  border-radius: 0.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 20, 235, 0.1) 0%, transparent 50%, rgba(139, 92, 246, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero h2 {
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .hero {
    padding: 6rem 0;
  }
  
  .hero-bg {
    gap: 2rem;
    padding: 1rem;
  }
  
  .hero h1 {
    font-size: 3.75rem;
  }
  
  .hero h2 {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 12rem 0;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  max-width: 480px;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-primary {
  background-color: #1414eb;
  color: white;
  box-shadow: 0 10px 25px -5px rgba(20, 20, 235, 0.5);
}

.btn-primary:hover {
  background-color: rgba(20, 20, 235, 0.9);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: #1e293b;
  color: #cbd5e1;
}

.btn-secondary:hover {
  background-color: #334155;
  color: white;
  transform: scale(1.05);
}

@media (min-width: 480px) {
  .btn {
    height: 3rem;
    padding: 0 1.25rem;
    font-size: 1rem;
  }
}

/* === Cards === */
.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  background-color: #0f172a;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 20, 235, 0.5);
  box-shadow: 0 10px 25px -5px rgba(20, 20, 235, 0.2);
}

.card-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: rgba(20, 20, 235, 0.2);
  margin-bottom: 0.5rem;
}

.card-icon .material-symbols-outlined {
  color: #1414eb;
  font-size: 1.875rem;
}

.card h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.card p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.625;
}

.feature-card {
  padding: 1.5rem;
  text-align: center;
}

.feature-card .card-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
}

.feature-card p {
  font-size: 0.875rem;
}

/* === Grid === */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sm\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .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-left {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* === Sections === */
section {
  width: 100%;
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  color: white;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-header p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 0;
  }
  
  .section-header h2 {
    font-size: 2.25rem;
    font-weight: 900;
  }
}

/* === Footer === */
footer {
  width: 100%;
  background-color: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 2rem 0;
}

footer h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 1rem;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

footer .social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

footer .social-links svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 768px) {
  footer .social-links {
    justify-content: flex-start;
  }
}

/* === Spacing Utilities === */
.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.pt-5 { padding-top: 1.25rem; }
.pt-8 { padding-top: 2rem; }
.pb-6 { padding-bottom: 1.5rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* === Text Utilities === */
.text-center {
  text-align: center;
}

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.uppercase {
  text-transform: uppercase;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-5xl {
  max-width: 64rem;
}

/* === Misc === */
.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.border-solid {
  border-style: solid;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.cursor-pointer {
  cursor: pointer;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* === Hidden on mobile === */
.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\\:flex {
    display: flex;
  }
}

/* === Grow === */
.grow {
  flex-grow: 1;
}

.flex-1 {
  flex: 1 1 0%;
}

/* === Size utilities === */
.size-8 {
  width: 2rem;
  height: 2rem;
}

.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-fit { width: fit-content; }

/* === Transform === */
.transform {
  transform: translateZ(0);
}

/* === Hover effects === */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Disable hover effects on mobile for better performance */
@media (max-width: 768px) {
  .hover-lift:hover {
    transform: none;
  }
}
