/* styles.css */
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --border-color: #e2e8f0;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --primary-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b0f19;
    --card-bg: #111827;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #1e293b;
    --primary-color: #60a5fa;
    --primary-hover: #93c5fd;
    --primary-gradient: linear-gradient(135deg, #60a5fa, #a78bfa);
    --header-bg: rgba(11, 15, 25, 0.85);
    --header-border: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

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

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Header */
header {
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

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

.logo {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
}

.nav-links a.active {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
  font-weight: 700;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Beautiful Gradient Title */
.page-header {
  margin-bottom: 4rem;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

/* Cards / Content Sections */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.content-section {
  margin-bottom: 2.5rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title, .card-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.content-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.content-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.content-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.content-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

a.link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

a.link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

a.link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 3rem 0;
  border: none;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
  margin-top: 2rem;
}

.hyperelay-logo {
  max-height: 28px;
  margin-top: 1rem;
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.hyperelay-logo:hover {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .hyperelay-logo {
    filter: invert(0);
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .page-title {
    font-size: 2.25rem;
  }
  
  main {
    padding: 2rem 1rem;
  }

  .card {
    padding: 1.5rem;
    border-radius: 16px;
  }
}
