/* DPLY Landing Page Styles */

/* Custom Tailwind Configuration */
@import url('https://fonts.googleapis.com/css2?family=SF+Mono:wght@300;400;500;600;700&family=Consolas:wght@400;500;600;700&family=Monaco:wght@400&display=swap');

/* CSS Variables for consistent theming */
:root {
  --color-background: #0F0F0F;
  --color-foreground: #FFFFFF;
  --color-card: #1A1A1A;
  --color-card-foreground: #FFFFFF;
  --color-popover: #252525;
  --color-popover-foreground: #FFFFFF;
  --color-primary: #4ADE80;
  --color-primary-foreground: #FFFFFF;
  --color-secondary: #4ADE80;
  --color-secondary-foreground: #FFFFFF;
  --color-muted: #1A1A1A;
  --color-muted-foreground: #666666;
  --color-accent: #4ADE80;
  --color-accent-foreground: #FFFFFF;
  --color-destructive: #EF4444;
  --color-destructive-foreground: #FFFFFF;
  --color-border: #2A2A2A;
  --color-input: #333333;
  --color-ring: #4ADE80;
  
  --font-display: "SF Mono", "Consolas", "Monaco", "Menlo", monospace;
  --font-body: "SF Mono", "Consolas", "Monaco", "Menlo", monospace;
  --font-mono: "SF Mono", "Consolas", "Monaco", "Menlo", monospace;
  
  --radius-lg: 0.25rem;
  --radius-md: calc(0.25rem - 1px);
  --radius-sm: calc(0.25rem - 2px);
}

/* Base styles */
* {
  border-color: var(--color-border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.005em;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--foreground);
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 400;
}

h1 { font-size: 13px; }
h2 { font-size: 12px; }
h3 { font-size: 11px; }
h4 { font-size: 10px; }
h5 { font-size: 9px; }
h6 { font-size: 8px; }

.text-lg { font-size: 12px; font-weight: 400; }
.text-base { font-size: 11px; font-weight: 400; }
.text-sm { font-size: 10px; font-weight: 400; }
.text-xs { font-size: 9px; font-weight: 400; }

strong, .font-medium, .font-semibold, .font-bold {
  font-weight: 500;
}

code {
  font-family: var(--font-mono);
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Utility classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #4ADE80 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0F0F0F;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #4ADE80;
}

/* Button hover effects */
.btn-primary {
  background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.btn-outline {
  border: 1px solid #4ADE80;
  color: #4ADE80;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(74, 222, 128, 0.1);
  border-color: #4ADE80;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Navigation styles */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4ADE80;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Background patterns */
.bg-pattern {
  background-image: 
    linear-gradient(rgba(74, 222, 128, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Loading spinner */
.spinner {
  border: 2px solid #2A2A2A;
  border-top: 2px solid #4ADE80;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive design helpers */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid #4ADE80;
  outline-offset: 2px;
}

/* Selection styles */
::selection {
  background: rgba(74, 222, 128, 0.3);
  color: #FFFFFF;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #FFFFFF;
    --color-muted-foreground: #CCCCCC;
  }
}

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