/* Fauji Documentation - Modern Landing Page Styles */

:root {
  /* Lynx.js inspired color palette */
  --primary-color: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  
  /* Text colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Background colors */
  --bg-base: #f0eee6;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  /* Lynx.js inspired gradients */
  --bg-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --bg-gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --bg-gradient-dark: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  
  /* Border and shadow colors */
  --border-color: #E2DACB;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
button, input, label {
  line-height: 1.1;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* ================ styles ================= */

body {
  font-family: var(--font-family-sans);
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* typography */
h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

h1 {
  font-size: 32px;
  line-height: 2.5rem;
  margin-top: 0;
  margin-bottom: var(--space-xl);
  text-wrap: balance;
}

h2 {
  font-size: 28px;
  line-height: 2.25rem;
}

h3 {
  font-size: 24px;
  line-height: 2rem;
}

h4 {
  font-size: 21px;
  line-height: 1.75rem;
}

h5 {
  font-size: 18px;
  line-height: 1.5rem;
}

h6 {
  font-size: 16px;
  line-height: 1.25rem;
}

/* Header Styles */
header {
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--bg-base);
}

header .logo {
  display: flex;
  align-items: center;
  height: 42px;
}

header .logo img {
  height: 36px;
}

nav {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 0 1rem;
}

nav menu {
  display: flex;
  gap: 1.25rem;
  margin: 0;
}

menu li {
  list-style: none;
  display: inline-flex;
}

menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 42px;
  height: 42px;
  transition: all 0.2s ease;
}

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

/* Main Content */
main {
  max-width: 100%;
  padding: 0 var(--space-md);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-3xl);
  margin: 0 calc(-1 * var(--space-md)) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
}

.hero img {
  display: block;
  width: 256px;
  height: 256px;
  margin: 0;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 var(--space-md);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.tagline {
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  max-width: 640px;
}

/* Features Section */
#features {
  margin-bottom: var(--space-3xl);
}

#features h2 {
  text-align: center;
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 var(--space-2xl);
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.features {
  display: grid;
  max-width: 1200px;
  margin: var(--space-2xl) auto 0;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.feature {
  background: var(--bg-primary);
  padding: var(--space-xl);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.feature-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.feature code {
  background: var(--bg-tertiary);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-family: var(--font-family-mono);
  font-size: 0.875em;
  color: var(--primary-color);
  font-weight: 500;
}

.feature-card-highlight1 {
  background-color: #E2DACB;
}
.feature-card-highlight2 {
  background-color: #BCD0CA;
}
.feature-card-highlight3 {
  background-color: #CBCADB;
}

/* Sections */
section {
  margin-bottom: var(--space-xl);
}

section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
  line-height: 1.7;
}

section pre {
  margin: 0 0 var(--space-md);
  padding: 0;
}

section pre code {
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  font-weight: 400;
  color: var(--text-primary);
  font-family: var(--font-family-mono);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--bg-gradient-primary);
  color: white;
  padding: var(--space-lg) var(--space-xl);
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  background: var(--bg-gradient-dark);
}

/* Lists */
ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto var(--space-md);
  list-style: none;
  padding: 0;
}

ul li {
  position: relative;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
  color: var(--text-secondary);
}

ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #D97757;
  font-weight: bold;
  font-size: 1.1em;
}

/* Footer */
footer {
  background-color: #141413;
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
  text-align: center;
  margin-top: var(--space-3xl);
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .tagline {
    font-size: 1.25rem;
  }
  
  .install {
    font-size: 0.9rem;
    padding: var(--space-md) var(--space-lg);
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .feature {
    padding: var(--space-lg);
  }
  
  nav {
    gap: var(--space-lg);
  }
  
  nav a {
    font-size: 0.85rem;
  }
  
  #features h2 {
    font-size: 2.25rem;
  }
  
  section h2 {
    font-size: 2rem;
  }
  .hero-content {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .tagline {
    text-align: center;
    font-size: 1.25rem;
  }
  .hero img {
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-2xl) 0 var(--space-2xl);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .install {
    font-size: 0.85rem;
    padding: var(--space-md) var(--space-lg);
  }
  
  main {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    margin: 0 calc(-1 * var(--space-sm)) var(--space-2xl);
  }
  
  .feature {
    padding: var(--space-md);
  }
}

.contribution-guide {
  text-align: center;
}

.page-container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  border-top: 1px solid var(--border-color);
}

.page-container aside {
  width: 320px;
  flex: 0 0 320px;
  background-color: #E2DACB;
  height: calc(100vh - 75px);
  position: fixed;
  top: 75px;
  left: 0;
  overflow: hidden;
  z-index: 100;
}

.page-container .side-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.page-container .side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-container .side-nav a {
  color: #5e5d59;
}

.page-container .side-nav a.active {
  color: #D97757;
}

.page-container .page-content {
  flex: 1;
  margin-left: 320px;
  width: calc(100% - 320px);
}

.page-container .page-content-inner {
  padding: var(--space-md);
  max-width: 960px;
  margin: 0 auto;
}

.inline-code {
  background-color: #fff;
  padding: 0 8px;
  border-radius: 4px;
  font-family: var(--font-family-mono);
  font-size: 14px;
  color: #333333;
}
