:root {
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f29;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-orange: #ff6b35;
  --accent-cyan: #58a6ff;
  --accent-green: #7ee787;
  --accent-purple: #bc8cff;
  --border-color: #30363d;
}

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

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

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

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

.logo svg {
  height: 48px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

nav ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}

nav ul li:not(:last-child) a::after {
  content: ']';
  position: absolute;
  right: -1.2rem;
  color: var(--accent-cyan);
  opacity: 0.5;
}

nav ul li:not(:first-child) a::before {
  content: '[';
  position: absolute;
  left: -1.2rem;
  color: var(--accent-cyan);
  opacity: 0.5;
}

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

/* Hero Section */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-header {
  margin-bottom: 3rem;
}

.hero-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero h1 .highlight {
  color: var(--accent-orange);
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 700px;
}

.terminal-demo {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0;
  margin: 3rem 0;
  max-width: 650px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.terminal-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.terminal-content {
  padding: 1.5rem;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
}

.terminal-line {
  margin-bottom: 0.5rem;
}

.terminal-prompt {
  color: var(--accent-cyan);
}

.terminal-command {
  color: var(--text-primary);
}

.terminal-output {
  color: var(--accent-green);
  padding-left: 1rem;
}

.terminal-comment {
  color: var(--text-muted);
  font-style: italic;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
  display: inline-block;
  font-size: 15px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-orange);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.btn-primary:hover {
  background: #ff8255;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--text-secondary);
}

/* Info Section */
.info-section {
  background: rgba(26, 31, 41, 0.4);
  padding: 5rem 2rem 5rem;
  margin: 4rem 0 0;
  position: relative;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 550px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.info-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.info-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.info-section h2::before {
  content: '[';
  position: absolute;
  left: -1.2rem;
  color: var(--accent-orange);
  opacity: 0.6;
}

.info-section h2::after {
  content: ']';
  position: absolute;
  right: -1.2rem;
  color: var(--accent-orange);
  opacity: 0.6;
}

.info-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

.principle-item {
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
  transition: all 0.3s;
  position: relative;
}

.principle-item::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--accent-orange);
  transition: height 0.3s ease;
}

.principle-item:hover::before {
  height: 100%;
}

.principle-item:hover {
  transform: translateX(4px);
}

.principles h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.principles p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Start Section */
.start-section {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 5rem 2rem;
  position: relative;
}

.start-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 550px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

.start-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.start-section h2::before {
  content: '[';
  position: absolute;
  left: -1.2rem;
  color: var(--accent-cyan);
  opacity: 0.6;
}

.start-section h2::after {
  content: ']';
  position: absolute;
  right: -1.2rem;
  color: var(--accent-cyan);
  opacity: 0.6;
}

.start-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.start-section .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  position: relative;
}

.start-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
}

@media (max-width: 768px) {
  .start-grid::before {
    display: none;
  }
}

.start-column {
  position: relative;
}

.start-column h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-item {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s;
}

.link-item:hover {
  color: var(--accent-cyan);
}

.link-item .link-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

.link-item .link-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  padding: 0.125rem 0.5rem;
  background: rgba(88, 166, 255, 0.1);
  border-radius: 3px;
  margin-top: 0.25rem;
}

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

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-left {
  flex: 1;
  min-width: 250px;
}

.footer-left p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-left .copyright {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 1rem;
}

.footer-right {
  display: flex;
  gap: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-section h4 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.footer-section h4::before {
  content: '[';
  position: absolute;
  left: -1rem;
  color: var(--accent-purple);
  opacity: 0.7;
}

.footer-section h4::after {
  content: ']';
  position: absolute;
  right: -1rem;
  color: var(--accent-purple);
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  position: relative;
}

.footer-links a:not(:last-child)::after {
  content: ']';
  position: absolute;
  right: -0.9rem;
  color: var(--accent-purple);
  opacity: 0.5;
}

.footer-links a:not(:first-child)::before {
  content: '[';
  position: absolute;
  left: -0.9rem;
  color: var(--accent-purple);
  opacity: 0.5;
}

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

/* Content Pages */
.content-wrapper {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.content-wrapper h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.content-wrapper .blog-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 2rem;
}

.content-wrapper h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.content-wrapper h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.content-wrapper p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-wrapper code {
  background: var(--bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  color: var(--accent-orange);
  font-family: 'SF Mono', monospace;
  font-size: 0.9em;
}

.content-wrapper pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.content-wrapper pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.content-wrapper ul, .content-wrapper ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* List Pages */
.list-wrapper {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.list-wrapper h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  display: block;
}

.blog-card:hover h3 {
  color: var(--accent-cyan);
}

.blog-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.blog-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .tagline {
    font-size: 1.1rem;
  }
  
  nav ul {
    gap: 1rem;
    font-size: 14px;
  }
  
  .logo svg {
    height: 40px;
  }
  
  .start-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
