/* DYSANT Static Site - IBM Carbon Design System Inspired */

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

html {
  scroll-behavior: smooth;
  --primary: #0f62fe;
  --background: #ffffff;
  --text-primary: #161616;
  --text-secondary: #525252;
  --border: #e0e0e0;
  --layer-01: #f4f4f4;
  --header-bg: #161616;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0043ce;
  text-decoration: underline;
}

/* Site Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  flex-shrink: 0;
}

.logo-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo a {
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex: 1;
  margin-left: 3rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: white;
}

.lang-switcher {
  display: flex;
  gap: 0.75rem;
  margin-left: 2rem;
}

.lang-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.lang-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* Main Content */
.site-main {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-container {
  max-width: 800px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0043ce 100%);
  color: white;
  padding: 6rem 1rem;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: white;
  color: var(--primary);
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background-color: var(--layer-01);
  text-decoration: none;
}

/* Features Section */
.features {
  padding: 4rem 1rem;
  background-color: var(--layer-01);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 4px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--text-primary);
}

/* Blog Section */
.blog-preview {
  padding: 4rem 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
  margin-top: 0;
}

.blog-card h3 a {
  color: var(--text-primary);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.read-more {
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}

/* Blog Listing */
.blog-listing {
  padding: 3rem 0;
}

.blog-listing h1 {
  margin-top: 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  transition: all 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-header h2 {
  margin-top: 0.5rem;
}

.article-header h2 a {
  color: var(--text-primary);
}

.article-header h2 a:hover {
  color: var(--primary);
}

.article-link {
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

/* Blog Article */
.article-hero {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.article-hero h1 {
  margin-top: 0;
}

.article-doctype {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.article-body {
  padding: 2rem 0;
  line-height: 1.8;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.cta-section {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--layer-01);
  border-radius: 4px;
  text-align: center;
}

.cta-section h2 {
  margin-top: 0;
}

.article-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

/* Site Footer */
.site-footer {
  background-color: var(--header-bg);
  color: white;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem 1rem;
}

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

.footer-section h3, .footer-section h4 {
  color: white;
  margin-top: 0;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--header-bg);
    padding: 1rem;
    gap: 0;
  }

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

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

  .lang-switcher {
    margin-left: auto;
    gap: 0.5rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

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

  .article-body {
    padding: 1rem 0;
  }

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

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    width: 100%;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu-toggle,
  .lang-switcher {
    display: none;
  }
}
