/* Green-AI Design System Implementation */
:root {
  /* Backgrounds - Clean & Minimal */
  --bg-page: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-section: rgba(0, 0, 0, 0.02);

  /* Text - Professional Hierarchy */
  --text-primary: #bb6ce9;
  /* Main headings #003720 */
  --text-body: rgb(14, 15, 12);
  /* Body text #0e0f0c */
  --text-secondary: rgb(131, 146, 140);
  /* Supporting text #83928c */
  --text-muted: rgb(175, 183, 180);
  /* Captions, timestamps #afb7b4 */

  /* Borders - Subtle Separation */
  --border-light: rgba(0, 0, 0, 0.1);
  --border-medium: rgba(0, 0, 0, 0.2);
  --border-strong: rgba(0, 0, 0, 0.3);

  /* BRAND COLORS - Green Accent System */
  --accent-primary: #b376cf;
  --accent-strong: #bb6ce9;
  --accent-text: rgb(205, 106, 214);
  --accent-wash: rgba(187, 77, 190, 0.1);

  /* Hero Gradients */
  --gradient-hero: radial-gradient(at 53% 78%, hsla(60, 100%, 50%, 0.3) 0px, transparent 50%),
    radial-gradient(at 71% 91%, hsla(276, 70%, 69%, 0.3) 0px, transparent 50%),
    radial-gradient(at 31% 91%, hsla(30, 100%, 50%, 0.17) 0px, transparent 50%);

  /* Button Gradients */
  --gradient-button: linear-gradient(to bottom right, var(--accent-primary), var(--accent-strong));
}

/* Shadcn variables */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 3.9%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --accent: 0 0% 96.1%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 0 0% 3.9%;
  --chart-1: 12 76% 61%;
  --chart-2: 173 58% 39%;
  --chart-3: 197 37% 24%;
  --chart-4: 43 74% 66%;
  --chart-5: 27 87% 67%;
  --radius: 0.5rem;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-page);
  color: var(--text-body);
}

/* Typography System */
.heading-1 {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-2 {
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.heading-3 {
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.body-large {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-body);
}

.body-medium {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
  color: var(--text-body);
}

.body-small {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Component Styles */
.btn-primary {
  background: var(--gradient-button);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 9999px;
  padding: 14px 24px;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0px 4px 8px rgba(148, 242, 127, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 14px 24px;
  font-family: system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-medium);
}

.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid var(--border-light);
  border-radius: 9999px;
  margin: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-link {
  padding: 8px 16px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.nav-link:hover {
  background: var(--accent-wash);
  color: var(--text-primary);
}

.hero-section {
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 7rem 1.5rem 3rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--border-medium);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Color utilities for Tailwind */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

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

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-header {
    margin: 0.5rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-light);
  }

  .hero-section {
    padding: 4rem 1rem;
    min-height: 80vh;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}