/* ===================================
   SysPromptHub Design System
   =================================== */

:root {
  /* Primary Colors */
  --primary-color: royalblue;
  --primary-dark: hwb(from var(--primary-color) h w calc(b + 10));
  --primary-light: hwb(from var(--primary-color) h calc(w + 10) b);

  /* Secondary/Accent */
  --accent-purple: #7C3AED;
  --accent-green: #10B981;
  --accent-orange: #F59E0B;

  /* Neutral Scale */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic */
  --bg-primary: #101020;
  --bg-secondary: #181828;
  --bg-dark: #111827;
  --text-primary: #f8f8f8;
  --text-secondary: #e0e0e0;
  --text-inverse: #222222;

  /* Spacing Scale (8px grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Typography - Font Families */
  --font-sans: 'Zalando Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Monaco', 'Courier New', monospace;

  /* Typography - Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.75rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Typography - Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Typography - Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;

  /* Typography - Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  --header-height: var(--space-2xl);
  --icon-height: 25vh;
  --icon-width: calc(var(--icon-height) * 16 / 9);

  --text-shadow: -1px -1px 0 black, 1px 1px 0 black, 1px 1px 3px black;
}

/* ===================================
   Base Styles
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-6xl);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--font-size-4xl);
  letter-spacing: var(--letter-spacing-tight);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

.text-accent {
  color: var(--accent-purple);
}

.text-shadow {
  text-shadow: var(--text-shadow);
}

/* ===================================
   Layout Components
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}

.card {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-lg);
  border-radius: var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.5s ease;

  /*&:hover {*/
  /*  box-shadow: 0 8px 24px var(--primary-color);*/
  /*  transform: translateY(-4px);*/
  /*}*/
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  align-content: center;
  height: var(--header-height);
  background-color: hwb(from var(--bg-primary) h w b / 50%);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: var(--space-sm) 0;
}

.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);

  &:hover, &:active {
    color: inherit;
  }

  img {
    height: 32px;
    width: 32px;
  }
}


.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--text-primary);
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
  background-color: hwb(from var(--primary-dark) h w b / 60%);
  color: var(--text-primary);
  border-color: var(--primary-color);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-inverse);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  --top-offset: calc(var(--space-4xl) + var(--header-height));
  position: relative;
  padding-top: var(--top-offset);
  padding-bottom: var(--space-4xl);
  text-align: center;
  /*background: linear-gradient(135deg, var(--gray-50) 0%, var(--bg-primary) 100%);*/
  min-height: 100vh;
}

.hero, .about-hero {
  .backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url("/images/hero-2.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
  }
}

.hero h1 {
  max-width: 80vw;
  margin: 0 auto var(--space-md);
  text-shadow: var(--text-shadow);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height-relaxed);
  text-shadow: var(--text-shadow);
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: var(--space-xl);
}

/* ===================================
   Metrics Section
   =================================== */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.metric-item {
  /*padding: var(--space-md);*/
  /*display: flex;*/
  /*flex-direction: column;*/
  /*align-items: center;*/
  /*gap: var(--space-xs);*/

  .metric-image {
    max-width: var(--icon-width);
    height: var(--icon-height);
    filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.8));
  }

  .metric-value {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
  }

  .metric-label {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
  }
}

/* ===================================
   Features Grid
   =================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

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

.feature-icon {
  max-width: var(--icon-width);
  height: var(--icon-height);
  margin: 0 auto var(--space-md);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
}

/* ===================================
   Organization Types Grid
   =================================== */

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.org-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.org-card p {
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
  margin-bottom: 0;
}

/* ===================================
   Steps Section
   =================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  counter-reset: step-counter;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background-color: var(--primary-color);
  color: var(--text-inverse);
  border-radius: 50%;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

.step-item h4 {
  margin-bottom: var(--space-sm);
}

.step-item p {
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
  margin-bottom: 0;
}

/* ===================================
   Trust Badges
   =================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.trust-badge {
  padding: var(--space-md);
  background-color: var(--bg-primary);
  border-radius: 8px;
}

.trust-badge h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
  margin-bottom: 0;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
  text-align: center;
  padding: var(--space-4xl) var(--space-md);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  color: var(--text-inverse);
}

.cta-section h2 {
  color: var(--text-inverse);
}

.cta-section p {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.cta-section .btn-primary {
  background-color: var(--text-inverse);
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background-color: var(--gray-100);
  color: var(--primary-dark);
}

/* ===================================
   About Page Styles
   =================================== */

.about-hero {
  position: relative;
  text-align: center;
  padding-top: calc(var(--space-3xl) + 60px);
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  /*background: linear-gradient(135deg, var(--gray-50) 0%, var(--bg-primary) 100%);*/
}

.founder-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.founder-image {
  width: 100%;
  /*border-radius: 50%;*/
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.founder-bio h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.founder-bio p {
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--space-md);
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.mission-box {
  /*padding: var(--space-xl);*/
  /*background-color: var(--bg-primary);*/
  /*border-radius: 12px;*/
  /*border: 2px solid var(--gray-200);*/
}

.mission-box h3 {
  color: var(--primary-color);
  /*margin-bottom: var(--space-md);*/
}

.mission-box p {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  margin-bottom: 0;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.value-card {
  /*padding: var(--space-lg);*/
  /*text-align: center;*/
}

.value-card h4 {
  color: var(--primary-color);
  /*margin-bottom: var(--space-sm);*/
}

.value-card p {
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
  /*margin-bottom: 0;*/
}

/* ===================================
   Footer
   =================================== */

.footer {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--gray-300);
  font-weight: var(--font-weight-normal);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-700);
  color: var(--gray-300);
  font-size: var(--font-size-sm);
}

/* ===================================
   Static Documents
   =================================== */

.document {
  margin-top: var(--header-height);
  padding: var(--space-md) 15vw;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .founder-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding-top: calc(var(--space-3xl) + 60px);
    padding-bottom: var(--space-3xl);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .features-grid,
  .org-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
