/* ================================================
   envsane - Marketing Website Styles
   Typography: Space Grotesk + JetBrains Mono
   Theme: Dark, premium, distinctive
   ================================================ */

:root {
  /* Brand Colors */
  --orange: #FF5722;
  --orange-light: #FF7043;
  --orange-dim: rgba(255, 87, 34, 0.15);
  --orange-glow: rgba(255, 87, 34, 0.4);
  
  /* Backgrounds */
  --bg-dark: #08080A;
  --bg-primary: #0C0C0E;
  --bg-elevated: #131316;
  --bg-card: #18181C;
  --bg-subtle: #1E1E24;
  
  /* Text */
  --text-white: #FFFFFF;
  --text-primary: #EAEAEC;
  --text-secondary: #8E8E96;
  --text-muted: #56565E;
  
  /* Status */
  --green: #10B981;
  --yellow: #F59E0B;
  --red: #EF4444;
  --cyan: #06B6D4;
  --blue: #3B82F6;
  
  /* Borders */
  --border: #232328;
  --border-light: #2E2E36;
  
  /* Typography */
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout */
  --max-width: 1100px;
  --section-gap: 120px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-subtle);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  color: var(--orange);
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
}

.logo-icon { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-github {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-github:hover {
  background: var(--bg-card);
  border-color: var(--border-light);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.2s;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu.active { transform: translateY(0); opacity: 1; }

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Grid pattern background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 87, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 87, 34, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Gradient orbs */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content { 
  max-width: 500px; 
}

/* Hero entrance animations */
.hero-badge {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards, borderGlow 3s ease-in-out infinite 0.6s;
  animation-delay: 0.2s;
}

.hero-title {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.35s;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.5s;
}

.hero-actions {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.65s;
}

.hero-demo {
  opacity: 0;
  animation: scaleIn 0.7s ease forwards;
  animation-delay: 0.4s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--green);
  border-radius: 50%;
  color: white;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--orange) 0%, #FF8A65 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-direction: column; gap: 24px; }

.install-box { display: flex; flex-direction: column; gap: 10px; }

.install-command {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  width: fit-content;
}

.install-command .prompt {
  color: var(--orange);
  font-weight: 600;
}

.install-command code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.install-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 4px;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--bg-card);
  color: var(--text-white);
  border-color: var(--border-light);
}

.copy-btn.small { width: 30px; height: 30px; }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #E64A19 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.35);
}

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

.btn-outline:hover {
  background: var(--bg-elevated);
  color: var(--text-white);
  border-color: var(--border-light);
}

/* Hero Demo */
.hero-demo {
  display: flex;
  justify-content: flex-end;
}

.terminal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.terminal.small { max-width: 400px; }

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }
.terminal-title { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-body .line { white-space: pre; }
.terminal-body .blank { height: 1em; }
.terminal-body .indent { padding-left: 1.2em; }
.terminal-body .prompt { 
  color: var(--orange); 
  font-weight: 600;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
.terminal-body .output { color: var(--text-primary); }
.terminal-body .bold { font-weight: 600; }
.terminal-body .dim { color: var(--text-muted); }
.terminal-body .cyan { color: var(--cyan); }
.terminal-body .blue { color: var(--blue); }
.terminal-body .green { color: var(--green); }
.terminal-body .yellow { color: var(--yellow); }
.terminal-body .red { color: var(--red); }
.terminal-body .success { color: var(--green); }
.terminal-body .warn { color: var(--yellow); }
.terminal-body .error { color: var(--red); }

/* ============ STATS SECTION ============ */
.stats {
  position: relative;
  padding: 60px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--orange) 0%, #FF8A65 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

/* ============ SECTION COMMON ============ */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 70px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 18px;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange));
}

