/* IBM-Style Design System for Cogniolab */
/* Based on IBM Design Language - Clean, Minimal, Elegant */

:root {
  /* Color Palette */
  --color-primary: #0f62fe;
  --color-primary-hover: #0353e9;
  --color-secondary: #393939;
  --color-text-primary: #161616;
  --color-text-secondary: #525252;
  --color-text-light: #6f6f6f;
  --color-background: #ffffff;
  --color-background-subtle: #f4f4f4;
  --color-border: #e0e0e0;
  --color-accent-teal: #00c0bb;
  --color-accent-purple: #8a3ffc;
  
  /* Typography Scale */
  --font-family: -apple-system, BlinkMacSystemFont, 'IBM Plex Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'IBM Plex Mono', 'SF Mono', Monaco, Consolas, monospace;
  
  /* Font Sizes */
  --text-display-large: 76px;
  --text-display: 64px;
  --text-heading-01: 48px;
  --text-heading-02: 36px;
  --text-heading-03: 28px;
  --text-heading-04: 24px;
  --text-body-large: 20px;
  --text-body: 16px;
  --text-body-small: 14px;
  --text-caption: 12px;
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
  
  /* Spacing Scale (8px grid) */
  --spacing-01: 8px;
  --spacing-02: 16px;
  --spacing-03: 24px;
  --spacing-04: 32px;
  --spacing-05: 40px;
  --spacing-06: 48px;
  --spacing-07: 56px;
  --spacing-08: 64px;
  --spacing-09: 80px;
  --spacing-10: 96px;
  --spacing-11: 120px;
  --spacing-12: 160px;
  
  /* Border Radius */
  --radius-small: 2px;
  --radius-medium: 4px;
  --radius-large: 8px;
  
  /* Shadows */
  --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 4px 16px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin: 0;
}

.heading-display-large {
  font-size: var(--text-display-large);
  font-weight: var(--font-weight-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading-display {
  font-size: var(--text-display);
  font-weight: var(--font-weight-light);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-01 {
  font-size: var(--text-heading-01);
  font-weight: var(--font-weight-light);
  margin-bottom: var(--spacing-04);
}

.heading-02 {
  font-size: var(--text-heading-02);
  font-weight: var(--font-weight-regular);
  margin-bottom: var(--spacing-03);
}

.heading-03 {
  font-size: var(--text-heading-03);
  font-weight: var(--font-weight-regular);
  margin-bottom: var(--spacing-03);
}

.heading-04 {
  font-size: var(--text-heading-04);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-02);
}

.body-large {
  font-size: var(--text-body-large);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.body-text {
  font-size: var(--text-body);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-04);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-06);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-09);
  }
}

/* Section Spacing */
.section {
  padding: var(--spacing-09) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--spacing-11) 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--spacing-12) 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: 1;
  padding: var(--spacing-02) var(--spacing-04);
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-ghost:hover {
  text-decoration-thickness: 2px;
}

/* Cards */
.card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  padding: var(--spacing-04);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-title {
  font-size: var(--text-heading-04);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-02);
  color: var(--color-text-primary);
}

.card-description {
  font-size: var(--text-body);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-04);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 768px) {
  .grid {
    gap: var(--spacing-05);
  }
}

@media (min-width: 1024px) {
  .grid {
    gap: var(--spacing-06);
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Navigation */
.nav {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-04);
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 var(--spacing-09);
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-05);
}

.nav-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  padding: var(--spacing-01) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Hero Section */
.hero {
  padding: var(--spacing-11) 0;
  background: var(--color-background);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-08);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-10);
  }
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: var(--text-display);
  font-weight: var(--font-weight-light);
  line-height: 1.1;
  margin-bottom: var(--spacing-04);
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-display-large);
  }
}

.hero-subtitle {
  font-size: var(--text-body-large);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-06);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-03);
  flex-wrap: wrap;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-01); }
.mt-2 { margin-top: var(--spacing-02); }
.mt-3 { margin-top: var(--spacing-03); }
.mt-4 { margin-top: var(--spacing-04); }
.mt-5 { margin-top: var(--spacing-05); }
.mt-6 { margin-top: var(--spacing-06); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-01); }
.mb-2 { margin-bottom: var(--spacing-02); }
.mb-3 { margin-bottom: var(--spacing-03); }
.mb-4 { margin-bottom: var(--spacing-04); }
.mb-5 { margin-bottom: var(--spacing-05); }
.mb-6 { margin-bottom: var(--spacing-06); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-01); }
.pt-2 { padding-top: var(--spacing-02); }
.pt-3 { padding-top: var(--spacing-03); }
.pt-4 { padding-top: var(--spacing-04); }
.pt-5 { padding-top: var(--spacing-05); }
.pt-6 { padding-top: var(--spacing-06); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-01); }
.pb-2 { padding-bottom: var(--spacing-02); }
.pb-3 { padding-bottom: var(--spacing-03); }
.pb-4 { padding-bottom: var(--spacing-04); }
.pb-5 { padding-bottom: var(--spacing-05); }
.pb-6 { padding-bottom: var(--spacing-06); }

/* Footer Styles - IBM Design */
.footer {
    background: var(--color-background-subtle);
    color: var(--color-text-primary);
    padding: var(--spacing-10) 0 var(--spacing-06);
    margin-top: var(--spacing-12);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-06);
    margin-bottom: var(--spacing-08);
}

.footer-column,
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    font-size: var(--text-body);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-04);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-body-small);
    padding: var(--spacing-01) 0;
    transition: color var(--transition-base);
    display: block;
}

.footer-section a:hover {
    color: var(--color-text-primary);
}

.footer-title {
    font-size: var(--text-body);
    font-weight: var(--font-weight-medium);
    color: #f4f4f4;
    margin-bottom: var(--spacing-04);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    color: #a8a8a8;
    text-decoration: none;
    font-size: var(--text-body-small);
    padding: var(--spacing-01) 0;
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: #f4f4f4;
}

.footer-bottom {
    padding-top: var(--spacing-06);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-body-small);
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-04);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}