/* FleexStack Landing Page Styles
   Design inspired by website-generator patterns */

/* CSS Variables - matching the design system */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 5%;
  --card: 0 0% 98%;
  --card-foreground: 0 0% 5%;
  --popover: 0 0% 98%;
  --popover-foreground: 0 0% 5%;
  --primary: 0 0% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 95%;
  --secondary-foreground: 0 0% 10%;
  --muted: 0 0% 95%;
  --muted-foreground: 0 0% 45%;
  --accent: 0 0% 90%;
  --accent-foreground: 0 0% 10%;
  --border: 0 0% 90%;
  --input: 0 0% 90%;
  --ring: 0 0% 10%;
  --radius: 0.5rem;
  --gradient-hero: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(0 0% 97%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(0 0% 10%) 0%, hsl(0 0% 20%) 100%);
  --shadow-artistic: 0 20px 60px -15px hsl(0 0% 0% / 0.15);
  --shadow-sm: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
  --shadow-md: 0 4px 6px -1px hsl(0 0% 0% / 0.1);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-feature-settings: "liga" 1, "calt" 1;
  letter-spacing: -0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.03em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Layout utilities */
.min-h-screen {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  transition: color 0.2s;
}

.logo:hover {
  color: hsl(var(--foreground) / 0.8);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.nav-link:hover {
  color: hsl(var(--foreground));
}

.nav-icon {
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

.nav-links.show {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: hsl(var(--background));
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  gap: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 10rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
}

.hero-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  background-color: hsl(var(--foreground) / 0.05);
}

.hero-blur-1 {
  top: 5rem;
  left: 2rem;
  width: 24rem;
  height: 24rem;
}

.hero-blur-2 {
  bottom: 5rem;
  right: 2rem;
  width: 24rem;
  height: 24rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ascii-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  line-height: 1.2;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
  white-space: pre;
  overflow-x: auto;
}

@media (min-width: 640px) {
  .ascii-logo {
    font-size: 0.625rem;
  }
}

@media (min-width: 768px) {
  .ascii-logo {
    font-size: 0.75rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 200;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 2rem;
  }
}

.hero-description {
  font-size: 1rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.hero-install {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.install-code {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background: none;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.copy-btn:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

.copy-btn.copied {
  color: #22c55e;
}

.hero-requirements {
  margin-bottom: 2rem;
}

.requirement-tag {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--muted));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  background-color: hsl(var(--accent));
}

/* Sections */
.section {
  padding: 6rem 1.5rem;
}

.section-muted {
  background-color: hsl(var(--muted) / 0.3);
  border-top: 1px solid hsl(var(--border) / 0.3);
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 200;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: hsl(var(--foreground) / 0.2);
  box-shadow: var(--shadow-artistic);
  transform: translateY(-4px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: hsl(var(--foreground) / 0.05);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 0.875rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Modes Grid */
.modes-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .modes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mode-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.mode-card:hover {
  border-color: hsl(var(--foreground) / 0.2);
}

.mode-card-highlight {
  border-color: hsl(var(--foreground) / 0.3);
  background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--muted) / 0.5) 100%);
}

.mode-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mode-header h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.mode-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border-radius: 9999px;
}

.mode-badge-ai {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}

.mode-description {
  font-size: 0.875rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/* Code Blocks */
.code-block {
  background-color: hsl(var(--foreground));
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: hsl(var(--background));
}

.code-block-sm {
  padding: 1rem;
}

.code-block-sm code {
  font-size: 0.75rem;
}

.code-comment {
  color: hsl(var(--background) / 0.5);
}

.code-prompt {
  color: #22c55e;
}

.code-box {
  display: block;
  border: 1px solid hsl(var(--background) / 0.3);
  border-radius: 0.25rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

.code-block-interactive {
  background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsl(0 0% 15%) 100%);
}

/* Deployment Visual */
.deployment-visual {
  max-width: 48rem;
  margin: 0 auto;
}

.deployment-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: var(--radius);
}

@media (min-width: 640px) {
  .deployment-diagram {
    flex-direction: row;
    justify-content: center;
  }
}

.deployment-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.deployment-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
}

.deployment-env {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 10rem;
  justify-content: center;
}

.deployment-blue {
  background-color: hsl(210 100% 95%);
  color: hsl(210 100% 40%);
  border: 1px solid hsl(210 100% 85%);
}

.deployment-green {
  background-color: hsl(140 70% 95%);
  color: hsl(140 70% 35%);
  border: 1px solid hsl(140 70% 85%);
}

.deployment-env.active {
  box-shadow: 0 0 0 2px hsl(var(--foreground) / 0.1);
}

.env-label {
  font-weight: 500;
}

.traffic-arrow {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.5rem;
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  border-radius: 9999px;
}

.deployment-arrow {
  color: hsl(var(--muted-foreground));
  transform: rotate(90deg);
}

@media (min-width: 640px) {
  .deployment-arrow {
    transform: rotate(0);
  }
}

.deployment-caption {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  margin-top: 1.5rem;
}

/* Steps */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 36rem;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  background-color: hsl(var(--primary));
  border-radius: 50%;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.875rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Commands Table */
.commands-table-wrapper {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.commands-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.commands-table th,
.commands-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.commands-table th {
  font-weight: 500;
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted) / 0.5);
}

.commands-table td {
  color: hsl(var(--muted-foreground));
}

.commands-table code {
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.commands-table tr:hover {
  background-color: hsl(var(--muted) / 0.3);
}

/* Quick Reference Card */
.quick-ref-card {
  background-color: hsl(var(--foreground));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.quick-ref-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--background));
  margin-bottom: 1.5rem;
}

.quick-ref-pre {
  font-size: 0.6875rem;
  line-height: 1.6;
  color: hsl(var(--background) / 0.8);
  text-align: left;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

@media (min-width: 640px) {
  .quick-ref-pre {
    font-size: 0.75rem;
  }
}

/* Configuration Grid */
.config-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .config-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.config-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: var(--radius);
  padding: 2rem;
}

.config-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.config-card p {
  font-size: 0.875rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .templates-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.template-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
}

.template-card:hover {
  border-color: hsl(var(--foreground) / 0.3);
  transform: translateY(-2px);
}

.template-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.template-example {
  max-width: 24rem;
  margin: 0 auto;
}

/* CTA Section */
.section-cta {
  background: var(--gradient-accent);
  color: hsl(var(--primary-foreground));
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.5rem;
  }
}

.cta-subtitle {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.cta-install {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(var(--background) / 0.1);
  border: 1px solid hsl(var(--background) / 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
}

.install-code-dark {
  color: hsl(var(--primary-foreground));
}

.copy-btn-dark {
  color: hsl(var(--primary-foreground) / 0.7);
}

.copy-btn-dark:hover {
  color: hsl(var(--primary-foreground));
  background-color: hsl(var(--background) / 0.1);
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: hsl(var(--primary-foreground) / 0.8);
  transition: color 0.2s;
}

.cta-link:hover {
  color: hsl(var(--primary-foreground));
}

/* Footer */
.footer {
  border-top: 1px solid hsl(var(--border) / 0.3);
  padding: 3rem 1.5rem;
}

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

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

.footer-logo {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
}

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

.footer-link {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.footer-link:hover {
  color: hsl(var(--foreground));
}

.footer-copyright {
  font-size: 0.75rem;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-content {
  animation: slide-up 0.8s ease-out;
}

/* Scroll margin for anchor links */
#features,
#quickstart,
#commands,
#docs {
  scroll-margin-top: 5rem;
}
