@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Color Palette - Zinc and Red */
  --bg-darker: #09090b;       /* Zinc 950 */
  --bg-dark: #18181b;         /* Zinc 900 */
  --bg-card: #27272a;         /* Zinc 800 */
  --border: #3f3f46;          /* Zinc 700 */
  --border-subtle: #27272a;   /* Zinc 800 */
  --text: #fafafa;            /* Zinc 50 */
  --text-normal: #e4e4e7;     /* Zinc 200 */
  --text-muted: #a1a1aa;      /* Zinc 400 */
  --accent-red: #ef4444;      /* Red 500 */
  --accent-red-hover: #dc2626;/* Red 600 */
  --accent-red-dim: #991b1b;  /* Red 800 */
  --accent-red-glow: rgba(239, 68, 68, 0.15);
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --container-max-width: 800px;
}

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

html {
  background-color: var(--bg-darker);
  color: var(--text-normal);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-red);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.nav-links a {
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.hero p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Terminal Console Card */
.terminal-card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background-color: rgba(9, 9, 11, 0.5);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border);
}

.dot.red {
  background-color: var(--accent-red);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Terminal specific scrollbar */
.terminal-body::-webkit-scrollbar {
  width: 4px;
}
.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 2px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

.terminal-line {
  color: var(--text-muted);
  word-break: break-all;
  white-space: pre-wrap;
}

.terminal-line.cmd::before {
  content: "$ ";
  color: var(--accent-red);
  font-weight: bold;
}

.terminal-line.output {
  color: var(--text-normal);
}

.terminal-line.highlight {
  color: var(--accent-red);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--text);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Grid parameters block */
.parameters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.parameter-item {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.param-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.param-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.param-value.red {
  color: var(--accent-red);
}

/* Footer styling */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background-color: var(--bg-darker);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 1.75rem;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
  color: var(--accent-red);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  width: 100%;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-family: var(--font-sans);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
}

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

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

/* Legal Page Styling */
.legal-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem 0 3rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
}

.legal-nav a {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
}

.legal-nav a:hover {
  color: var(--text);
  border-color: var(--border-subtle);
  background-color: var(--bg-dark);
}

/* Clean Legal/Terms Page Styles */
.terms-content {
  padding: 4rem 0;
}

.terms-header h1 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.terms-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.terms-section {
  margin-bottom: 2rem;
}

.terms-section h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-section h2::before {
  content: "//";
  color: var(--accent-red);
}

.terms-section p {
  color: var(--text-normal);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.terms-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-normal);
  font-size: 0.95rem;
}

.terms-section li {
  margin-bottom: 0.5rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.btn-back:hover {
  color: var(--accent-red);
}

/* 404 Page Styling */
.error-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-darker);
  padding: 2rem;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px var(--accent-red-glow);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.error-desc {
  font-family: var(--font-sans);
  color: var(--text-muted);
  max-width: 420px;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.btn-action {
  background-color: transparent;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action:hover {
  background-color: var(--accent-red);
  color: var(--text);
  box-shadow: 0 0 15px var(--accent-red-glow);
}

/* Mobile Responsiveness adjustments */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  
  .hero {
    padding: 3rem 0 2rem 0;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .parameters-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .subscribe-form {
    flex-direction: column;
    width: 100%;
  }

  .form-button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
