/* ==========================================================================
   Notes-AI — System-Engineered Landing Page Stylesheet
   Designed to match Sanyam Ahuja's portfolio aesthetic (portfolio2)
   ========================================================================== */

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

:root {
  --bg-main: #09090b;
  --bg-card: #0e0e11;
  --bg-card-hover: #131318;
  --bg-input: #141419;
  --bg-code: #121216;
  
  --border-subtle: #18181b;
  --border-main: #27272a;
  --border-hover: #3f3f46;
  --border-accent: rgba(59, 130, 246, 0.4);

  --text-main: #f4f4f5;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.heading-lg {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
}

.heading-md {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.subheading {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

.mono-text {
  font-family: var(--font-mono);
}

/* Inline Code */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background-color: var(--bg-code);
  color: var(--accent-blue-light);
  padding: 0.2em 0.45em;
  border-radius: 4px;
  border: 1px solid var(--border-main);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-main);
  border-color: var(--text-main);
}

.btn-primary:hover {
  background-color: #e4e4e7;
  border-color: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-main);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  display: flex;
  flex-col;
  gap: 2.5rem;
}

.hero-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.os-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(39, 39, 42, 0.6);
  border: 1px solid var(--border-main);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: var(--text-muted);
}

.os-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Hero Interactive Terminal / Window Mockup */
.window-mockup {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  margin-top: 1rem;
}

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

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.window-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 380px;
}

.window-sidebar {
  background-color: rgba(12, 12, 15, 0.7);
  border-right: 1px solid var(--border-subtle);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0.5rem 0.5rem 0.25rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: default;
  transition: all 0.15s ease;
}

.sidebar-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
}

.sidebar-item.active {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--text-main);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.sidebar-item.active svg {
  color: var(--accent-blue-light);
}

.window-stage {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #0b0b0e;
}

.stage-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.stage-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue-light);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.stage-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.stage-card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.search-bar-mock {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-main);
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 6rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

/* Architecture Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: rgba(39, 39, 42, 0.6);
  border: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-light);
}

.feature-icon-wrapper svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Download Packages Section */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.download-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.download-card.recommended {
  border-color: var(--accent-blue);
  box-shadow: 0 0 25px -5px rgba(59, 130, 246, 0.15);
}

.download-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.download-os-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.download-os-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.download-os-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.recommended-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.cmd-block {
  background-color: var(--bg-code);
  border: 1px solid var(--border-main);
  border-radius: 0.375rem;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-secondary);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.copy-btn:hover {
  color: var(--text-main);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

/* Setup Terminal Guide Tabs */
.setup-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 0.75rem;
  overflow: hidden;
}

.setup-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(12, 12, 15, 0.8);
}

.tab-btn {
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--accent-blue-light);
  border-bottom-color: var(--accent-blue);
  background-color: rgba(59, 130, 246, 0.05);
}

.tab-content {
  display: none;
  padding: 1.75rem;
  flex-direction: column;
  gap: 1.25rem;
}

.tab-content.active {
  display: flex;
}

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

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue-light);
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-hover);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 3rem;
  background-color: #070709;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.footer-desc {
  font-size: 0.825rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .window-body {
    grid-template-columns: 1fr;
  }
  
  .window-sidebar {
    display: none;
  }
  
  .nav-links {
    display: none;
  }

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