.section-tag::before { right: 100%; margin-right: 12px; }
.section-tag::after { left: 100%; margin-left: 12px; transform: scaleX(-1); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

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

/* ============ PROBLEM SECTION - BENTO STYLE ============ */
.problem {
  padding: var(--section-gap) 0;
  background: var(--bg-dark);
  position: relative;
}

.problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.problem-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.problem-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.problem-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.problem-card:hover::before { opacity: 1; }

/* Bento layout - varying sizes */
.problem-card:nth-child(1) { grid-column: span 4; }
.problem-card:nth-child(2) { grid-column: span 5; }
.problem-card:nth-child(3) { grid-column: span 3; }
.problem-card:nth-child(4) { grid-column: span 3; }
.problem-card:nth-child(5) { grid-column: span 5; }
.problem-card:nth-child(6) { grid-column: span 4; }

.problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--orange-dim);
  border-radius: 12px;
  color: var(--orange);
  margin-bottom: 18px;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-white);
}

.problem-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ FEATURES SECTION ============ */
.features {
  padding: var(--section-gap) 0;
  background: var(--bg-primary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.feature-badge .cmd {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--orange-dim);
  color: var(--orange);
  border-radius: 8px;
  border: 1px solid rgba(255, 87, 34, 0.2);
}

.feature-badge .tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-badge .tag.primary {
  background: linear-gradient(135deg, var(--orange), #E64A19);
  color: white;
}

.feature-info h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-white);
}

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

.feature-checks {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-checks svg {
  color: var(--green);
  flex-shrink: 0;
}

.feature-demo { display: flex; justify-content: center; }

/* ============ USAGE SECTION ============ */
.usage {
  padding: var(--section-gap) 0;
  background: var(--bg-dark);
  position: relative;
}

.usage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.usage-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.usage-steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step:last-child { border-bottom: none; }

/* Connecting line */
.step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 76px;
  bottom: -28px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), transparent);
}

.step:last-child::before { display: none; }

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--orange), #E64A19);
  color: white;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
}

.code-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

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

.step-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.options-panel {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: sticky;
  top: 100px;
}

.options-panel h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.options-panel h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--orange);
  border-radius: 2px;
}

.options-list { display: flex; flex-direction: column; gap: 16px; }

.option-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.option-item:last-child { border-bottom: none; padding-bottom: 0; }

.option-item code {
  flex-shrink: 0;
  min-width: 150px;
}

.option-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============ USE CASES SECTION - HORIZONTAL CARDS ============ */
.use-cases {
  padding: var(--section-gap) 0;
  background: var(--bg-primary);
  position: relative;
}

.use-cases::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.use-cases-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.use-case-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.use-case-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card);
}

.use-case-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--orange-dim);
  border-radius: 14px;
  color: var(--orange);
}

.use-case-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-white);
}

.use-case-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.use-case-code {
  padding: 12px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ============ CTA SECTION ============ */
.cta {
  padding: var(--section-gap) 0;
  background: var(--bg-dark);
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 70px 50px;
  background: 
    linear-gradient(135deg, rgba(255, 87, 34, 0.06), transparent 50%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-white);
}

.cta-box > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-install { display: flex; justify-content: center; margin-bottom: 24px; }

.cta-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.9rem;
}

.cta-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.cta-links a:hover { color: var(--orange); }

