/* BC Mosaic Static Home Page Styles */

/* ========================================
   Font Faces
   ======================================== */
@font-face {
  font-family: 'Satoshi';
  src: url('/tre-public/home/assets/Satoshi-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/tre-public/home/assets/Satoshi-VariableItalic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ========================================
   CSS Variables (Design Tokens)
   ======================================== */
:root {
  /* Primary Colors */
  --color-primary: 193, 100%, 34%;
  --color-neon: 162, 100%, 47%;
  
  /* Background Colors */
  --color-bg: 0, 0%, 97%;
  --color-surface: 210, 20%, 98%;
  --color-surface-elevated: 0, 0%, 100%;
  --color-header-bg: 194, 100%, 22%;
  
  /* Text Colors */
  --color-text: 220, 20%, 20%;
  --color-text-secondary: 220, 10%, 45%;
  --color-text-inverse: 0, 0%, 100%;
  
  /* Border Colors */
  --color-border: 220, 15%, 90%;
  
  /* Button Colors */
  --btn-neon-bg: 162, 100%, 47%;
  --btn-neon-text: 275, 79%, 42%;
  --btn-neon-hover: 162, 89%, 76%;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  
  /* Transitions */
  --transition-fast: 150ms;
  --transition-normal: 200ms;
  --transition-slow: 300ms;
}

/* ========================================
   Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Satoshi', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  min-height: 100vh;
  background-color: hsl(var(--color-bg));
  color: hsl(var(--color-text));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 900;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

.text-primary {
  color: hsl(var(--color-primary));
}

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

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

.text-text-inverse {
  color: hsl(var(--color-text-inverse));
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container.max-w-6xl {
  max-width: 72rem;
}

.container.max-w-7xl {
  max-width: 80rem;
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-12 {
  gap: 3rem;
}

/* Grid */
.grid {
  display: grid;
}

/* Spacing */
.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  border-bottom: 1px solid hsl(var(--color-border));
  background-color: hsl(var(--color-header-bg));
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.nav-logo {
  height: 2rem;
  width: auto;
}

.nav-signin-btn {
  height: 2.25rem;
  width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast) ease;
}

.nav-signin-btn:hover {
  background-color: hsl(var(--color-text), 0.1);
}

.nav-signin-btn img {
  height: 1.25rem;
  width: 1.25rem;
  opacity: 0.6;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  right: 0;
  width: 100%;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
  text-align: left;
  padding: 5rem 0;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--color-primary));
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: hsl(var(--color-text));
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: hsl(var(--color-text-secondary));
}

@media (min-width: 768px) {
  .hero-content {
    padding: 8rem 0;
  }
  
  .hero-title {
    font-size: 3.75rem;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.btn-neon {
  background-color: hsl(var(--btn-neon-bg));
  color: hsl(var(--btn-neon-text));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-neon:hover {
  background-color: hsl(var(--btn-neon-hover));
}

.btn-lg {
  font-size: 1.125rem;
  padding: 0.75rem 2rem;
  height: 3rem;
}

.btn-md {
  padding: 0.75rem 1.5rem;
}

/* ========================================
   Features Section
   ======================================== */
.features {
  position: relative;
  padding: 5rem 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.features-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-title {
    font-size: 2.25rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: hsl(var(--color-surface-elevated));
  border: 1px solid hsl(var(--color-border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition-slow) ease;
}

.card:hover {
  border-color: hsl(var(--color-primary), 0.5);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-icon {
  height: 2.5rem;
  width: 2.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--color-text));
  margin-bottom: 0.5rem;
}

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

/* ========================================
   Benefits Section
   ======================================== */
.benefits {
  position: relative;
  overflow: hidden;
}

.benefits-bg {
  position: absolute;
  inset: 0;
  left: 0;
  width: 50%;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  pointer-events: none;
}

.benefits-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
}

.benefits-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.benefits-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--color-text));
}

.benefits-description {
  font-size: 1.125rem;
  color: hsl(var(--color-text-secondary));
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-icon {
  height: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.benefit-text {
  color: hsl(var(--color-text));
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .benefits-title {
    font-size: 2.25rem;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid hsl(var(--color-border));
  background-color: hsl(var(--color-header-bg));
  margin-top: 5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--color-text-inverse));
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-link {
  color: hsl(var(--color-text-inverse), 0.8);
  transition: color var(--transition-fast) ease;
}

.footer-link:hover {
  color: hsl(var(--color-text-inverse));
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}


/* ========================================
   Utility Classes
   ======================================== */
.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

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

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.pt-4 {
  padding-top: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.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;
}

.p-6 {
  padding: 1.5rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.h-9 {
  height: 2.25rem;
}

.w-9 {
  width: 2.25rem;
}

.h-10 {
  height: 2.5rem;
}

.w-10 {
  width: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.w-auto {
  width: auto;
}

.max-w-2xl {
  max-width: 42rem;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.inset-y-0 {
  top: 0;
  bottom: 0;
}

.right-0 {
  right: 0;
}

.left-0 {
  left: 0;
}

.w-1\/2 {
  width: 50%;
}

.pointer-events-none {
  pointer-events: none;
}

.bg-white {
  background-color: white;
}

.rounded-md {
  border-radius: var(--radius-sm);
}

.transition-colors {
  transition: color var(--transition-fast) ease;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-border {
  border-color: hsl(var(--color-border));
}

/* Responsive font sizes */
@media (min-width: 768px) {
  .md\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  
  .md\:text-6xl {
    font-size: 3.75rem;
  }
  
  .md\:text-4xl {
    font-size: 2.25rem;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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