/* Nordriv Landing Page Styles */
/* Minimal & Professional - Developer-focused aesthetic */

:root {
  /* Light mode (default) */
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-color: #e5e5e5;
  --accent: #0066cc;
  --accent-hover: #0052a3;
}

[data-theme="dark"] {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border-color: #2a2a2a;
  --accent: #4da6ff;
  --accent-hover: #80c0ff;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

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

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

a:hover {
  color: var(--accent-hover);
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

/* Header */
header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .logo img {
  filter: brightness(0) saturate(100%) invert(1);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Products Section */
.products-grid {
  display: grid;
  gap: 1.5rem;
}

.product-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.product-card:hover {
  border-color: var(--text-muted);
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.product-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.product-info p {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.product-link {
  font-size: 0.875rem;
}

.product-card.coming-soon {
  opacity: 0.6;
}

.coming-soon-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* About Section */
.about p {
  font-size: 1.0625rem;
  max-width: 600px;
}

/* Blog Section */
.blog-list {
  list-style: none;
}

.blog-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.blog-list li:last-child {
  border-bottom: none;
}

.blog-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.blog-title {
  margin-left: 1rem;
}

.blog-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* Blog Page */
.blog-page {
  padding: 3rem 0;
}

.blog-page h1 {
  margin-bottom: 0.5rem;
}

.blog-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.blog-posts {
  margin-top: 2rem;
}

.blog-post-preview {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.blog-post-preview:last-child {
  border-bottom: none;
}

.blog-post-preview .blog-date {
  display: block;
  margin-bottom: 0.5rem;
}

.blog-post-preview h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.blog-post-preview h2 a {
  color: inherit;
}

.blog-post-preview h2 a:hover {
  color: var(--accent);
}

.blog-post-preview p {
  font-size: 0.9375rem;
}

/* Contact Section */
.contact p {
  margin-bottom: 0.5rem;
}

.contact a {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

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

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 1rem;
  max-width: none;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .hero {
    padding: 4rem 0;
  }

  section {
    padding: 3rem 0;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  .blog-date {
    display: block;
    margin-bottom: 0.25rem;
  }

  .blog-title {
    margin-left: 0;
  }
}