.cta-links .divider { color: var(--text-muted); }

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  margin-top: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ============ RESPONSIVE - TABLET ============ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions { align-items: center; }
  .hero-demo { justify-content: center; }
  .terminal { max-width: 100%; }
  
  .problem-bento {
    grid-template-columns: 1fr 1fr;
  }
  
  .problem-card:nth-child(1),
  .problem-card:nth-child(2),
  .problem-card:nth-child(3),
  .problem-card:nth-child(4),
  .problem-card:nth-child(5),
  .problem-card:nth-child(6) {
    grid-column: span 1;
  }
  
  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
  
  .feature-demo { order: -1; }
  .terminal.small { max-width: 100%; }
  
  .feature-checks {
    grid-template-columns: 1fr;
  }
  
  .usage-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .options-panel { position: static; }
  
  .use-case-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .use-case-content {
    width: 100%;
  }
  
  .use-case-code {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* ============ RESPONSIVE - MOBILE ============ */
@media (max-width: 768px) {
  :root { --section-gap: 80px; }
  
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu { display: block; }
  
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  
  .install-command { width: 100%; justify-content: space-between; }
  .hero-buttons { width: 100%; }
  .hero-buttons .btn { flex: 1; min-width: 0; }
  
  .stats-grid { flex-wrap: wrap; gap: 30px 0; }
  .stat-divider { display: none; }
  .stat-item { flex: 0 0 50%; }
  .stat-number { font-size: 2rem; }
  
  .problem-bento { grid-template-columns: 1fr; }
  .problem-card:nth-child(n) { grid-column: span 1; }
  
  .feature-info h3 { font-size: 1.3rem; }
  
  .step { gap: 18px; }
  .step::before { left: 17px; }
  .step-number { width: 36px; height: 36px; font-size: 0.9rem; }
  
  .option-item { flex-direction: column; gap: 6px; }
  .option-item code { min-width: 0; }
  
  .use-case-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }
  
  .use-case-icon { margin: 0 auto; }
  
  .use-case-content {
    width: 100%;
  }
  
  .use-case-code { 
    width: 100%;
    max-width: 100%;
    font-size: 0.72rem;
    padding: 10px 14px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .cta-box { padding: 50px 28px; }
  .cta-box h2 { font-size: 1.6rem; }
  
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
}

/* ============ RESPONSIVE - SMALL MOBILE ============ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  
  .hero-title { font-size: 1.9rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  
  .section-title { font-size: 1.5rem; }
  .section-tag::before, .section-tag::after { display: none; }
  
  .terminal-body { font-size: 0.72rem; padding: 14px; }
  .terminal-body .line { white-space: pre-wrap; word-break: break-all; }
  
  .install-command { padding: 12px 14px; font-size: 0.82rem; }
  .code-inline { flex-wrap: wrap; gap: 8px; }
  
  .stat-item { flex: 0 0 100%; }
  
  /* Use case cards - extra small */
  .use-case-card {
    padding: 20px 16px;
  }
  
  .use-case-icon {
    width: 48px;
    height: 48px;
  }
  
  .use-case-content h4 {
    font-size: 1rem;
  }
  
  .use-case-content p {
    font-size: 0.85rem;
  }
  
  .use-case-code {
    font-size: 0.68rem;
    padding: 8px 12px;
  }
}

/* ============ ANIMATIONS & MICRO-INTERACTIONS ============ */

/* Keyframe Definitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes glowPulse {
  0%, 100% { 
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.25);
    transform: translateY(0);
  }
  50% { 
    box-shadow: 0 8px 30px rgba(255, 87, 34, 0.4);
    transform: translateY(-2px);
  }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--border); }
  50% { border-color: rgba(255, 87, 34, 0.3); }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes orbitGlow {
  0% { transform: translate(-5%, 10%) scale(1); opacity: 0.05; }
  50% { transform: translate(5%, -10%) scale(1.1); opacity: 0.08; }
  100% { transform: translate(-5%, 10%) scale(1); opacity: 0.05; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Hero Badge pulse animation - merged with entrance animation in hero section */

.badge-icon {
  animation: pulse 2s ease-in-out infinite;
}

/* Hero glow floating animation */
.hero-glow {
  animation: orbitGlow 8s ease-in-out infinite;
}

.hero::after {
  animation: orbitGlow 10s ease-in-out infinite reverse;
}

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

/* Terminal typing animation styles */
.terminal-body .line.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--orange);
  animation: blink 0.7s step-end infinite;
}

.terminal-body .line.typed {
  border-right: none;
}

/* Button hover enhancements */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  position: relative;
  overflow: hidden;
}

.btn-outline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.btn-outline:hover::after {
  width: 80%;
}

/* Nav link hover underline animation */
.nav-links a:not(.nav-github) {
  position: relative;
}

.nav-links a:not(.nav-github)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.nav-links a:not(.nav-github):hover::after {
  width: 100%;
}

/* GitHub button hover */
.nav-github {
  position: relative;
  overflow: hidden;
}

.nav-github svg {
  transition: transform 0.3s ease;
}

.nav-github:hover svg {
  transform: rotate(360deg);
}

/* Copy button success animation */
.copy-btn {
  position: relative;
  overflow: hidden;
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--green);
}

.copy-btn .check-icon {
  color: var(--green);
}

/* Problem card hover effects */
.problem-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.problem-icon {
  transition: all 0.3s ease;
}

.problem-card:hover .problem-icon {
  transform: scale(1.1);
  background: var(--orange-glow);
}

/* Feature block animations */
.feature-block .terminal {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-block:hover .terminal {
  transform: translateY(-5px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 25px 60px -10px rgba(0, 0, 0, 0.6);
}

/* Feature checks stagger animation */
.feature-checks li {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.feature-block.is-visible .feature-checks li {
  opacity: 1;
  transform: translateX(0);
}

.feature-block.is-visible .feature-checks li:nth-child(1) { transition-delay: 0.1s; }
.feature-block.is-visible .feature-checks li:nth-child(2) { transition-delay: 0.15s; }
.feature-block.is-visible .feature-checks li:nth-child(3) { transition-delay: 0.2s; }
.feature-block.is-visible .feature-checks li:nth-child(4) { transition-delay: 0.25s; }
.feature-block.is-visible .feature-checks li:nth-child(5) { transition-delay: 0.3s; }
.feature-block.is-visible .feature-checks li:nth-child(6) { transition-delay: 0.35s; }

/* Check icon animation */
.feature-checks svg {
  transition: transform 0.3s ease;
}

.feature-checks li:hover svg {
  transform: scale(1.2);
}

/* Step number pulse on hover */
.step-number {
  transition: all 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
}

/* Use case card slide effects */
.use-case-card {
  position: relative;
  overflow: hidden;
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 87, 34, 0.03),
    transparent
  );
  transition: left 0.6s ease;
}

.use-case-card:hover::before {
  left: 100%;
}

.use-case-icon {
  transition: all 0.3s ease;
}

.use-case-card:hover .use-case-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--orange-glow);
}

.use-case-code {
  transition: all 0.3s ease;
}

.use-case-card:hover .use-case-code {
  background: var(--bg-primary);
  border-color: var(--orange);
  color: var(--orange);
}

/* CTA box shimmer */
.cta-box {
  position: relative;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    -45deg,
    transparent 30%,
    rgba(255, 87, 34, 0.03) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
  border-radius: 24px;
}

/* Stat number animation */
.stat-number {
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
}

/* Footer links hover */
.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Logo hover animation */
.nav-logo {
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo .logo-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-logo:hover .logo-icon {
  transform: translateX(-2px);
}

/* Terminal dots hover */
.terminal-dots .dot {
  transition: transform 0.2s ease;
}

.terminal:hover .dot.red { transform: scale(1.2); transition-delay: 0s; }
.terminal:hover .dot.yellow { transform: scale(1.2); transition-delay: 0.05s; }
.terminal:hover .dot.green { transform: scale(1.2); transition-delay: 0.1s; }

/* Mobile menu animation */
.mobile-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu a {
  transition: all 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--orange);
  padding-left: 8px;
}

/* Code inline hover */
.code-inline {
  transition: all 0.2s ease;
}

.code-inline:hover {
  border-color: var(--border-light);
  background: var(--bg-card);
}

/* Options panel animation */
.option-item {
  transition: all 0.2s ease;
}

.option-item:hover {
  padding-left: 8px;
}

.option-item:hover code {
  color: var(--orange-light);
}

/* Section tag line animation */
.section-tag::before,
.section-tag::after {
  transition: width 0.4s ease;
}

.section-header:hover .section-tag::before,
.section-header:hover .section-tag::after {
  width: 50px;
}

/* Install box glow on hover */
.install-box .install-command {
  transition: all 0.3s ease;
}

.install-box .install-command:hover {
  border-color: var(--border-light);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.1);
}

/* Smooth page load */
body {
  animation: fadeInUp 0.6s ease;
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

::selection {
  background: rgba(255, 87, 34, 0.3);
  color: var(--text-white);
}
